Skip to content

Latest commit

 

History

History
32 lines (20 loc) · 820 Bytes

README.md

File metadata and controls

32 lines (20 loc) · 820 Bytes

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-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" })
);

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