This module applies for Nodemailer v6+ and provides a transport for Brevo v3.
Install with npm
npm install nodemailer-brevo-transport
Require the module
const nodemailer = require("nodemailer");
const Transport = require("nodemailer-brevo-transport");
Create a Nodemailer transporter
const transporter = nodemailer.createTransport(
new Transport({ apiKey: "my-api-key" })
);
Embedding inline images requires the image to be hosted and available via an absolute URL. The image URL and size properties can be injected into the HTML content through parameters. Take a look at test/manual/send-inline-image.js
for an example.
MIT