'Contact form 7 will not email form due to it thinks its SPAM

I have a client that has upgraded wordpress to 3.7.1. Contact Form 7 now reports all forms as SPAM. I have WP-Mail installed and all was working before. Any ideas on how to fix this. Does anyone know where in the plugin code the form is getting marked as spam

Thanks



Solution 1:[1]

Thanks. I used this to amend this.

// a) Did not work for me. 
add_filter('wpcf7_spam', '__return_false');
 
// b) There is another filter for the boolean used in the control statement. 
add_filter('wpcf7_skip_spam_check', '__return_true');

Solution 2:[2]

Though the Contact Form 7 plugin successfully sends millions of emails every day, there are a host of issues that can stop or delay emails on both the sending and receiving ends. It depends entirely on your local Server & WordPress configuration.

You will need to investigate this issue for your particular local configuration. See Contact Form 7 Email Issues.

Solution 3:[3]

I think this issue happens when we use 3rd party service like sparkpost for sending email or something like that. I tried to check code base how cf7 check spam and found contact-form-7\includes

then submission.php file, check the code near or search with keyword "spam()"

elseif ( $this->spam() ) { // Spam!
        $this->status = 'spam';
        $this->response = $contact_form->message( 'spam' );
}

I think besides the wordpress core blacklist checking it also check the sender domain name and bla bla and mark any valid form submission as spam. So I made the spam checking commented.

This is not a permanent solution but it will help for now.

Solution 4:[4]

I was having the same problem this month and I managed to figure it out. The default CONFIG -> DISCUSSION is applying the disallowed words list to the CF7 forms.

Try adding this code snippet to your theme functions.php file:

/**
 * CONTACT FORM 7
 * Disable WP Disallowed List for SPAM validation
 */
add_filter( 'wpcf7_submission_has_disallowed_words', '__return_false', 10, 2 );

It worked for me.

Sources

This article follows the attribution requirements of Stack Overflow and is licensed under CC BY-SA 3.0.

Source: Stack Overflow

Solution Source
Solution 1 conschneider
Solution 2 buzztone
Solution 3 Manchumahara
Solution 4 Sarah