Setup Multiple Recipients With Dropdown Contact form 7
How to setup mail sending based on the department wise using contact form 7 ?.
Here is the solution for this.
First, you have to setup contact form with a drop-down menu or radio button for the selection as shown below.
[select recipient "CEO|ceo@example.com"
"Sales|sales@example.com"
"Support|support@example.com"]
If you insert a pipe (‘|’) character in the middle of the option value, only the part before the pipe will be open to the outside, and the part after the pipe will be used for mail replacement.
Second, you have to add this recipient tag into the To Section of the form.
Now You can test your Contact form.
This is fantastic! Just what I was looking for. Thank you. Using “[recipient]” in the “To” area of the Mail tab setup gives an error, “Invalid mailbox syntax is used,” but it does work.