
Nodemailer
Nodemailer Send e-mails with Node.JS – easy as cake! ️ Nodemailer makes sending email from a Node.js application straightforward and secure, without pulling in a single runtime dependency.
Usage - Nodemailer
This page shows how to get Nodemailer up and running quickly, then walks through the most common tasks you’ll perform: creating a transporter and sending a message.
SMTP transport - Nodemailer
SMTP is the main transport in Nodemailer for delivering messages. SMTP is also the protocol used between different email hosts, so it's truly universal. Almost every email delivery provider supports …
Message configuration - Nodemailer
AMP example let message = { from: "Nodemailer <[email protected]>", to: "Nodemailer <[email protected]>", subject: "AMP4EMAIL message", text: "For clients with plaintext …
Nodemailer – Send e-mails with Node.JS
Jan 1, 2000 · These docs apply to the unmaintained versions of Nodemailer v2 and older. For an upgraded and up to date Nodemailer v3+ documentation, see nodemailer.com homepage
Using Gmail - Nodemailer
May 30, 2022 · Gmail is still the quickest way to send a test email with Nodemailer, but it is not the most resilient choice for production workloads. Gmail is designed for humans, not automated services, and …
OAuth2 - Nodemailer
Nodemailer uses this token to generate fresh accessToken s when needed. auth – authentication object type – 'OAuth2' user – e‑mail address (required) clientId – OAuth2 client ID (required) clientSecret – …
Setup SMTP – Nodemailer
See the docs for using OAuth2 with Nodemailer here. Using well-known services If you do not want to specify the hostname, port and security settings for a well known service, you can use it by its name, …
Plugins - Nodemailer
Nodemailer is designed to be extensible. You can inject custom logic at three well‑defined phases of a message’s lifecycle:
Attachments - Nodemailer
Streaming vs. in‑memory Prefer path, href, or a Stream when attaching large files so that Nodemailer can stream data without loading it all into memory.