README
Persistent Mail
Config
From environment variables:
The following environment variables must be declared:
process.env.MAIL_HOST
process.env.MAIL_PORT
process.env.MAIL_USER
process.env.MAIL_PASSWORD
process.env.MAIL_STORE_PATH
process.env.MAIL_CRON
From config object
A config object with the following properties must be provided:
{
host: ,
port: ,
user: ,
password: ,
storePath: ,
cron:
}
Example
const { Mail, PersistentMail } = require("@norvento/persistent-mail");
const mail = new Mail('from', 'to', 'subject', 'body');
await PersistentMail.init()
PersistentMail.sendMail(mail);