For some unknown reason I suddenly stopped getting an email notification to alert me when a comment had been left on one of my blog entries regardless of the settings selected in the WP admin pages.
I tried several different options and plugins to try and fix this I even tried resorting to using a plugin to allow SMTP to send the notifications but none of them worked.
I then read this thread over on the WordPress support forums and on page 4, thanks to teknics there is a fix that worked instantly for me. Just a simple addition to my .htaccess file was all that was needed, if you alread have a .htaccess in place please be careful not to mess up anything else in the file as it could prevent your site from working.
Just adding the following line to the end of the .htaccess file was all that was needed:
<strong><span style="color: #ff0000;">php_value mail.force_extra_parameters '-f [email protected]'</span></strong>
I have checked the earlier email notifications I received before it all stopped working and my return path was listed as [email protected] (where iomart are my host, aka Easyspace), after adding the line above to my .htaccess file my return path is now showing as [email protected] and notifications are working ok. I’ve since it to be my actual email address of my account I use for my WordPress profile to keep things tidy and all is working well.
UPDATE – Several wordpress updates later and I stopped receiving notifications again and couldn’t figure out why. In Googling the problem I came across my own bloody blog entry and after removing the line above from my .htaccess file it all works again. So if you added the line above to your .htaccess file REMOVE IT if you’ve updated your WordPress installation.
I’m not sure why this works exactly but if you can shed any light on why forcing an extra parameter suddenly gets things working please do so in a comment below.
One Reply to “Fix for WordPress no longer sending email notification of comments”
Hi, I don’t know if I am in the right place, however my problem is that I am receiving emails requesting that I visit the ‘moderation panel’ as I have 22 comments. I don’t know how to access said panel, neither can I see my comments ??
Hope someone can help – isn’t there a support site for WordPress – cheers Gaile