I get the following error message in admin/user/user:
Unable to send e-mail. Please contact the site administrator if the problem persists.
Is this error caused by the fact I haven't an email service installed on my server? thanks
Update: I now get the following error.
Error sending e-mail (from "Website Name" to [email protected]). Attempt to e-mail [email protected] concerning order 114 failed.
This error is due the fact that your mail service is not configured. Drupal, by default, trying to send the user some email and after it fail, it show this message.
If you Drupal is running on Ubuntu it is quite easy to install the mail service:
sudo apt-get install php-pear sudo pear install mail sudo pear install Net_SMTP sudo pear install Auth_SASL sudo pear install mail_mime sudo apt-get install postfix
And that's it!
Even after installing postfix, you still might not be able to send mail with Drupal. Even if you can send mail from command line and a console php script, your attempt to send from Drupal (or any other apache web app) might fail. I'm using postfix on CentOS 6.x. I found that my CentOS VM by default was set to prevent httpd from sending mail. The problem was that my system had httpd_can_sendmail = Off
in sebool values.
The solution was described at http://www.spidersoft.com.au/2011/posftix-permission-denied-problem/
$ /usr/sbin/getsebool httpd_can_sendmail
Confirm that httpd_can_sendmail --> off
Problem was solved by:
$ setsebool httpd_can_sendmail 1
Or permamently set it with:
$ setsebool -P httpd_can_sendmail 1
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With