Last updated 28 May 2009. Created on 28 May 2009.
Edited by Swift Arrow. 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 ( 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.

Looking for support? Visit the forums, or join #drupal-support in IRC.


vmettem’s picture

I tried tweaking by making changes to php.ini file, but it seems not working. Then I tried the second Option (installing smtp module. It works!. It makes the job easy.