2016-11-24 15:47:41 -05:00
|
|
|
/*eslint no-unused-vars: "off"*/
|
2018-08-10 15:51:31 -04:00
|
|
|
/**
|
|
|
|
|
* @module Adapters
|
|
|
|
|
*/
|
|
|
|
|
/**
|
|
|
|
|
* @interface MailAdapter
|
|
|
|
|
* Mail Adapter prototype
|
|
|
|
|
* A MailAdapter should implement at least sendMail()
|
2016-02-27 20:01:12 -05:00
|
|
|
*/
|
2016-02-23 21:05:27 -05:00
|
|
|
export class MailAdapter {
|
2018-08-10 15:51:31 -04:00
|
|
|
/**
|
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-12-01 10:24:46 -08:00
|
|
|
|
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;
|