I have two versions of an auto responder that I would like to send out based on what the user selected from a dropdown field. So if the user selected California from the dropdown they would get autoresponder 1 and if the user selected Texas they would get auto responder 2. Is there a way to do this?
2 comments
Comments are closed.
Where exactly should be this code added?
hook in to wpcf7_mail_sent – this will happen after form is submitted
add_action( ‘wpcf7_mail_sent’, ‘contact_form_autoresponders’ );
our autoresponders function
function contact_form_autoresponders( $contact_form ) {
}
Add in functions.php –