Failed to send your message Please try later- Contact form 7 Fixed 2019

Failed to send your message Please try later- Contact form 7 Fixed 2019

Contact Form 7

Contact form 7 is one of the best form plug-in with 5+ million downloads and 4.9 ratting it is used for making contact forms on WordPress websites. Its easy to use and easy to customize.  The users can easily add or remove contact fields according to their choices. In recent updates CF7 is getting some issues regarding message sending. Failed to send your message. Please try later or contact the administrator by another method.  and There was an error trying to send your message. Please try again later These are the two most common errors in CF7. There are several things which are becoming the causes of such problems. In this tutorial I’ll discuss all the reasons and will explain how to fix them. 

Cache Issue

The very common and basic reason of this error is cache. I noticed that Contact form 7 generates a unique token when a user submits the form. But due to Cache issue it was not able to generate the unique tokens. That’s why it was throwing the error.

We can simple fix this problem by

  1. Install WP Super-Cache
  2. Go to its Advance tab
  3. In this tab search for Add here string
  4. Enter the page name where you have embedded the contact form for example you have embedded on contact us in this case enter /contact-us/ in the tab
  5. And click on Save String

Anti Spam Plugins

Sometimes some anti spam plugins stop CF7 to send emails and messages. the very common Plugin which is used for anti spam is Askmit try to deactivate this plugin.


Changing the mail function

This is also a handy method to get rid of this issue. Go to your C panel

/wp-contents/plugins/contact-form-7/includes/mail.php

after getting to this file find the line number 85 and change the return wp-mail ()to return mail()

If you are still failed to fix the issue feel free to drop your comment under this post I’ll assist you in possible ways.

Setup Mailgun to send emails if your emails are appearing in spam folder Check this guide how to Integrate Mailgun With WordPress

17 thoughts on “Failed to send your message Please try later- Contact form 7 Fixed 2019”

  1. OMG, please help! I am having the same problem. I have tried everything you suggested. Please help! The form is at the bottom of the home page and also on the contact page. In your instructions about “Add here” above, there are two places in the WP Super Cache that have “Add here” – you don’t specify which place to add the code. I added it in the first section.

    In Advanced Tab, Two “Add Here” Sections:

    There is this section:
    Add here strings (not a filename) that forces a page not to be cached. For example, if your URLs include year and you dont want to cache last year posts, it’s enough to specify the year, i.e. ’/2004/’. WP-Cache will search if that string is part of the URI and if so, it will not cache that page.

    And there is this section:
    Add here those filenames that can be cached, even if they match one of the rejected substring specified above.

    wp-comments-popup.php
    wp-links-opml.php
    wp-locations.php

    Again, please help!!

  2. Hello,

    I have tried to solve this also. I changed the word wp_mail to mail on line 138
    This did not helped

    I have installed WP supercash and added the page http://planvastgoed.nl/contact/ on:
    Add here strings (not a filename) that forces a page not to be cached. For example, if your URLs include year and you dont want to cache last year posts, it’s enough to specify the year, i.e. ’/2004/’. WP-Cache will search if that string is part of the URI and if so, it will not cache that page.
    and I also added this url on:
    Add here those filenames that can be cached, even if they match one of the rejected substring specified above

    It all did not work.

    Can you please help my any firther?

  3. Do NOT change wp_mail() to mail()! This will override the WordPress mail function and all associated hooks & filters – so mailgun or whatever other mail plugin you use will no longer be used to send mail. This is contraindicated on so many levels I’m not even going to get into it.

Leave a Comment