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.

All other Modules /

Discuss all other Modules here.

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

Fix for smtpmailer to make it work with newsletter module


Go to End


3 Posts   1263 Views

Avatar
Dr.med.Zoidberg

Community Member, 2 Posts

3 December 2010 at 5:36am

Edited: 03/12/2010 5:41am

I had to do the following to make newsletter module send mails through smtpmailer correctly
Silverstripe 2.3.3
SmtpMailer [v0.1.0]
Newsletter [v0.4.0-rc1]

in smtpmailer/code/SmtpMailer.php line 43 change

$this->sendMailViaSmtp( $to, $from, $subject, $attachedFiles, $customheaders, false );

to

return $this->sendMailViaSmtp( $to, $from, $subject, $attachedFiles, $customheaders, false );

Hopefully this saves time for others ;-)

Avatar
dhensby

Community Member, 253 Posts

3 December 2010 at 6:01am

Nice work.

You should submit this to http://open.silverstripe.com

Also, you should look at upgrading to 2.3.7 or 2.4 for security reasons.

Avatar
Dr.med.Zoidberg

Community Member, 2 Posts

3 December 2010 at 6:20am

Edited: 03/12/2010 6:21am

Filed a bug report:

http://open.silverstripe.org/ticket/6242

No customer budget for upgrading to latest silverstripe version :-(

By the way: Big thx to the community to keep things going!