adonisjs / mail

AdonisJS Email Provider
MIT License
106 stars 34 forks source link

SMTP OAuth2 #16

Closed ghost closed 6 years ago

ghost commented 7 years ago

Nodemailer supports OAuth2 over SMTP see here: https://nodemailer.com/smtp/oauth2/

Does Adonis-mail have a driver that supports this?

thetutlage commented 6 years ago

Sorry for getting late on this

How about using Adonis Ally to get a token with Oauth2 flow and storing the token.

Later when you will send the email, simply update the in-memory config to use the current token and send the email.

Can help you further, once you have got some code ready.

ghost commented 6 years ago

Thanks, we're using simple SMTP auth as it is, but if I get the opportunity I'd like to try this.