Create, preview (browser/iOS Simulator), and send custom email templates for Node.js. Made for @forwardemail, @ladjs, @cabinjs, @spamscanner, and @breejs.
const email = new Email({
message: {
from: 'testtest@gmail.com',
send: true,
transport: emailConfig,
preview: false // it always pop up a preview window. I don't want to preview.
}
})
I had to do something like this
email.config.transport = nodemailer.createTransport({ host: HOSTNAME, port: PORT, tls: { rejectUnauthorized: false } }); email.config.preview = true;