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
1
const mailer = libs.email.get();
2
​
3
await mailer.sendMail({
4
to: "[email protected]", // list of receivers
5
subject: "Hello βœ”", // Subject line
6
text: "Hello world?", // plain text body
7
html: "<b>Hello world?</b>", // html body
8
});
9
​
Copied!
Last modified 9mo ago
Copy link