Forums

FAQ 31 - creating phantasy email address with option value

agleh 28 Apr, 2010
Hallo,

I have implemented the FAQ 31 in my form and it works well.

The only thing that makes me curios is, that a second e-mail is sent to a not existing email address, which is created out of the option value name and the name of the server.

Info Debug Mode:
 1. Form passed first SPAM check OK
   2. Form passed the submissions limit (if enabled) OK
   3. Form passed the Image verification (if enabled) OK
   4. Form passed the server side validation (if enabled) OK
   5. $_POST Array: Array ( [check0] => Array ( [0] => Ja, ich möchte für BARMHERZIGKEIT spenden. ) [text_2] => 1 [select_11] => jährlich [text_4] => 1 [text_5] => 1 [check1] => Array ( [0] => Frau ) [text_7] => g [text_9] => g [text_13] => g [text_14] => 7 [text_15] => g [select_18] => Schweiz [text_17] => [text_18] => helga.kuzmits@comxtech.at [button_20] => Spende absenden [637663df6d56e1a2787979078542f9cc] => 1 [1cf1] => 56f6edff5c8eea87be1308e8d880ed68 [chronoformname] => Spende )
   6. $_FILES Array: Array ( )
   7. Form passed the plugins step (if enabled) OK
   8. An email has been SENT successfully from (Admin)admin@barmherzigkeit.at to info@comxtech.at,Schweiz
   9. Debug End


Point 8 says "An email has been SENT successfully from (Admin)admin@barmherzigkeit.at to [email]info@comxtech.at[/email],Schweiz" and exactly I receive the email by info@comxtech and the other (not existing) recipient is [email]Schweiz@jupiter.austriahosting.com[/email] (name of my websever).

Can you give me hint how to avoid this?

Thanks in advance and best regards.
GreyHead 08 May, 2010
Hi agleh,

What do you have in the Email Setup? Can you post a screenshot?

Bob
agleh 30 May, 2010
Dear Bob,

thank you for answering - in the attachement I send you the E-Mail settings as screenshot:

Regards Helga
GreyHead 30 May, 2010
Hi agleh,

The Dynamic To field must end up with a valid email address. You have select_18 in there.

In your earlier post the value of select_18 is 'Schweitz'; I think that you meant to use text_18 which is the email input.

Bob
nml375 30 May, 2010
Hi agleh & Bob,
It would seem you are combining a 'dynamic to' (with select_18 as input), and a normal 'to' set/created using the code shown in Faq #31. This will generate the behaviour you described with two recipients.

What you should do, is remove the 'dynamic to', and add a normal 'to' (the value isn't that important, this will be replaced by the php-code later on anyway). We only need the normal 'to' (or rather dummy 'to') to allow us to enable the email template.

/Fredrik

PS. There is a slightly different version of the #31 code which does use the 'dynamic to', somewhere on the forum. DS
agleh 01 Jun, 2010
Thank you Bob,
thank you Fredrik,

I will try to implement your suggestions. Thank you for caring, because I am a really newbie. I will report if I suceeded.

Thank you very much
Helga
agleh 01 Jun, 2010
Hi Bob,
hi Fredrik,

thank you very much for your suggestions. I have changed the Dynamic To Address to a normal To and now everything works fine.

Thank you very much.
Helga
This topic is locked and no more replies can be posted.