问题
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|ceo@example.com"
"Sales|sales@example.com"
"Support|support@example.com"]
I would like something like
[select your-recipient "CEO|ceo@example.com"
"Sales|sales@example.com"
"Support|support@example.com"
"All|{"ceo@example.com" "sales@example.com" "Support|support@example.com"}]
Is this possible?
回答1:
You're on the right path. Try this instead though...
"All|ceo@example.com,sales@example.com,support@example.com"
I'd also use select* instead of select so the field is required.
So the whole thing would be:
[select* your-recipient "CEO|ceo@example.com"
"Sales|sales@example.com"
"Support|support@example.com"
"All|ceo@example.com,sales@example.com,support@example.com"]
Let me know if that helps.
Cheers!
来源:https://stackoverflow.com/questions/39969194/contact-form-7-send-to-multiple-contacts-at-once-upon-user-selection