Contact Form 7
[resolved] Add function suggestion / Turn of mailing support (4 posts)

  1. Fangstrom
    Posted 3 years ago #


    First of all, this is a great module!

    I couldn't find an answer to the folowing sudgestion so i post a new thread.

    My sudgestion though is that you add a function to the CF7 where you can turn of the mailing part.

    The thing is that i'm using the CF7 with the CF7 DB extension and have been looking for a way to only store the information in the database without sending an e-mail.

    After some research i have noticed that there are more people who are looking for a feutre like this so it's not only me.

    And trust me, there's no contact form that works as well as the CF7 so if you add this it would be even more awesome!

    (btw, excuse my bad english)

    best regards // Jonas


  2. Takayuki Miyoshi
    Plugin Author

    Posted 3 years ago #

    Add this code to your theme's functions.php.

    add_action( 'wpcf7_before_send_mail', 'my_wpcf7_skip_mail' );
    function my_wpcf7_skip_mail( $cf ) {
    	$cf->skip_mail = true;
  3. Fangstrom
    Posted 3 years ago #

    Thank you.

    Will try this.

  4. Fangstrom
    Posted 3 years ago #

    Works great!

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