Email SMTP

libs.email.get()

Requires the Email SMTP integration to be set up
Returns an instance of nodemailer transporter. You can directly use it to start sending emails
Send simple Email
const mailer = libs.email.get();
​
await mailer.sendMail({
to: "[email protected]", // list of receivers
subject: "Hello ✔", // Subject line
text: "Hello world?", // plain text body
html: "<b>Hello world?</b>", // html body
});
​