Fix!! There was an error trying to send your message. Please try again later.


Contact form 7 issue – There was an error trying to send your message. Please try again later is solved.

From last 3 days we getting issue in wordpress website regarding contact form 7, error is There was an error trying to send your message. Please try again later, after all try of smtp plugins and other method suggested by other blogger, final result zero. At last one of my friend getting solution of this error,  If you run wordpress version above 4+, or contact form 7 version is above 4.7 then you need to change mail function in mail.php file.

Here is the complete guideline to solve the problem Contact form 7 issue – There was an error trying to send your message. Please try again later.

For Copy the below code Click_Here

  1. Access wp-content/plugins/contact-form-7/includes folder via cpanel or FTP.
  2. Open mail.php file Search for this code
    return wp_mail( $recipient, $subject, $body, $headers, $attachments );
  3. Replace with this code
    return mail( $recipient, $subject, $body, $headers ); and save file, in most cases problem is solved.
  4. If its not working after this, need to update php version ( Above 5.4 ). Hope problem is solved.

For Copy the above code Click_Here

its working without attachment variable, for attachment we need to write function for this. will update soon on this page.  Stay Connected.

7 Responses


  • Lisa // // Reply

    Hello,

    I’m afraid I am still getting the above issue. I have applied your fix, and the version of php on the server is 5.5.38.

    Any other ideas?

    Thanks.

    • Creative Media Solutions “Crea // // Reply

      Is it solved?

  • Purnendu Sarkar // // Reply

    problem not solve plz help….

  • Omkar N Hatalkar // // Reply

    Didnt resolve after removing attachments form mail.php 🙁

  • Tacty // // Reply

    Issue solved thanks:)

  • Manorath // // Reply

    Thanks,
    It working

  • shivaraj Acharya // // Reply

    Yes. it working thanks lot

Leave a Reply