B-219 Sec-55 Noida, India
+918010221733

Send Mail to sender also using Contact Form 7

Use below code in your functions.php to Send Mail to sender also using Contact Form 7

add_filter( ‘wpcf7_additional_mail’, ‘my_wpcf7_use_mail_2_or_not’, 10, 2 );

function my_wpcf7_use_mail_2_or_not( $additional_mail, $cf ) {
    if ( “Send me a copy of this message” != $cf->posted_data[‘send_c’][0] )
        //$additional_mail = array();
        return $additional_mail;

}
(Visited 161 times, 1 visits today)

Leave a reply

You must be logged in to post a comment.