x

VS

An Independent Development Company

 

Contact Form 7 Dynamic Recipient Based on Select Drop Down

We recently had a project where we wanted to use Contact Form 7 where the user’s message would send to different email addresses based on a drop-down selection menu. The solution involved using the “wpcf7_before_send_mail” filter and then accessing the data to run a conditional. After some trial and error, the final code is below, let us know your thoughts in the comment section below:

Comments:


Exactly what I needed! Thanks for sharing.

Posted by Chris on January 23, 2022 Reply

Join The Discussion:

Your email address will not be published. Required fields are marked *


We’re here to help


Are you tired of feeling lost in the vast world of WordPress development? Our team of professionals is here to guide you every step of the way. With expertise in UI design, UX strategy, and development, we’ll craft a custom solution that meets your specific needs and helps your website stand out from the competition. So why wait? Take the first step towards a better website today and contact us to learn more.

Contact us

Ready to Revamp Your CMS Website? Let’s Go!

Don’t hesitate, let’s collaborate! We can’t wait to hear from you and see what we can do.






    We Value Your Privacy. We’ll never sell or share your data.