Viewing 3 replies - 1 through 3 (of 3 total)
  • Plugin Author Takayuki Miyoshi

    (@takayukister)

    Thread Starter samphai

    (@samphai)

    Thanks a lot Takayuki Miyoshi, but it is not what i was asking for.
    what i mean is. i want to add a checkbox above the SUBMIT button where user can check and then they will get a copy of the mail they just sended to me.

    Hi

    Test it ??

    ?1: Add this code to your theme’s functions.php:

    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; }

    2:Add: [checkbox send_c default:0 “Send me a copy of this message.”]

    3: Ticked the Mail(2) option and then it works like a charm.

Viewing 3 replies - 1 through 3 (of 3 total)
  • The topic ‘Send a copy of this email to yourself -TAG ?’ is closed to new replies.