WordPress.org

Ready to get started?Download WordPress

Forums

emails not sent (4 posts)

  1. jkuruppu
    Member
    Posted 7 years ago #

    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....

  2. drmike
    Member
    Posted 7 years ago #

    Isn't it in wp-includes/functions.php as well? I know with WPMu, it's in a number of files.

  3. StonePilot
    Member
    Posted 6 years ago #

    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.

  4. MGMaster
    Member
    Posted 6 years ago #

    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()
    $phpmailer->IsMail();
    on line #238

    change it for this if you are using SendMail
    // Set to use PHP's sendmail()
    $phpmailer->IsSendmail();

    or this if you are using QMail
    // Set to use PHP's qmail()
    $phpmailer->IsQmail();

    or this if you are using SMTP
    // Set to use PHP's smtp
    $phpmailer->IsSMTP();

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

    it worked for me. hope it will helps !

Topic Closed

This topic has been closed to new replies.

About this Topic

Tags

No tags yet.