Page 2 of 3
Posted: Sat 22. Nov 2003, 15:49
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?
Posted: Sat 22. Nov 2003, 16:04
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
Posted: Sat 22. Nov 2003, 16:56
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?
Posted: Sat 22. Nov 2003, 17:36
by Oliver Georgi
Some hosting accounts does not support mail() - maybe this might be your problem.
Oliver
Posted: Sat 22. Nov 2003, 19:48
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
Posted: Sat 22. Nov 2003, 20:50
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!
Posted: Fri 20. Feb 2004, 13:35
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
Posted: Fri 20. Feb 2004, 14:52
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
Posted: Fri 20. Feb 2004, 15:05
by Oliver Georgi
It works

Maybe check register_globals and that you use the most current formmailer.
Oliver
Posted: Fri 20. Feb 2004, 17:35
by Bernd Glasstetter
register_globals is on - and which one is the most recent formmailer? Where can I download it?

Posted: Sat 21. Feb 2004, 00:10
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..
Posted: Sat 21. Feb 2004, 09:24
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.
Posted: Sat 21. Feb 2004, 09:30
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

Posted: Sat 21. Feb 2004, 09:51
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

e-mail form IC
Posted: Sat 21. Feb 2004, 18:00
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!
