roshambo
roshambo

Reputation: 2784

Contact Form 7 send to multiple contacts at once upon user selection

Hi there I am creating a contact form in Wordpress contact form 7 and I'd like to send emails to multiple recipients at once if user selects "all"

I had a look at this but doesn't seem to document if you can send to multiple recipients at once http://contactform7.com/selectable-recipient-with-pipes/ e.g This is either/or

[select your-recipient "CEO|[email protected]"
"Sales|[email protected]"
"Support|[email protected]"]

I would like something like

[select your-recipient "CEO|[email protected]"
"Sales|[email protected]"
"Support|[email protected]" 
"All|{"[email protected]" "[email protected]" "Support|[email protected]"}]

Is this possible?

Upvotes: 0

Views: 2086

Answers (1)

jkgaddis
jkgaddis

Reputation: 121

You're on the right path. Try this instead though...

"All|[email protected],[email protected],[email protected]"

I'd also use select* instead of select so the field is required.

So the whole thing would be:

[select* your-recipient "CEO|[email protected]"
"Sales|[email protected]"
"Support|[email protected]" 
"All|[email protected],[email protected],[email protected]"]

Let me know if that helps.

Cheers!

Upvotes: 3

Related Questions