Forums

Dropdown value to equal more than one email address for recipient

sem 08 Sep, 2022
Hi - been asked if the content of a form can go to multiple addresses depending upon the selection of a drop down value. So, submitting a form for Site A would go to two email addresses.

In field dropdown i can easily put value: email@domain.com name: site A and then on the email action use {data:dropdown} as the recipient. That's perfect. But there seems no way to have two email addresses as a value - i've tried separating them with a comma or semicolon - each time the email fails to send.

Any suggestions?

sem
sem 08 Sep, 2022
AH!

email1.@domain.com,email2@domain.com as value for the dropdown and {data.split:dropdown} as the recipient appears to work!

sem
GreyHead 19 Sep, 2022
Answer
Hi sem,

What you suggest will work but there is a risk that emails shown in a form page will be scraped and spammed. You can use 'code' values in the dropdown and Custom PHP on Submit to convert these to the appropriate email addresses.

Bob
sem 19 Sep, 2022
hey Bob. Thanks for the reply. Im thinking I will do something else because I suspect that in some cases the email values will be the same but the venues different so CF won’t like that and miss out the duplicate entries in the drop down. So your suggestion sounds the best way forward.

thanks.

sem
You need to login to be able to post a reply.