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.

  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.

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

  • Lisa

    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.