Forums

Email notification doesn't work!! (22 posts)

  1. Juanlu001
    Member
    Posted 3 years ago #

    Hello everyone:

    I've got a problem with wordpress email notification when a comment is submitted: it doesn't work. I don't know if it's an issue from PHPMailer, my hosting or what. I've suffered enough, would you help me??

  2. kwbridge
    Member
    Posted 3 years ago #

    Have you tried changing the settings to use a different email address? Does that make a difference? Have to ask but have you checked your spam folder?

  3. riteshjagga
    Member
    Posted 3 years ago #

    I encounter the same error. When any new comment is posted, I do not receive any notification on my email id. I have used correct email id in the admin profile and in the General Settings.

    I am not sure where should I look for spam folder, any help is much appreciated!

    Thanks in advance.

  4. kwbridge
    Member
    Posted 3 years ago #

    The spam folder would be in the email program that you use.

    Have you asked your webhost about this problem?

  5. Juanlu001
    Member
    Posted 3 years ago #

    Yes, I've checked my spam folder, and I've found nothing. I don't think it is a problem from my webhost, because I use the cformsII plugin with an external SMTP server and it works nicely.

  6. mrmist
    Forum Janitor
    Posted 3 years ago #

    It depends how you are testing it. It won't, for example, notify you about comments that you make on your own posts whilst logged in. Nor will it notify an admin if a comment is published without being held for moderation.

  7. Juanlu001
    Member
    Posted 3 years ago #

    But my comments are set to await for moderation, and some people has just commented on my blog and I haven't received anything...

  8. mrmist
    Forum Janitor
    Posted 3 years ago #

    Did you get the email about your new WordPress blog when you created your blog?

  9. Juanlu001
    Member
    Posted 3 years ago #

    Sorry, I don't understand what you have said. If you mean if I set correctly my email when I created my blog, the answer is yes. Forgive my poor English :(

  10. joober1212
    Member
    Posted 3 years ago #

    I'm having this same problem. I'm using Oxyhost with PHPSendMail() enabled. Forgotten password notices send out fine though so I'm not sure what the issue is here.

  11. rpali
    Member
    Posted 3 years ago #

    My comment notification messages stopped arriving a while after I updated to 2.7, so I know the update didn't cause this. It did work for a while after the update. The strange thing is trackback notification e-mail messages still arrive! Bizarre.

  12. sebastienpage
    Member
    Posted 3 years ago #

    This problem just happened overnight for me.
    I updated to 2.7 a few weeks ago and this morning, I found out that I didn't have a single comment notification email (I usually get 30).
    I looked in the admin panel and saw that many people had commented but I wasn't sent an email.
    I didn't change anything at all in my config.
    My blog is hosted on DreamHost and I know they had problems with my server yesterday but email, database and everything else works fine. I wonder what the problem is...

  13. joober1212
    Member
    Posted 3 years ago #

    This problems seems to be centered around 2.7... If a lot of people are having this, it can't just be us users making mistakes, it might be something in the software. My blog wasn't even made before 2.7, I created it with 2.7.

  14. sebastienpage
    Member
    Posted 3 years ago #

    Ok, my comments are working again. As I said in my previous post, I suspected DreamHost, my host to be the cause. While I don't have any proof of that, I still believe they were causing this issue since they had server and database stuff issue yesterday.

    This morning, all my missing email notifications were in my inbox and I now get notified everytime a new comment is posted.

  15. joober1212
    Member
    Posted 3 years ago #

    Still having this problem - anyone find a solution yet besides the host?

  16. willlayton
    Member
    Posted 3 years ago #

    Me too. I've tried everything. Very frustrating.

  17. rpali
    Member
    Posted 3 years ago #

    It gets weirder and weirder. In trying a few things, I set notification to be sent when comments are posted. I normally don't bother with this since all comments require modification.

    I was quite surprised to find no post sent to let me know a comment required moderation, but a notification was sent as soon as I approved it!

    I wonder if one's host does play a role. If I have the notifications sent to my gmail account, everything works perfectly. <sigh>

  18. animationbytim
    Member
    Posted 3 years ago #

    I'm having the same issue, nothing will work, cforms, registration. I'm using 2.7 I've tried different email addresses, nothing works. Any other ideas?

  19. technopreneur
    Member
    Posted 3 years ago #

  20. herrpedro
    Member
    Posted 3 years ago #

    YEY
    ty so much for showing the light technopreneur

    was so hunger for a solution and it was here all the time

    and figured out that the problem was that wordpress was trying to authenticate in my localhost smtp server that didn't require it.

    worked nicely

    ty again

    http://www.a-fotografia.com
    http://colacomgelo.com

  21. cgum
    Member
    Posted 3 years ago #

    I had issues with the SMTP setup on GoDaddy using Windows hosting (haven't tried it on Linux). Pretty much any call to wp_mail() fails. The SMTP server apparently doesn't like "Bare LF".

    The problem ended up being line breaks. If there was a \n in the content, the send would fail. If it was \r\n it would work. I think this goes for the headers as well. I was never able to get wp_mail() to work (which ultimately uses PHPMailer) but I was able to bypass it and use the regular old mail() function. This took me forever to figure out, so I hope it helps if this is your problem.

    function send_mail($to, $subject, $message) {
    $subject = '[' . get_bloginfo('name') . '] ' . $subject;

    // strip out some chars that might cause issues, and assemble vars
    $site_name = str_replace('"', "'", $this->site_name);
    $site_email = str_replace(array('<', '>'), array('', ''), $this->site_email);
    $charset = get_settings('blog_charset');

    $headers = "From: \"{$site_name}\" <{$site_email}>\r\n";
    $headers .= "MIME-Version: 1.0\r\n";
    $headers .= "Content-Type: text/plain; charset=\"{$charset}\"\r\n";

    $message = str_replace("\r\n", "\n", $message);
    $message = str_replace("\r", "\n", $message);
    $message = str_replace("\n", "\r\n", $message);
    $message = trim($message);
    $result = mail($to, $subject, $message, $headers);
    return $result;

    //wp_mail() doesn't work
    //return wp_mail($to, $subject, $message, $headers);
    }

  22. jacktsewest
    Member
    Posted 2 years ago #

    cgum,

    Can you further elaborate on what to do with that code? My client is on GoDaddy too and unfortunately I am stuck with no solutions for this problem! Thanks!

Topic Closed

This topic has been closed to new replies.

About this Topic