Have you been receiving tons of spam emails through contact form 7? Well, after you read this, this will not be the case anymore! We are going to use Akismet to filter spam mails.
Note: to apply this method, Akismet should be installed and active.
Into your dashboard, go to Contact, and choose the contact form and add these Akismet-related options in the appropriate field in the form
Add this option to the field that accepts the name of the sender.
Add this option to the field that accepts the email address of the sender.
Example: [email* your-email akismet:author_email]
Add this option to the field that accepts the URL of the sender.
When at least one of those options are set (remember, it’s recommended to set all of the options for accurate judgment), Contact Form 7 will send Akismet all of the sender’s input and the information relating to the submitting activity. Akismet will then judge whether this submission is likely to be spam.
If Akismet judges the submission as spam, Contact Form 7 cancels the sending of mails and shows a message that says, “it failed to send the message.” You’ll see an orange border around the response message when it has been judged as spam.
Finally, to make sure it works, you can test it by sending “viagra-test-123″ as name of the sender. This test case will always be judged as spam.