Contact Form 7 Multiple Recipients Tutorial
In some cases we want to create a contact form with multiple recipients; depending on the subject, the mail will be send to another recipient. In this article I’ll show you how you create this with the Contact Form 7 plugin.
Flexibility of the Contact Form 7 plugin
The Contact Form 7 plugin is one of the most popular plugins for creating forms in WordPress for the moment. I already wrote an article about this plugin which you can read here.
This plugin has a lot of options. The multiple recipients-option we want to create here is not a standard feature, but thanks to the flexibility of the plugin we can easily add this.
Adding a drop down list with multiple recipients
Introduction
What we want to create is a select field where our visitors will be able to select a department. Depending of the choice of our visitor, the mail will be sent to the right department.
In our example, we are going to build a select box with the following options:
- Info -> [email protected]
- Sales -> [email protected]
- Helpdesk -> [email protected]
Adding a new multiple recipients select tag to the form
To create this, we are going to create a new (normal) select tag with these 3 options:
[select recipient "info" "sales" "helpdek"]
Okay, for now we have a normal select tag. But this isn’t connected with the different email-addresses yet. To do this, add “|” and the email-address. This will be the result:
[select recipient "info|[email protected]" "sales|[email protected]" "helpdek|[email protected]"]
Updating the mail “To:” address
Now, all we have to do is update the “To:” field:
That’s it! Now the mail will be sent to the right department.
Conclusion
As you can see it’s very easy to extend the Contact Form 7 plugin. So if you want to create a contact form with multiple recipients, Contact Form 7 can do the job!

May 16, 2011 
