RFC: Remove mailer in favor of SwiftMailer

54 views
Skip to first unread message

Simon Erkelens

unread,
May 21, 2016, 9:13:09 PM5/21/16
to SilverStripe Core Development
I'm not sure. Currently, the Mailer doesn't look too bad, but it's just a thought. Hence, RFC.

Matthew Hailwood

unread,
May 21, 2016, 9:39:44 PM5/21/16
to SilverStripe Core Development
+1: Given that most devs don't interact with the Mailer directly (using Email instead) so they shouldn't notice a difference but it's one less component SilverStripe has to actively maintain.

Sam Minnée

unread,
May 22, 2016, 4:02:22 PM5/22/16
to SilverStripe Core Development
Hey, this has been previously discussed in an issue:

And Dan had started on an implementation:

IMO, it's definitely something that should happen for 4. If you're keen to get stuck in, maybe talk to Dan about where his implementation got to?

--
You received this message because you are subscribed to the Google Groups "SilverStripe Core Development" group.
To unsubscribe from this group and stop receiving emails from it, send an email to silverstripe-d...@googlegroups.com.
To post to this group, send email to silverst...@googlegroups.com.
Visit this group at https://groups.google.com/group/silverstripe-dev.
For more options, visit https://groups.google.com/d/optout.
--
Sam Minnée
CEO
SilverStripe Limited

Patrick Nelson

unread,
May 22, 2016, 5:49:52 PM5/22/16
to silverst...@googlegroups.com
Hmm, this looks very good. Would love to see this is v4.0. Are there an inherent advantages of using SwiftMailer over Zend_Mail or vice versa? I don't have a ton one experience with either but I know both are old as the dickens. This is going to be cutting edge for us and only just now getting it in, I wonder if there are any better options before we move to our next major version. Looking at security, activity, general features and etc.

Sent from my iPad

Simon Erkelens

unread,
May 22, 2016, 6:30:49 PM5/22/16
to SilverStripe Core Development
I am ripping out things, so, why not?
Seems Dan stopped working on it somewhere june last year.

Ingo Schommer

unread,
May 23, 2016, 12:56:13 AM5/23/16
to SilverStripe Core Development
Haven't looked at any API specifics, but SwiftMailer still has a lot of traction: 1.3m composer installs in the last 30 days, over 500 projects depending on it. https://packagist.org/packages/swiftmailer/swiftmailer/stats
It's de facto endorsed by the Symfony project (with their lead Fabien being the main committer): https://github.com/swiftmailer/swiftmailer/pulse/monthly
So from a five minute look, I can't see any serious contenders that we should hold out for.

On Sunday, May 22, 2016 at 1:13:09 PM UTC+12, Simon Erkelens wrote:

Matthew Hailwood

unread,
May 23, 2016, 1:27:32 AM5/23/16
to SilverStripe Core Development
I'd add to this that Laravel also uses swiftmailer as their backend for sending emails.

Sam Minnée

unread,
May 23, 2016, 1:38:07 AM5/23/16
to SilverStripe Core Development
Both Zend Mailer and Swiftmailer seem like the leading mail projects. Comparing the two, they seem to have similar levels of development activity—they are both projects that continue to be actively developed. However, Swfitmailer has many more users, any many more plugins for custom transports (e.g. Mandrill).

That's the main reason I think that Swiftmailer is the best bet.

--
You received this message because you are subscribed to the Google Groups "SilverStripe Core Development" group.
To unsubscribe from this group and stop receiving emails from it, send an email to silverstripe-d...@googlegroups.com.
To post to this group, send email to silverst...@googlegroups.com.
Visit this group at https://groups.google.com/group/silverstripe-dev.
For more options, visit https://groups.google.com/d/optout.

Patrick Nelson

unread,
May 23, 2016, 12:54:52 PM5/23/16
to silverst...@googlegroups.com
I agree. Once I noticed it was also used by Laravel I realized this would be a reasonable bet. At the very least having numbers behind a particular library means that there are plenty of other people likely to encounter the same bugs or issues you do making it also likely you will get a fix soon (or help many others if you contribute). Oh and plenty of people who already know how to interface directly with it :)


- Patrick Nelson
Sent from my phone.

Florian Thoma

unread,
May 23, 2016, 7:10:31 PM5/23/16
to SilverStripe Core Development
It would be nice if https://packagist.org/packages/pelago/emogrifier would also work out of the box with whatever library is chosen to replace Mailer.

fun fact: I had a chat to Sam on Friday and he said that the Mailer (class ;) is probably the last snippet of code that is basically still what it was in the very first version of SS... ;) So I think it's time.. ;)

Sam Minnée

unread,
May 24, 2016, 2:06:48 AM5/24/16
to silverst...@googlegroups.com
fun fact: I had a chat to Sam on Friday and he said that the Mailer (class ;) is probably the last snippet of code that is basically still what it was in the very first version of SS... ;) So I think it's time.. ;)

HE'S REVEALING ALL MY SECRETS! D-: 

Sam Minnée

unread,
May 24, 2016, 2:08:34 AM5/24/16
to silverst...@googlegroups.com
I can't see a swiftmailer bridge to emogrifier, but there is this one:


On Tue, 24 May 2016 at 11:10 Florian Thoma <floria...@innoweb.com.au> wrote:
It would be nice if https://packagist.org/packages/pelago/emogrifier would also work out of the box with whatever library is chosen to replace Mailer.

Simon Erkelens

unread,
May 24, 2016, 3:30:40 AM5/24/16
to SilverStripe Core Development
Your other secret, I presume, is you are Batman, as I have never ever seen you and Batman at the same time.
Reply all
Reply to author
Forward
0 new messages