Mailform error when adding send_copy statement

Get help with installation and running phpwcms here. Please do not post bug reports or feature requests here.
Post Reply
Igor
Posts: 97
Joined: Fri 30. Apr 2004, 16:30
Location: The Netherlands
Contact:

Mailform error when adding send_copy statement

Post by Igor »

When I add the following code in the setup field of my email form, the form is not redirected to the 'success' page, but to the 'fail' page:

Code: Select all

IH|send_copy|0||10,100|1|0
This should be OK I think.

At two different providers this happens. I cleared the IE-cache etcetera, this is not the problem...
Igor
Pappnase

Post by Pappnase »

hello

please post teh complete form here!
Igor
Posts: 97
Joined: Fri 30. Apr 2004, 16:30
Location: The Netherlands
Contact:

Post by Igor »

Hello Pappnase,

Here it is:

Code: Select all

IR|Geslacht|0| |50,2|De heer%1%man#Mevrouw%0%vrouw|0
IT|Naam|1|Naam en voorletter(s): |40,100||300
IT|Bedrijf|0|Naam bedrijf: |40,100||300
IT|Adres|0|Adres: |40,100||300
IT|Postcode|0|Postcode: |6,100||300
IT|Plaats|0|Plaats: |40,100||300
IT|Telefoon|0|Telefoon: |11,100||300
IT|Email|1|E-mailadres: |40,100||300
IC|Contact|1|Contact: |300,1|Neem contact op voor het maken van een afspraak%1%afspraak maken#Stuur mij nadere informatie%0%informatie sturen|0
IC|Onderwerp|0|Onderwerp(en): |300,1|Verzekeringen%0%verzekeringen#Pensioenen%0%pensioenen#Hypotheken%0%hypotheken#Leningen%0%leningen#Bankdiensten%0%bankdiensten|0
TA|Toelichting|0|Toelichting: |20,5||300
IH|language|0||10,100|EN|0
IH|redirect|0||10,100|http://www.paffen.nl/index.php?id=12,28,0,0,1,0|0
IH|redirect_error|0||10,100|http://www.paffen.nl/index.php?id=12,29,0,0,1,0|0
This works good. When send_copy is added as shown before, the form doesn't work anymore. The redirect_error page is shown.
Igor
Pappnase

Post by Pappnase »

hello

did you use for testing an equal e-mail adress!?
if yes use inf the form an tottaly different mail adress!. as the one you set as recieve e-mail adress!
Igor
Posts: 97
Joined: Fri 30. Apr 2004, 16:30
Location: The Netherlands
Contact:

Post by Igor »

No, I maybe know what's wrong :)

I think the send_copy statement is meant to send a copy of the mail to the sender of the form. phpwcms searches the data and looks for the field with internal name 'mail'. As in my form I gave this field the name 'email'. So phpwcms doesn't know where to send the copy to!?

I will try this.....
Igor
Igor
Posts: 97
Joined: Fri 30. Apr 2004, 16:30
Location: The Netherlands
Contact:

Post by Igor »

Unfortunately I was wrong :( This was no solution.

In the setup-field an existing e-mailadress is filled in as receiver adress. As the sender of the form I fill in a different existing e-mailadress.

It's just the last line which causes the trouble........ Is everything spelled correctly? I copied it from http://www.phpwcms-docu.de.
Igor
Pappnase

Post by Pappnase »

hello

it look like i have an spell error at the docu! i the first block i think the mail is wrong and should be email.
Igor
Posts: 97
Joined: Fri 30. Apr 2004, 16:30
Location: The Netherlands
Contact:

Post by Igor »

But then you have exactly what I entered (see code above)..... and that doesn't work. It drives me crazy :evil:
Igor
Pappnase

Post by Pappnase »

hello

can you send me an admin login to your site then i will take a look!
Igor
Posts: 97
Joined: Fri 30. Apr 2004, 16:30
Location: The Netherlands
Contact:

Post by Igor »

I sent you a mail. Go to article 'Contact/afspraak maken/afspraak maken'. The 2 articles below are the success/fail-pages.

Thanks!
Igor
pepe
Posts: 3954
Joined: Mon 19. Jan 2004, 13:46

Post by pepe »

Pappnase is right!

Change:
IT|Email|1|E-mailadres: |40,100||300

To:
IT|email|1|E-mailadres: |40,100||300

And it will work!
Igor
Posts: 97
Joined: Fri 30. Apr 2004, 16:30
Location: The Netherlands
Contact:

Post by Igor »

Thanks Pappnase and pepe,

What should I do without you :wink:
Igor
Florian
Posts: 119
Joined: Wed 19. Nov 2003, 16:50
Location: Hamburg
Contact:

Post by Florian »

Hello,

I've got currently the same problem with sending the form, but it makes no sense if I enable / disable / remove the tag for sending the copy to the person who fills out the form. Besides other forms are working fine. I'm sure I did a mistake while buliding the form. As you can see below the form is quite complex. Can anybody configure out the problem? Do have anyone expirence with such sized forms?

Code: Select all

IH|redirect|0||10,100|http://www.domain.tld/index.php?sendsuccess|0
IH|redirect_error|0||10,100|http://www.domain.tld/index.php?sendfailure|0
IH|language|0||10,100|DE|0
IH|send_copy|0||10,100|1|0
IT|name|1|Name: |40,128||300
IT|vorname|1|Vorname: |40,128||300
SM|taetigk|1|Tätigkeitsfeld / Jobangebot: |20,100|Bitte wählen Sie%0%noChoose#SAP Entwickler/in*#SAP e-Business Consultant*#Zertifizierter SAP-Basis Consultant*#Entwicklung#Beratung#Parktikum#Sonstiges|300
IT|eintrit|1|gew. Eintrittstermin: |40,10|TT.MM.JJJJ|300
IR|anrede|0|Anrede: |20,100|Frau#Herr%1%|0
SM|titel|0|Titel: |20,100|-keiner-%0%keinen Titel#Dipl. Betr.#Dipl. Inf.#Dipl. Ing.#Dipl. Kfm#Dipl. Math.#Dipl. Wirt-Inf.#Dr.|300
IT|geburts|1|Geburtsdatum: |40,4|JJJJ|40
SC|nationa|1|Nationalität / Land: |10,100|DE|300
TA|sprache|0|Sprachen: |20,3|Bitte hier ihre Sprachkenntnisse eintragen|300
IT|strasse und Hausnr.|1|Strasse und Hausnr.: |40,128||300
IT|plz|1|PLZ: |40,5||50
IT|ort|1|Ort: |40,256||300
IT|telefon|1|Telefon: |40,125||300
IT|email|1|E-Mail: |40,256||300
IR|arbeits|1|Arbeitserlaubnis erforderlich: |50,0|ja#nein%1%|0
TA|lebensl|1|Lebenslauf: |100,8|Tragen Sie hier bitte Ihren Lebenslauf in Kurzform ein|300
IC|betrieb|0|Betriebsysteme: |150,3|AIX#Apple UNIX#BeOS#DOS#Free BSD#HP UX#Jaguar#Java OS#Linux#Mac OS#MAC OS X 10.x#Net BSD#Open NT#OS/2#SINIX#andere UNIX#Win2k#Win XP#Win2k Server#Win2k3 Server|0
IC|datenba|0|Datenbanken: |150,3|dBase#Flat File#FoxPro#MS Access#MS SQL#MySQL#Oracle#PostgreSQL#xBase|0
IR|sapr3de|0|SAP R/3 Entwicklerkenntnisse: |50,0|keine%1%#wenig#mittel#gute#perfekte|0
IC|sapr3ko|0|SAP R/3 Komponentenkenntnisse: |150,3|null0#null1#null2#null3#null4#null5|0
IC|program|0|Programmiersprachen: |150,3|ABAP#Bash#Cobol#C#C++#Delphi#JAVA#Perl#PHP#Python#VB(.net)#VBA#XML|0
TA|zusaetz|0|zusätzliche Qualifikationen: |20,3|Bitte tragen Sie hier oben nicht auswählbare / genannte Qualifikationen ein|300
TA|weitere|0|weitere Mitteilungen: |20,3||300
Thank you very, very much in advance for your support,
Florian
Florian
Posts: 119
Joined: Wed 19. Nov 2003, 16:50
Location: Hamburg
Contact:

Post by Florian »

hej hej,

I've configured out the problem by myself :D. This

Code: Select all

IT|strasse und Hausnr.|1|Strasse und Hausnr.: |40,128||300 
was the problem. The line has been edited to:

Code: Select all

IT|strasse|1|Strasse und Hausnr.: |40,128||300 

Now I've got to write a workaround for the arrays which are delivered with the mail. Take a look around:

Code: Select all

betriebssys[1]: 1
betriebssys[2]: 1
betriebssys[3]: 1
betriebssys[4]: 1
betriebssys[5]: 1
betriebssys[6]: 1
betriebssys[7]: 1
betriebssys[8]: 1
betriebssys[9]: 1
datenbaanke[1]: 1
datenbaanke[2]: 1
datenbaanke[3]: 1
datenbaanke[4]: 1
datenbaanke[5]: 1
sapr3develo...: 1
sapr3compon[1]: 1
sapr3compon[2]: 1
programmier[1]: 1
programmier[2]: 1
programmier[3]: 1
programmier[4]: 1
programmier[5]: 1
This is a small problem, because nobody knows about the what-is-what after sending the form :wink: ...

Cheers,
Florian
Post Reply