Contact Form 7
"Send a copy to yourself" Checkbox (2 posts)

  1. faisal_memon91
    Posted 3 years ago #

    Hello all,
    I am using contact form 7 for my blog and I want users to have a checkbox while filling the form, where they have can option to get the copy of message in their mailbox.

    How to achieve this ??


  2. phobophil
    Posted 3 years ago #

    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)"


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

Topic Closed

This topic has been closed to new replies.

About this Plugin

  • Contact Form 7
  • Frequently Asked Questions
  • Support Threads
  • Reviews

About this Topic