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

爱⌒轻易说出口 提交于 2020-07-31 05:40:50

问题


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

易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!