waterlock / waterlock-local-auth

Local authentication method for waterlock
http://waterlock.ninja/
MIT License
39 stars 83 forks source link

Overriding password reset email (from nodemailer to mandrill) #62

Open cyri113 opened 8 years ago

cyri113 commented 8 years ago

I am looking for the best way to override nodemailer and use mandrill instead (or any other transactional email service).

From what I can see, the best option would be to override the afterCreate: method in /api/models/ResetToken.js

Has anyone done something similar before? Any input welcome!

enricodeleo commented 8 years ago

Nodemailer is not a mail service, in fact it use external services to deliver emails.

You just need to put your SMTP credentials (nodemailer also support plugins, called transporters, for well known services that configure it for you, but is absolutely not needed).