My Drupal installation does not seem to send emails to people who register on the site or who asks to retrieve password.

It is over here.
http://markcl.org/spms

It says email is sent, but I tried with Gmail and Yahoo, even going to the Spam folders and found no email from the said installation.

I can send and receive emails from my site however, and Drupal can send to email accounts hosted in the same site, i.e. bugs@markcl.org.

Why is that? According to my host:

"We can only suggest sir that you check the scripts on the SMTP settings for CMS applications. We are sure that there is no problem with our PHP configuration on our servers."

What can I do so my Drupal can email people again?

Comments

stevenc’s picture

In order to prevent relay and spam, my hosting provider requires that I set PHP ini settings that match my site and contain a valid account for the "from" value. This is likely what their response to you was based on.

// Please specify your Mail Server - Example: mail.yourdomain.com.
ini_set("SMTP","mail.YourDomain.com");

// Please specify an SMTP Number 25 and 8889 are valid SMTP Ports.
ini_set("smtp_port","25");

// Please specify the return address to use
ini_set('sendmail_from', 'ValidEmailAccount@YourDomain.com');

You can add these to your "settings.php" file for your site. Obviously, adjust the values to match your setup.

---------------------------------
Steven Wright

Slalom

problue solutions’s picture

Ive had this issue on a few sites and solved it by using the smtp module instead on internal php mail: http://drupal.org/project/smtp