Ryan Coleman Ryan Coleman - 19 days ago 6
PHP Question

Extending Contact Form 7 with IF statements

I need to extend Contact Form 7 on a site of mine so that depending on which drop-down the user chooses, it will send the email to a different email address. I was just wondering if there was a way I could extend Contact Form 7 to do this, maybe with IF statements? (But where would I code these in if this is the best direction?)

Thanks!

Answer

Selectable Recipent

[select your-recipient "CEO|ceo@example.com"
                    "Sales|sales@example.com"
                    "Support|support@example.com"]

Refer:

http://contactform7.com/selectable-recipient-with-pipes/