email form creation

Get help with installation and running phpwcms here. Please do not post bug reports or feature requests here.
adriano
Posts: 165
Joined: Sun 16. Nov 2003, 15:24
Location: Bremerhaven
Contact:

Post by adriano »

Ich mache gerade meine ersten Schritte mit dem Mailformular. Die Beispiele der vorherigen Threads habe ich in mein Formular kopiert. Mein Eintrag sieht folgend aus:

IT|vorname|1|Vorname: |40,100||300
IT|name|1|Nachname: |40,100||300
IT|email|1|Email: |40,100||300
TA|info|0|Info: |20,5||300
SM|menu|0|Interesse: |20,100|Digitaldruck#Bildagentur#Fotodesign#Grafikdesign#Druckservice|300
IH|redirect|0||10,100|http://www.wackernah.net/phpwcms/|0
IH|language|0||10,100|DE|0
IH|send_copy|0||10,100|1|0

Nach dem Absenden einer Email gelange ich zur redirect-Seite, also müßte die Mail doch rausgegangen sein? Ich erhalte aber keine Mails. Muß ich dazu meinem System erst noch etwas beibringen?

Mein zweites Prob. ist vielleicht einfacher. Mein redirect nach einer erfolgreichen Mail führt zur Startseite. Möchte ich aber eine Seite mit einer Erfolgsmeldung dazwischen schalten, was muß ich dazu anstellen? Mein Vorgehen war bis so: Es gibt einen Link "Kontakt". Unter dem befindet sich ein Formular für den Mailkontakt. Lege ich nun irgendwo einen Artikel "Danke für die Mail" an, so ist der immer zu als Artikel zu sehen. Mache ich ihn unsichtbar, so wird er eben nicht angezeigt. Was ist hier zu tun?
User avatar
Oliver Georgi
Site Admin
Posts: 9909
Joined: Fri 3. Oct 2003, 22:22
Contact:

Post by Oliver Georgi »

Try this:
Create a new structure on 1st level - maybe "Forms" and set this to hidden.

Then inside Forms create 2 new levels "Success", "Error". Fill in alias "success" and "error" in related structure. Create new articles inside every level - 1 success article, 1 error article.

Then use:

Code: Select all

IH|redirect|0||10,100|http://mydomain.net/index.php?success|0 
IH|redirect_error|0||10,100|http://mydomain.net/index.php?error|0
Oliver
Oliver Georgi | phpwcms Developer | GitHub | LinkedIn | Систрон
adriano
Posts: 165
Joined: Sun 16. Nov 2003, 15:24
Location: Bremerhaven
Contact:

Post by adriano »

Thats with the hidden link level works fine. Thanks for the help.

But whats with my first question about, what do I need to install on extra programs for sending mails with php?

When I send a form, anytime the success page shows up, tells me, that the mail on is their way. I told the form page, to send mails to my mail account. Do I need anything else?
User avatar
Oliver Georgi
Site Admin
Posts: 9909
Joined: Fri 3. Oct 2003, 22:22
Contact:

Post by Oliver Georgi »

Some hosting accounts does not support mail() - maybe this might be your problem.

Oliver
Oliver Georgi | phpwcms Developer | GitHub | LinkedIn | Систрон
Bijan Hemati
Posts: 191
Joined: Sun 9. Nov 2003, 00:18
Location: Austin, TX

Post by Bijan Hemati »

Bijan Hemati wrote:OK, Finally I understand how it works.
Thank you Oliver...

I did receive an email after I filled the form and sent it. But there are couple of things I am not sure how to handle. Here are my codes:

IT|vorname|1|Name: |40,100||300
IT|Vorname|0|Address: |40,100||300
IT|email|1|email: |40,100||300
IH|language|0||10,100|EN|0
IH|send_copy|0||10,100|1|0

* First, The email is not in English.
* Second, The email shows the hidden fields, see below.

******** THE EMAIL **************
Formular versendet am 21.11.2003 um 00:47:24 Uhr
Das Ausgangsformular finden Sie hier:
http://www.mywebsite.com/index.php?id=3,0,0,1,0,0
===============================================
Formularempfänger: myemail@home.com
===============================================
online webform email message
--------------------------------------------------------------------
vorname.: BJ
Vorname.: my address
email...: senderemail@home.com
language: EN
submit..: Send
type....: 0

===============================================
phpwcms formmailer | Copyright (C) 2003

Regards,
Oliver, you wrote:
"Some hosting accounts does not support mail() - maybe this might be your problem."

I thought choosing the code IH|language|0||10,100|EN|0 in phpwcms, handled the language part.

Bijan
User avatar
Oliver Georgi
Site Admin
Posts: 9909
Joined: Fri 3. Oct 2003, 22:22
Contact:

Post by Oliver Georgi »

Hi Bijan,

have a look in http://www.phpwcms.de?download

I have found the bug. The language was hardcoded to translate["DE"] not $translate[$lang] - my fault. Should be solved!
Oliver Georgi | phpwcms Developer | GitHub | LinkedIn | Систрон
Bernd Glasstetter
Posts: 8
Joined: Fri 20. Feb 2004, 13:31
Location: Waldshut-Tiengen
Contact:

Post by Bernd Glasstetter »

I have the same problem here:

