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.
- Access wp-content/plugins/contact-form-7/includes folder via cpanel or FTP.
- Open mail.php file Search for this code return wp_mail( $recipient, $subject, $body, $headers, $attachments );
- Replace with this code return mail( $recipient, $subject, $body, $headers ); and save file, in most cases problem is solved.
- 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.