Quantcast
Channel: WordPress.org Forums » [Contact Form 7] Support
Viewing all articles
Browse latest Browse all 49500

Audentio on "[Plugin: Contact Form 7] Condition to send mail to alternate recipient if value is set"

$
0
0

Hi all!

Want to know if I can have a condition inside my CF7 form that will allow me to send an email to an alternate recipient if a certain value is set. In raw PHP, I would just have to do something like:

if ($_POST['field'] == 'bar') {
     $to .= ', newemail@email.com';
}

And that would edit the $to variable to include the new additional recipient.

Please let me know if this is possible! :)

Thanks,
Mike

http://wordpress.org/plugins/contact-form-7/


Viewing all articles
Browse latest Browse all 49500

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>