How To Fix WordPress Blog Not Sending Emails

This tutorial assumes that you’re currently running a self-hosted wordpress installation on a server running CPanel 11 with the PHP mail() function disabled. Some web hosting companies do this to impede email spammers but it tends to also affect legitimate users. Without this function, plug-ins such as Subscribe To Comments and Contact Form 7 will not work BUT there’s a quick fix to this.


Disclaimer: This tutorial is provided as it is. I shall not be held responsible should anything go wrong along the way. The following information worked perfectly well for me and will hopefully work for you too. Having CPanel makes it a lot easier ;-)

STEP I

How To Create An Email Address Via CPanel

Create a a new email address via CPanel or your web host’s admin area.

How To Create An Email Address Via CPanel

Fill in the necessary data in the fields below

  1. The first half of your email address example: beachblondes
  2. The domain for your email. Leave as it is if you don’t have several domains hosted on your account.
  3. Choose a good password with letters and numbers
  4. Repeat your password
  5. Set the amount of disk space you want to allocate to your new email address.
  6. Click Create.

How To Create An Email Address Via CPanel

Take note of your email address and password as it will come in handy for the configuration of the wordpress plug-in that will get your wordpress installation to start sending emails.

After creating your email address, look at the configuration settings and take note of Outgoing Mail Server (SMTP Host) name and port.

How To Create An Email Address Via CPanel

 

Outgoing Mail Server Settings

 

STEP II

How To Configure WP-Mail SMTP

Download, Install and Activate WP-Mail SMTP plug-in.

In your wordpress dashboard under Settings, click on Email. Let’s assume that the email we created above was “beachblondes@blondes.com

Fill in the setup page as shown below.

How To Configure WP-Mail SMTP

Once you are done setting things up, click update options and wait for the page to reload. When it’s done reloading, scroll down to the and of the page and test your configuration.

How To Configure WP-Mail SMTP

After clicking the “Send Test” button, the page will reload again and display information similar to the image below.

How To Configure WP-Mail SMTP

If the email was successfully sent, Bool True will show as above if the opposite is the case Bool False will be shown. Also if the email was successfully sent, it should be in your inbox.

In the case whereby you get a Bool False message, checking the message above will be able to tell you where the problem is. In most cases, changing Authentication and Encryption settings could help or you might have filled in your username and password wrongly or the SMTP Host and Port are wrongly configured.

Either way, the log file above will tell you what’s wrong.

All that’s left is for you to make sure that your Subscribe To Comment plug-in is now sending out notifications. Simply sign out of your wordpress dashboard and leave a test comment on your blog using a fictitious name. Don’t forget to tick the “Notify me of follow-up comments via e-mail” button.

If you’ve got comment moderation activated, log-in back to your wordpress dashboard and approve the comment. Log-out once more and leave another comment on that same post using another fictitious name. Approve that comment then check your email address to find the comment notification email . ;-)

In my next post, I’ll be writing about how to get Contact Form 7 to work with PHP mail() function disabled.

Feel free to leave a quick feedback as to if this worked for you or not.

Cheers ;-) !

Credits: A huge thanks goes out to Mario J Vargas of Anstrey.com. His tutorial “How to Send Email with WordPress from GoDaddy (Windows Hosting)” helped me fix this problem on my own server and thus inspired me to write what I hope is a detailed description of how I went about it on my own server :-) .



Related Articles You May Like To Read
  1. WordPress Security Fix: Protect Blog From Theft!
  2. Fix Contact Form “Failed to send your message” error
  3. Top 16 Essential Plug-ins For Every WordPress Blog
  4. Remove Dates and Time WordPress Blog Posts and Comments
  5. Top 7 Tweaks For A Faster WordPress Blog

Disclosure: Please note that each time you make a purchase via any referral link on this site, I make a commission. Click here for more info.


10 Comments so far. Leave Yours Below

If you want to ask a question regarding anything from blogging to making money online and wordpress plugins tips, do please make use of the floating search bar at the bottom of this site. If you don't find what you're looking for, then feel free to ask your question

ALL COMMENTS WITH KEYWORDS AS NAMES WILL BE DELETED! TAKE NOTE!


Comment moderation is enabled and may delay your comment. There is no need to resubmit your comment.


  1. im so frustrated i want to get this post savd into my ipod touch that way my step fater can see it, but i cannot find a way.. will any 1 explain to me how please??

  2. Iroko says:

    Thanks, man I got bool true but I tried to use the contact me page to send a message I got error
    with this added to the end of the address bar “/”
    Please what can I do?

    • Your contact form is not even showing @ all. Remember that you have to add the code for your contact form in HTML mode when creating the contact page. If you add the code while in visual mode, it wouldn’t work @ all.

  3. Iroko says:

    /
    The php syntax was changed, that is why I am posting this comment again, how do I configure the contact me form?
    I have spaced the syntax hoping that it would show as I want it!

  4. The contact form is showing now but still not able to send a message, I have also read the post on contact form 7 too, please how can I fix this, thanks!

    • Unfortunately I’ve uninstalled Contact Form 7 from my server and I’m now using WP Spam Free. I’ll see if I can reproduce this on another blog but I ain’t promising anything.

      P.S: I might need access to your blog again to help fix this.

  5. no problem, I set up an account for you.
    You have uninstall contact form 7, so what are you using on the contact page?

  6. [...] 现在的很多服务器,有的没有启用PHP mail()功能,有的启用了却又因为别的原因没法用,严重限制了WordPress网站的便用性。本文参考“How To Fix WordPress Blog Not Sending Emails”给出使用Google邮件服务器通过smtp发送WordPress邮件的设置方法。 [...]