ElkArte Community

Elk Development => Feature Discussion => Topic started by: Joshua Dickerson on November 02, 2014, 04:09:05 pm

Title: SwiftMailer
Post by: Joshua Dickerson on November 02, 2014, 04:09:05 pm
Working on a SwiftMailer addon because I want to use Mailgun (http://www.mailgun.com/) for emails. Since it uses a curl request, neither the PHP nor the SMTP mailer interface will work. Unfortunately, sendmail() doesn't provide any hooks and I can't see any way to change it without code edits.

So, I think I'm going to just submit a PR to get rid of sendmail() and replace it with SwiftMailer. Anyone object to switching to it?
Title: Re: SwiftMailer
Post by: radu81 on November 02, 2014, 04:25:34 pm
hello,

sorry for the OT, but why do you want to use Mailgun? there is also mandrill.com which is cheaper and provide you an SMTP account to use
Title: Re: SwiftMailer
Post by: Joshua Dickerson on November 02, 2014, 04:41:05 pm
Just one of the ones I was looking at using.
Title: Re: SwiftMailer
Post by: Spuds on November 02, 2014, 06:02:44 pm
Don't know anything about any of those services.

I'd think it would be a good change to be able to choose an API in addition to the the default SMTP or Mail functions.    So maybe some interface or abstract mail class that can be used?  If thats what you are saying I think its a good idea yes
Title: Re: SwiftMailer
Post by: emanuele on November 02, 2014, 06:10:58 pm
I think it's this:
http://swiftmailer.org/
Title: Re: SwiftMailer
Post by: emanuele on November 03, 2014, 06:10:49 am
Oh forgot to add: mails are a pain (I think Spuds knows much more than me on that respect lol) so I guess delegate the hassles to an external library is not a bad thing at all. O:-)
Title: Re: SwiftMailer
Post by: Spuds on November 03, 2014, 07:22:18 am
Yup, tis a pain ... I think it would be good to have the mail area flexible enough to use an external service (I don't know whats involved in those API's) as well as existing internal options as well.
Title: Re: SwiftMailer
Post by: emanuele on March 28, 2016, 05:28:35 pm
/me wonders if this is still relevant

In theory it shouldn't be that difficult, just replace almost anything in sendmail. LOL