2016-11-24 15:47:41 -05:00
|
|
|
/*eslint no-unused-vars: "off"*/
|
2016-02-27 20:01:12 -05:00
|
|
|
/*
|
|
|
|
|
Mail Adapter prototype
|
|
|
|
|
A MailAdapter should implement at least sendMail()
|
|
|
|
|
*/
|
2016-02-23 21:05:27 -05:00
|
|
|
export class MailAdapter {
|
2016-02-27 20:01:12 -05:00
|
|
|
/*
|
|
|
|
|
* A method for sending mail
|
|
|
|
|
* @param options would have the parameters
|
|
|
|
|
* - to: the recipient
|
|
|
|
|
* - text: the raw text of the message
|
|
|
|
|
* - subject: the subject of the email
|
|
|
|
|
*/
|
2016-02-23 21:05:27 -05:00
|
|
|
sendMail(options) {}
|
2016-02-27 20:01:12 -05:00
|
|
|
|
|
|
|
|
/* You can implement those methods if you want
|
|
|
|
|
* to provide HTML templates etc...
|
|
|
|
|
*/
|
|
|
|
|
// sendVerificationEmail({ link, appName, user }) {}
|
|
|
|
|
// sendPasswordResetEmail({ link, appName, user }) {}
|
2016-02-23 21:05:27 -05:00
|
|
|
}
|
|
|
|
|
|
|
|
|
|
export default MailAdapter;
|