Support » Plugin: Contact Form 7 » "Send a copy to yourself" Checkbox

Viewing 1 replies (of 1 total)
  • 1. add in function.php

    // Kontaktformular Kopie an Absender
        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 ( "Kopie an meine E-Mail-Adresse senden" != $cf->posted_data['contact_sendmail'][0] )
                    $additional_mail = array();
        return $additional_mail;
        }

    2. add in “Formular” settings of Formular-WP-backend
    already checked:
    [checkbox contact_sendmail default:1 use_label_element "Kopie an meine E-Mail-Adresse senden"]

    not checked:
    [checkbox contact_sendmail use_label_element "Kopie an meine E-Mail-Adresse senden"]

    3. go to “Mail” settings of Formular-WP-backend
    scroll down and check
    “Use Mail(2)”

    OR

    add to “Additional headers:” of “Formular”-settings:
    Bcc: [your-email]
    (no ceckbox in Frontend – sending without request)

Viewing 1 replies (of 1 total)
  • The topic ‘"Send a copy to yourself" Checkbox’ is closed to new replies.