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.

All other Modules

Discuss all other Modules here.

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

Use a email relay for the newsletter module


5 Posts   452 Views


30 October 2013 at 11:33am Community Member, 15 Posts

Im trying to use a third party email relay to send my emails with the newsletter module. I have the function all set and ready but when I try to swap out the mail() function in my Email.php file it seems to be sending the same way it has always used. Does the newsletter module not use the Email class? If not what does it use and where can i find it? Im still pretty new with SilverStripe.



30 October 2013 at 6:51pm Forum Moderator, 5511 Posts

I'm pretty sure newsletter does use the email class ( perhaps multiple mail() calls you may have missed. Editing the core mail class is probably not wise as it'll make upgrading hard. You can provide your own Mailer to handle sending email through something other than mail(). See PostmarkMailer as an example that goes over postmark (


30 October 2013 at 11:45pm Forum Moderator, 1796 Posts


I use along with - if that is where your question was directed.


31 October 2013 at 4:17am Community Member, 15 Posts

Ok that is a good point. Thanks for the heads up. How difficult are these options? I like them but not sure on where to start.


31 October 2013 at 5:38am Community Member, 15 Posts

Thanks Guys I got it working, Worked like a charm. Thanks!