Skip to main content

This site requires you to update your browser. Your browsing experience maybe affected by not having the most up to date version.

We've moved the forum!

Please use forum.silverstripe.org for any new questions (announcement).
The forum archive will stick around, but will be read only.

You can also use our Slack channel or StackOverflow to ask for help.
Check out our community overview for more options to contribute.

Archive /

Our old forums are still available as a read-only archive.

Moderators: martimiz, Sean, Ed, biapar, Willr, Ingo

Another way to send mails?


Go to End


1578 Views

Avatar
nomen

Community Member, 52 Posts

11 February 2008 at 11:08pm

Edited: 14/02/2008 5:02am

Hi all:

I _config.php y configure the mail in this way:

ini_set("SMTP", "smtp.example.com");
Email::setAdminEmail('gastondoa@example.com');

Now i can send mails.
But it doesn´t send mails correctly because the mail goes to the spam folder in destination.
If I understand correctly SS uses the PHP mail function to send mails. And this function uses sendmail application.
The problem is that sendmail sends the mail directly to destination and not through the mail server. As a result, the destination mail server treats it as suspicious.
Do I forgot something in the setup?
If this is the only way to send mails, i would like to know how easy should be to substitute the standard mail function with PHP Mailer .
I think this is very easy to use and good product.

Thanks in advance and excuse me for my poor english