I am not able to send an e-mail to the recipient, however the send_copy functions. And this with accounts on my own server. We have installed 1.1 RC 2.

The server supports the function, as we have already programmed other scripts on this system.

So could you please explain what to do in order to receive mails? :)

Oh BTW: How can I send Blind Copies of the form?

Oh and that's my form:

IT|Name|1|Name: |40,100||300
IT|Adresse|0|Adresse: |40,100||300
IN|PLZ|0|PLZ: |40,100||300
IT|Ort|0|Ort: |40,100||300
IT|email|1|E-Mail Adresse: |40,100||300
TA|Mailtext|0|Mail: |20,10||300
IH|language|0||10,100|DE|0
IH|redirect|0||10,100|http://www.virtuso.de/index.php?id=41,5,0,0,1,0|0
IH|redirect_error|0||10,100|http://www.virtuso.de/index.php?id=41,6,0,0,1,0|0
IH|send_copy|0||10,100|1|0
rtist
Posts: 17
Joined: Mon 16. Feb 2004, 11:23

Post by rtist »

I have another riddle concerning this problem:

first of all, i also dont receive the eMails even thoug i receive the "success" message and the other thing is, as soon as i mark one field as necessary |1| i will always receive the error page except if i fill out everything...
Here is my code:

Code: Select all

IT|vorname|0|Vorname: |30,60||200
IT|name|0|Name: |30,60||200
IT|firma|0|Firma: |30,60||200
IN|plz|0|PLZ: |30,60||200
IT|ort|1|Ort: |40,60||200
IN|Tel.|0|Tel: |30,60||200
IN|Fax|0|Fax: |30,60||200
IT|eMail|0|eMail: |30,60||200
IT|URL|0|URL: |30,60||200
SC|country|0|Land: |10,100|DE|200
SM|menu|0|Betreff: |20,100|Allgemein#Systeme#Zubehör|200
TA|anliegen|0|Anliegen: |20,5||200
IR|kennt dnp von|0|Ich kenne Dips-n-Pieces durch: |10,0|Messe#Internet#Zeitschrift|0
IT|Sonstiges|0|Sonstiges: |40,60||0
IH|redirect|0||10,100|http://www.dips-n-pieces.de/cms/index.php?success|0
IH|redirect_error|0||10,100|http://www.dips-n-pieces.de/cms/index.php?fail|0
Any Idea anyone???

My URL is http://www.dips-n-pieces.de/cms/index.php
User avatar
Oliver Georgi
Site Admin
Posts: 9909
Joined: Fri 3. Oct 2003, 22:22
Contact:

Post by Oliver Georgi »

It works ;-) Maybe check register_globals and that you use the most current formmailer.

Oliver
Oliver Georgi | phpwcms Developer | GitHub | LinkedIn | Систрон
Bernd Glasstetter
Posts: 8
Joined: Fri 20. Feb 2004, 13:31
Location: Waldshut-Tiengen
Contact:

Post by Bernd Glasstetter »

register_globals is on - and which one is the most recent formmailer? Where can I download it? :)
mdgroot
Posts: 155
Joined: Wed 11. Feb 2004, 17:47
Location: Netherlands

Post by mdgroot »

Perhaps it will help if you look in this topic;
http://www.phpwcms.de/forum/viewtopic.php?t=857

It sure helped me..
Bernd Glasstetter
Posts: 8
Joined: Fri 20. Feb 2004, 13:31
Location: Waldshut-Tiengen
Contact:

Post by Bernd Glasstetter »

Yes, removing the -f did the trick for me :)

BUT: One other problem came up: The mail I receive for myself doesn't have a subject, yet the mail the sender receives in copy has a subject.
Bernd Glasstetter
Posts: 8
Joined: Fri 20. Feb 2004, 13:31
Location: Waldshut-Tiengen
Contact:

Post by Bernd Glasstetter »

Found it:

Changed this in act_formmailer.php:

Code: Select all

if(!ini_get('safe_mode')) {
      mail($recipient, $subject_encoded, $body, $from);
   } else {
      mail($recipient, $subject_encoded, $body, $from);
   } 
into this:

Code: Select all

if(!ini_get('safe_mode')) {
      mail($recipient, $subject, $body, $from);
   } else {
      mail($recipient, $subject, $body, $from);
   } 
BUT: I don't what for is "subject_encoded" - maybe it would help explaining it :)
Bernd Glasstetter
Posts: 8
Joined: Fri 20. Feb 2004, 13:31
Location: Waldshut-Tiengen
Contact:

Post by Bernd Glasstetter »

And now another problem:

As far as I have seen two things are not possible:

- to send an e-mail to more than one recipient
- to send the same e-mail to one or more recipients in Blind Copy.

Can I suggest both as features for the next version? Would be really great :)
Olaf Finkbeiner
Posts: 34
Joined: Wed 18. Feb 2004, 23:52
Location: Frankfurt am Main
Contact:

e-mail form IC

Post by Olaf Finkbeiner »

This Tag returns strange values.
eg. if you check 3/9 values it returns always the same value eg: 1,2,3 not 3,4,5 or 1,7,9

I just noticed or am i wrong?

kind regards to everybody using this cool tool!
:lol:
Olaf Finkbeiner
Post Reply