Mailgun Integration #108

Open
TheNeikos opened this Issue Dec 4, 2016 · 6 comments

Projects

None yet

2 participants

@TheNeikos

Is that something you'd be interested in this repository?

@amousset
Member
amousset commented Dec 4, 2016

Sure!

@TheNeikos

Okay, so I am almost done. However there is a large roadblock...

Mailgun wants the individual inputs and not through an SMTP format, however I am unable to get access to that as SendableEmail only gives access to the whole message at one.

@amousset
Member
amousset commented Dec 4, 2016

I added the SimpleEmail struct for this kind of needs (access to individual fields if I understand it correctly), but I see there is currently no way to get data from except by converting it to a SendableEmail.

Is the content of this struct matching what you need? If so, we probably need another trait (like SendableEmail, and likely named SimpleSendableEmail), and transport methods that use this trait to send emails through HTTP APIs (like Mailgun).

@TheNeikos

Yup, those are what I need. The Mailgun API is really simple too: https://documentation.mailgun.com/api-sending.html#sending

@TheNeikos

Additionally, sending extra information with each e-mail would also be nice if that is supported.

Do you mind if I add all that to the PR?

@TheNeikos TheNeikos closed this Dec 5, 2016
@TheNeikos TheNeikos reopened this Dec 5, 2016
@amousset
Member
amousset commented Dec 5, 2016

That would be great to add this.

@amousset amousset added the in progress label Dec 5, 2016
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment