Selecting in dropdown list a receiver of the message

Dementiev 18 Jan, 2013
Hello all!

Could you please help me with sending emails through drop-down selection of recepient?
I need a simple thing - user fill form and choose a receiver in drop-down, - based on this parameter email goes to selected recepient.
What is the best way to do that form?

I've tried to use "StaticTo" with concrete email ([email]an-dem@yandex.ru[/email]), because it can't operate with field names.
And "DynamicTo" filled by field "teacher_mail", according to drop-down settings.

After submit a form, message delivered only to "StaticTo" address, not to {teacher_mail}.
Although, in debugging information the fileds seems to be recognized OK.

The form is here: http://xn----8sbfeahw0afxcze.xn--p1ai/teacher-contactform

Also, I've tried "Email action by GreyHead" (Email GH) - entered in Email Setup field name "teacher_mail", but no mail sending.
This form here (a copy, just used emal action by GreyHead) - http://xn----8sbfeahw0afxcze.xn--p1ai/teacher-contactform-2

Would be grateful, if you could explain how to make my form send a message to some recepient by selecting him in drop down list.
Thank You very much.

P.S. Screenshot with debug info may be helpful:

Selecting in dropdown list a receiver of the message image 1
GreyHead 19 Jan, 2013
Hi Dementiev,

It's most likely that the missing email is in a spam folder somewhere :-(

Do you have a From Name and From Email set up? I don't' see them in the Debugger output where it says '(name) email'.

You could try removing the space between the two email addresses if there is one - though I don't think that is the problem.

Bob

PS Please see this FAQ for a way to do this without putting email addresses in your form HTML where they may be scraped by spammers.
This topic is locked and no more replies can be posted.