node-sap-mailer
This service gives the ability to easily send emails. This service is based on Nodemailer node package.
Nodemailer transport options
//./config.jsmoduleexports = host: "mail.example.com" port: 25 debug: true tls: rejectUnauthorized: false ;
How to use Mailer service in module
//./config.jsvar Mailer = Mailer;Mailersender = 'no-reply@mail.example.com';mailer;
mailOptions:
// setup an e-mailvar mailOptions = from: 'foo@mail.example.com' // sender address to: 'bar@mail.example.com, baz@mail.example.com' // list of receivers subject: 'Hello' // Subject line text: 'Hello world' // plaintext body html: '<b>Hello world</b>' // html body;
For more please see the https://github.com/andris9/Nodemailer example for mailOptions.