• Hi,

    I’ve been looking elsewhere but cannot find a solution for this specific situation in which the email after a ‘lost password’ action is not sent and I get the following error: “The e-mail could not be sent.
    Possible reason: your host may have disabled the mail() function…”. The thing is that I also have a form (using cForms) which does send out email correctly. I’m a little at a loss here. Oh; not unimportant: I’m currently using a setup with XAMPP on my windows machine.

    Any input is appreciated. Tnx.
    John

Viewing 1 replies (of 1 total)
  • Thread Starter Splendesco

    (@mediatomics)

    Looking further, I discovered that when I replace

    `if ( $message && !wp_mail($user_email, $title, $message))
    die(‘<p>’ . __(‘The e-mail could not be sent.’) . “
    \n” . __(‘Possible reason: your host may have disabled the mail() function…’) . ‘</p>’);
    return true;`

    with

    `if ( $message && !wp_mail($user_email, $title, $message) )
    if(!mail($user_email, $title, $message)) // added this line as wp_mail call doesn’t work on localhost
    die(‘<p>’ . __(‘The e-mail could not be sent.’) . “
    \n” . __(‘Possible reason: your host may have disabled the mail() function…’) . ‘</p>’);
    return true;`

    email is actually being sent. So there is nothing wrong with the mail() function in my current PHP setup. Hope this information triggers someone ?? as I am having a hard time debugging this any further.

    Tnx again.
    John
    This is line 171 in wp-login.php.

Viewing 1 replies (of 1 total)
  • The topic ‘Email password retrieve not sent’ is closed to new replies.