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

const mailer = libs.email.get();

await mailer.sendMail({
  to: "test@gmail.com", // list of receivers
  subject: "Hello βœ”", // Subject line
  text: "Hello world?", // plain text body
  html: "<b>Hello world?</b>", // html body
});

Last updated