Support » Fixing WordPress » WordPress can't send mail for Forgot Password and new account

  • Hi,
    Got a strange issue, my new client web site can’t send the Forgot Password and New registration email.

    It says an error occurred and that mail() might not be enabled on the host server. Mail() is working. I can also send mail using the contact form and a mail check plugin.

    I tried deactivating all plugins. same result. I can’t find similar problem elsewhere. I’m hosted on Godaddy. I tried a few smtp for wordpress plugin but I was not able to get any of them to work. However, if a contact form works, I can’T see why it behave differently for the admin mails.


    Thanks for your your help.

Viewing 4 replies - 1 through 4 (of 4 total)
  • Andrew Nevins


    WCLDN 2018 Contributor | Volunteer support

    Have you contacted your hosting providers about this?
    For now you can try resetting your password through other means

    Thread Starter MrYann


    Yes. I do not need to reset my password. I’m in testing phase with the client. I talked with them, but they limit themsleves to test a sendmail php script in the root of my wordpress to confirm that mail() is working.

    Hi MrYann,

    I ran into the same problem today on a CentOS 6 server. Just like in your case, sendmail was working, and other PHP mail scripts were working too.

    Turns out that it was caused by SELinux which can prevent mail from being sent. To test, try this from the command line:

    /usr/sbin/getsebool httpd_can_sendmail

    This will show you ON or OFF. To change it, run this:

    sudo setsebool -P httpd_can_sendmail 1

    This can take several minutes depending on the speed of the server. It solved the problem in my case.

    Thread Starter MrYann


    OK. Thanks for the feedback. Have to say, I do not remember how I managed the issue in the end. If I see that again i’ll come back here 😉

Viewing 4 replies - 1 through 4 (of 4 total)
  • The topic ‘WordPress can't send mail for Forgot Password and new account’ is closed to new replies.