nodemailer-brevo-transport
v2.2.1
Published
Nodemailer Transport Module for Brevo
Readme
Brevo Transport Module for Nodemailer
This module applies for Nodemailer v6+ and provides a transport for Brevo v3.
Usage
Install with npm
npm install nodemailer-brevo-transportRequire 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" })
);Options
type TransportOptions = {
apiKey: string;
senderIP?: string;
}apiKey
Your Brevo API key. See this help article for details how to create an API key.
senderIP
An optional custom IP to be used for sending transactional emails.
Inline Images
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.
License
MIT
