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.

General Questions /

General questions about getting started with SilverStripe that don't fit in any of the categories above.

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

SMTP authentication?


Go to End


5 Posts   2349 Views

Avatar
digibrains

Community Member, 130 Posts

22 September 2010 at 4:35am

ss 2.4.0

I've been looking through the forums for any information on setting up SMTP authentication for shared hosting environments. Other than a few posts that talk about hacking the core, I'm coming up empty on this.

Is there a way to set SMTP authentication without resorting to core hacks? i.e., _config.php

On that note...if there isn't, may I suggest that as a future feature?

Chris.b

Avatar
digibrains

Community Member, 130 Posts

23 September 2010 at 5:41am

Edited: 23/09/2010 5:53am

sorry to bump my own post...

SS: 2.4.0
Userforms: 0.3.0

If anyone can help I'd greatly appreciate it. Mail is being delivered to the servers default junk mailbox instead of the recipient email address specified in the userforms page. Presumably because the host requires SMTP authentication

from localhost.localdomain [127.0.0.1]

  ----- The following addresses had permanent fatal errors -----
<info@xxxxxxxxxx.com>
   (reason: 553 sorry, your mail was administratively denied. (#5.7.1))

Am I correct that SS just uses the PHP mail() function to send mail? That still uses the sendmail function though, right?

Also want to point out that this doesn't work in 2.4+.
http://www.silverstripe.org/archive/show/43027

EDIT: Emails sent to outside (not local) addresses work fine.Not sure about this whole post now. Grrr...

Chris.b

Avatar
lerni

Community Member, 81 Posts

23 September 2010 at 6:44pm

Edited: 23/09/2010 6:44pm

heho

there is a module... but haven't tried it yet.
smtpmailer-module

Avatar
digibrains

Community Member, 130 Posts

24 September 2010 at 7:56am

I will test and report back. Thanks!

C.b

Avatar
elgordo

Community Member, 70 Posts

1 June 2011 at 4:22pm

Just to confirm that the module http://silverstripe.org/smtpmailer-module/ works with 2.4.5 for sending email via SMTP (using a Google apps gmail)