WordPress “your host may have disabled the mail() function…” error
Posted by: eBestAgent in HOW-TO, WORDPRESSHow to fix WordPress “your host may have disabled the mail() function…” error
This is the error:
The e-mail could not be sent.
Possible reason: your host may have disabled the mail() function…
When you trying to access your blog or your administration dashboard, you get nothing but white screen and above message. You probably contacted your hosting company but most of the time they can’t figure out what is wrong with your WordPress blog.
It’s not that hard to fix, if you diagnose it properly. Let me assure you that you don’t have to reinstall your WordPress blog.
There are 3 possible conflicts that could have caused this error.
- Trackback or comment conflict.
- User password conflict.
- e-mail php/SMTP conflict.
Let’s fix this mysterious error.
- Trackback or comment conflict:
You probably received a trackback comment and it jammed your database. If your blog crashed after you moderate a trackback comment or a spam comment, your error will fit into this conflict category. To fix this problem you need to login to your phpMyAdmin in your MySQL database. Here’s the step by step instruction: How to delete comments using phpMyAdmin.
How to prevent trackback comment conflict?
If you have installed a plugin called “Comment Relish” by Justin Shattuck, it could be one of the source of this problem. Deactivate the comment relish plugin until author address this problem. (/wp-content/plugins/comment-relish.php) Don’t forget to install Akismet Plugin to catch all spam comments. Akismet Plugin is included in the latest WordPress, all you have to do is activate it.
- User Password Conflict:
Your password or “wp_users” may be corrupted. To fix this problem you need to login to your phpMyAdmin in your MySQL database. Here’s the step by step instruction: How to change password using phpMyAdmin.
How to prevent user password conflict?
Create an extra admin user for yourself, just in case the first one goes bad. Alway back-up your WordPress core files. You can use WordPress database backup plugin.
- e-mail php/SMTP Conflict:
If your hosting server that has the php mail function disabled, you might end up with this error also. Go to WordPress plugin directory and find a suitable SMTP mail plugin. It’s very rare conflict. It’s commonly associated with bloggers who host WordPress on their own server at home.
If you tried all 3 and still get error, please post your problem on WordPress Forum. You’ll get plenty of help from contributors.
comment conflict HOW TO mail() function error smtp mail plugin trackback conflict WordPress wordpress error
Entries (RSS)
[...] Original post by eBestAgent [...]
I can’t thank you enough for posting this! I am using Comment Relish on my blog, had no idea this was a problem, posted a trackback and my entire blog crashed.
My host had no idea what the problem was as there were no server changes on their end.
I googled the error message and your article came up in the search results. I followed your instructions on deleting the comment trackback and it worked beautifully! My blog is now back up and running.
Thank you!
Patty Gale
You’re welcome~
I’m so glad to see your blog running smoothly.
I honestly don’t know why Comment Relish cause this major problem. I’m learning PHP in my spare time, maybe I can come up with a solution or write a better plugin.
Happy blogging~!!!
Wow, thank you so much for pointing me in the right direction. I installed the plugin a couple days back, and it only took down my blog today; I was freaking out, thinking it had been a change I’d made in my database and I had corrupted the entire site.
Of course, it was due to the Comment Relish plugin. An alternative you could mention in this article (as your result shows up very high in Google) is to rename the offending file (/wp-content/plugins/comment-relish.php). This immediately fixes the problem without having to tinker with the database, so you can restore your site ASAP.
And I was about to give my hosting company hell for messing up my files…thank god I didn’t do that :-). By the way, looks like you’re on 1&1 also…how do you like it? I signed up for their 3 years free deal way back when and renewed for a year, but lately my site has been really laggy. I’m considering moving to another company when my contract runs out, but I’m curious to see how your own experience has been on 1&1 (especially since right now, I’m on the cheapest plan).
Thanks for the help in a dire emergency ;-),
-Ravi
You’re welcome~
My article helped someone again, cool.
My experience with 1&1 is excellent so far. Like you mentioned, many people complained that 1&1 is laggy. You could fix the laggy issues by diagnosing your site with Firefox Firebug add-on. Technical support has been excellent. I’m experimenting with Drupal and have no problem with PHP 5 like other web hosting companies mentioned in Drupal.org.
Good luck~
Thank you so much for posting this! I had the same problem (trackback/self-linking in post issue) and your instructions resolved the problem!
Cheers!
You’re welcome~
Happy blooging on LOST~!!!
I had the same problem with one of my group blogs. And someone from Sitepoint forums gave the link here and voila.
Maraming salamat.
Walang anuman~ (Is this “you’re welcome” in Filipino
)
I know “Maraming Salamat” is “thank you” in Filipino but don’t know how to say “you’re welcome.” Hopefully, I said it correctly. I don’t want to offend anyone.
Happy Blogging~
^ You got it right!!
Thanks so much for posting this! I was scared I was going to have to completely reinstall WP.
Last night I got a trackback and my blog crashed. Turns out it was the Comment Relish plugin.
You’re welcome, Christina~
You’ve designed a beautiful blog. I like your black & white infrared photos, too.
Hi,
Thank you very much for this article. I got the error message and found you right away on google.
Is there a fix for the plugin “comment relish”? It seems like it’s trying to send emails when it’s a trackback abd there is no email set-up…
You’re welcome~
There is no known fix for the “Comment Relish” yet. Some bloggers renamed the comment relish and successfully using it. I’ve tried but it’s just matter of time before it clog the data base. I’ll let you know if there’s a fix or other equivalent plugin available.
Happy Blogging~!!!
Thank you sir, you have made my day!
I got hit by the Comment relish bug and nearly wet myself. Though a quick google search turned up your blog post and everything was vack to normal in a few minutes. Cheers!
You’re welcome, Mr. Fulton~
You’ve got a very nice blog. I’ll visit again to read more posts.
Happy Blogging~!!!
I was getting jacked around by my hosting company…. HOST GATOR.
So far, I am not impressed by their tech support….
Seems like they like to pass the buck around a lot ..
I wouldn’t recommend them.
Anyway…. your comments about this email error totally fixed my blog…site…thanks a million ..you’re AWESOME!
Thanks again … I am so happy that you figured this error out… Sweet Duuuuude!
Jason
Thank you! had the same issue on one of my wife’s blogs. it was a Trackback/Comment conflict - now trying to figure out how to make sure it doesn’t happen again
The same happened with me today, and i too googled the thing, and yea this article helped out
Thanks!
Oh man, this saved my life. Thanks a ton for clearing this up. I’m bookmarking this one just in case it happens again. I’m not sure what part of SoCal you’re in, but if you’re ever in Long Beach, I’ll buy you a drink.
Your a life saver! Thank you so much!
oh man you are the awesome lifesaver!! i googled the error message and it brought me to your site. the directions you gave were perfect and immediately addressed the problem. thank you so much i was about to go into shock at the though of losing my blog. Thank you, thank you, thank you!!!!
e-mail php/SMTP Conflict - How am I going to add a plugin and activate it if I am locked out? Is there a different way?
Thanks to the article, Now there is more reason to comment than ever before! Good post… I found it via Google. They most love you!
Your post makes one think! Great article. Thanks for allowing me to comment!
Nice post ! How can i subscribe to your blog?
Great job! I love how easily you convey your information and make it such a quick read!
Thanks for the informative post.. and thanks for adding our comment to the blog
Thanks for the informative post.. and thanks for adding our comment to the blog.