Maybe theres a way to do this now that I'm just not seeing, but It would be great to have a way to change the "send-to" email address based on a select and its value - so the select could have:

first@email.address|First address
second@email.address|Second address
third@email.address|Third address

And the form would send accordingly.

Thanks!

Comments

mariuss’s picture

This is similar to the core contact module.

Yes, I would like to see this as well.

krynsky’s picture

I am in need of this feature too for a current project. I've created a select titled "subject" and want the recipient email to be different depending on the subject the user has selected.
For example.
if subject selected = "donations" send email to: donations@mysite.com
if subject selected = "jobs" send email to: jobs@mysite.com
etc...

quicksketch’s picture

Version: 5.x-1.x-dev » 5.x-2.x-dev
Status: Active » Fixed

This feature finally made it into the 2.x branch of webform. Similar to the email component, select and hidden fields can now receive emails depending on their submitted value. The option to use a select or hidden list is displayed in the "Conditional e-mail recipients" fieldset directly below the normal e-mail address on the node form.

SimonV’s picture

This doesn't seem to actually work... anyone got this working? I added a hidden field. Default value is %get[email], when I view the source it appears to get the correct value, but doesn't actually send the email to the address passed. The email is sent to the main recipient but not the the Conditional Recipient.

quicksketch’s picture

For those interested, we're continuing the problem with using $_GET in http://drupal.org/node/223388.

Anonymous’s picture

Status: Fixed » Closed (fixed)

Automatically closed -- issue fixed for two weeks with no activity.