WordPress.org

Support

Support » Plugins and Hacks » Contact Form 7 » Condition to send mail to alternate recipient if value is set

Condition to send mail to alternate recipient if value is set

  • 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 3 replies - 1 through 3 (of 3 total)
  • Plugin Author Takayuki Miyoshi

    @takayukister

    Thank you kindly for the response, but now the loading icon just keeps spinning, doesn’t do anything.

    <p>Property Address :
    [select* address "401 W. State|aud**@gmail.com" "1111 S. Alpine" "308 W. State|aud**@gmail.com" "4615 E. State" "6595 E. State" "1818 Logan Ave." "1800 Logan Ave."]</p>

    As you can see, I’ve added the bar character for those two options. If they select one of those options, I want it to send to that email.

    [No bumping, thank you.]

    Hi there, could you take another look when you get the time?

Viewing 3 replies - 1 through 3 (of 3 total)
  • The topic ‘Condition to send mail to alternate recipient if value is set’ is closed to new replies.
Skip to toolbar