• i am not receiving email notifications when anyone comments on my blog.

    the issue:
    when i first installed v. 2.3.2 a few days ago I got a couple of notifications for comments. when i added an editor they started only going to her. then they stopped coming to either of us. i don’t get the notifications when i comment signed in, or when i comment anonymously. i don’t get the notifications at a gmail account or a pop account.

    steps i’ve taken:
    i have now upgraded to 2.3.3 and it did not fix the issue.
    i have made sure that i have an email address [email protected] with my host. i have been instructed to remove line 228 $phpmailer->Sender = apply_filters( 'wp_mail_from', $from_email ); but as of version 2.3.3 the line no longer seems to exist.
    i have made sure that i have a different email address for every user.

    i have disabled all plug-ins. the theme i’m using is very basic and based on the default.

    i have searched for a solution to my problem and heard several suggestions but they aren’t working for me.

    can anyone please help? i’ve asked Dreamhost, my host, to look into it but i’m not hearing back from them. any help would be appreciated.

Viewing 4 replies - 1 through 4 (of 4 total)
  • Thread Starter leesal

    (@leesal)

    anyone? please, i’m not getting any response from dreamhost.
    If this stays this way I’ll have to try Moveable Type… and I shudder at the thought.

    I’m in the same boat…someone?

    homebillsave

    (@homebillsave)

    I also have had terrible problems trying to get email notification of comments being posted or waiting moderation, and no plug-ins or suggested workrounds produced any result. I then realised that the ‘Submit Comments’ button must execute a form action file and if I could get a simple php mailer into that action file, it would execute when the form was submitted. I finally tracked the correct file down to wp-comments-post.php which is in the root part of the blog.

    I have added the following just above the $location = ( empty($_POST[‘redirect_to’])etc line near the bottom, so ensuring it’s not in an if statement (substitute your appropriate domain/email addresses where you see sample@, domain.name etc and the messages could be as you wish).

    $SendFrom = "[email protected]";
    $SendTo = "[email protected]";
    //there can of course be more than one email in $SendTo, separated by commas
    $MsgBody = "A new comment awaits moderation on your blog";
    $SubjectLine = "New comment submitted to your blog";
    mail($SendTo, $SubjectLine, $MsgBody, "From: $SendFrom", "[email protected]");

    This essentially gives notification that the Submit Comments button has been clicked, executing the form action file. It gives no email control over comment moderation etc; it’s just a simple notifier that there’s something submitted, but that’s what was so annoyingly not occurring.

    Note: the “[email protected]” at the end of the mail line may not be necessary, but when my host upgraded their php a while back, I found php mail on new domains was not sending anything and they advised that php5 was likely to need that extra header and that it would have no bad effect if the php version did not need it. I’ve found it is necessary and works.

    Christopher Whitby

    homebillsave

    (@homebillsave)

    Additional info to above:

    As for the fact that the code won’t of itself filter out automated spam, I use Peter’s Custom Anti-Spam plug-in which seems to stop blank comments being notified or uploaded and requires a commenter manually to complete an anti-spam code entry line (if not completed, no upload and no email).

    Christopher Whitby

Viewing 4 replies - 1 through 4 (of 4 total)
  • The topic ‘no emailed comment notification’ is closed to new replies.