Community Documentation

Unable to send e-mail.

Last updated May 28, 2009. Created by swiftarrow on May 28, 2009.
Log in to edit this page.

This is common on shared hosting.

Some reasons this error could crop up are:

  1. php_mail() is disabled.
  2. The user that php_mail() is run as (and apache is run as - usually `nobody') does not have permission to send mail on the server.
  3. There is no mail server program running on the server.

There may be other reasons that I'm not aware of yet.

Generally, a quick fix (and the best one for shared hosting environments) is to bypass the php_mail() entirely using the smtp.module (http://drupal.org/project/smtp). You can then configure your site to use an external email account, for example, Gmail.

There may be other ways, depending on the reason, to rectify this by editing or adding php.ini settings.

Page status

No known problems

Log in to edit this page

About this page

Drupal version
Drupal 5.x, Drupal 6.x
Audience
Site administrators

Reference

Drupal’s online documentation is © 2000-2012 by the individual contributors and can be used in accordance with the Creative Commons License, Attribution-ShareAlike 2.0. PHP code is distributed under the GNU General Public License.
nobody click here