Support » Fixing WordPress » emails not sent

  • I just realized that my blog is not sending out new registration emails, and also doesn’t send the password reminder email. with registration – it looks like it goes through just fine – i get the message saying “registration complete”

    with password reminder, i instead get this error:
    “The e-mail could not be sent.
    Possible reason: your host may have disabled the mail() function…”

    i went into the pluggable-functions.php file, and replaced the line:

    "From: wordpress@" . preg_replace('#^www\.#', '', strtolower($_SERVER['SERVER_NAME'])) . "\n" .

    with my email address, but still no luck.

    any suggestions? i seem to remember fixing this once before, but can’t remember what i had to do….

Viewing 3 replies - 1 through 3 (of 3 total)
  • Isn’t it in wp-includes/functions.php as well? I know with WPMu, it’s in a number of files.

    No responses on this? It’s got something to do with PHP not having access to SMTP, but I’m not sure what it is.

    My server is using SendMail instead of mail.
    here how I solve it.

    tcheck the pluggable.php file

    you might get this
    // Set to use PHP’s mail()
    on line #238

    change it for this if you are using SendMail
    // Set to use PHP’s sendmail()

    or this if you are using QMail
    // Set to use PHP’s qmail()

    or this if you are using SMTP
    // Set to use PHP’s smtp

    I got those function from the file class-phpmailer.php.

    it worked for me. hope it will helps !

Viewing 3 replies - 1 through 3 (of 3 total)
  • The topic ‘emails not sent’ is closed to new replies.