April 23rd, 2005
WordPress and email comments notifications
As other WordPress 1.5 bloggers know, WP is supposed to let the blog owner know when a comment is waiting for approval. (To weed out spammers, this blog is set up to have only people’s first comment posts require approval.) WP notified me about comments when I set up and tested this blog a few weeks ago, but yesterday, it didn’t.
Apparently this problem is caused by a known bug in WP. It’s discussed in a WP forum thread titled Comments notification not emailed any more, and the problem and solution are detailed on this WordPress page.
Here are step-by-step instructions on how to solve this problem:
- In your WordPress 1.5 files on your hard drive, go to the wp-includes folder, and open functions.php.
- Find this line (near the end, on line 1604):
return @mail($to, $subject, $message, $headers, $more);
- Change the above line to this:
return @mail($to, $subject, $message, $headers);
- Upload functions.php to your wp-includes folder.
It worked for me.