Although contact form 7 is almost the standard and most famous WordPress plugin for adding contact forms, still some issues come along with it. We will discuss “failed to send message error” in this article.

Following are the errors you might see when you submit the contact form.

  1. “Your message was sent successfully” with green border, but you don’t receive email in your inbox.
  2. “Failed to send your message. Please try later or contact administrator by other way” with orange border.
  3. “Failed to send your message. Please try later or contact administrator by other way” with red border.

Reasons for each of the problem.

Now we will look at reasons and solution of each of the above mentioned problems.

“Your message was sent successfully” with green border, but you don’t receive email in your inbox.

This message means contact form 7 had played its part and php function for sending email has completed successfully. Following other factors could prevent messages from reaching the inbox.

  1. Your email was marked spammed by server.
  2. Sending server had some bugs.

 

“Failed to send your message. Please try later or contact administrator by other way” with orange border.

If this error occured, it means although there are no validation errors but still function for sending email has not worked. Following could be the reasons of it.

  1. Akismet has marked your email as spam and blocked it.
  2. WordPress comment blacklisting feature has blocked your email.
  3. Contact form “nounce” feature is considering your email as spam and preventing it from being sent.
  4. Your cache plugin is not refreshing every 24 hours, causing the actual problems.
  5. SMTP or any plugin could be conflicting.

 

“Failed to send your message. Please try later or contact administrator by other way” with red border. 

This error means, contact form 7 tried to send email through wp_mail() function but it didn’t worked. Following could be the reasons of it.

  1. Mail setup has some configuration errors.
  2. Mail server was experiencing downtime or any other problems preventing use of wp_mail() function.
  3. Your email was interrupted by your hosting provider.

Solution for all of above issues.

Install and configure SMTP in WordPress

Installing SMTP will replace default email sending method of your WordPress website. Instead of sending emails through wp_mail() functions, all of the emails go through the SMTP method. You can even configure your SMTP settings to send your emails through third party email services such as Gmail or Zohomail instead of sending them through your hosting provider.

Anyways, in this tutorial I will tell you how you can install and configure your WordPress website you send emails through your hosting provider server using SMTP method. Make sure to follow all the steps correctly in order to avoid any kind of errors.

  1. Login to your cPanel and click on accounts under email section.

2. Click on add new email. You will see a form like the one in following image.

Create an email account such as [email protected] through the form.

Once you have created your email account, you are almost ready to use it in your WordPress SMTP.

3. Before moving on you must find details somewhere from your hosting provider support forums.

  •  SMTP host for your email address
  • SMTP port for your login

4. Install WP Mail SMTP plugin and activate it. Go to email>settings and you will reach the following screen where you will define your SMTP configurations.

  • In the from email section write the email address you have just created through cPanel i.e. [email protected]
  • From name is the name of the sender. You can write anything such as your website title, your name etc.
  • Make sure to check “Send all WordPress emails via SMTP” in mailer section.
  • Leave return path blank ( You can check it if you are aware of its use, but its not required in this tutorial )
  • In SMTP host and SMTP port, write the details as provider by your hosting support. You can find them even by googling.
  • In encryption check “Use SSL encryption”.
  • Check on “Yes: Use SMTP authentication” in authentication section.
  • In username section write the email address you have created through panel ( Same email as in the first step  )
  • Write your email password and click save changes.

SMTP must be working fine in your WordPress site. Just to make sure, you can test its working by going to bottom of the settings page and using email testing tool.

If you receive email, it means SMTP is working fine on your WordPress installation.

Configure contact form 7

Once SMTP has been installed and configured properly, now its time to make some changes to contact form 7. Make sure to follow each of the following steps properly in order to avoid bugs or other issues.

  1. Go to contact form 7

2. Either create a new form or edit an existing one

3. Go to mail tab

4. Ensure following settings

  • In to form write any email where you want to receive all the emails.
  • In from section, remove everything and write the email address we recently created with your hosting account i.e. [email protected]
  • Make sure all the mail-tags are defined properly in message body, headers etc.

 

If you followed all of the above settings, I am sure it must fix it for you regardless of the reason.

Still some bugs appearing? contact us and one of our team members will fix it for you for just $19.