nodemailer

Send emails from Node.js via Nodemailer with SMTP, Gmail, SES, and OAuth2 transports.

Updated Apr 12, 2026
One-click install
npx skills add https://github.com/gil00pita/lanify --skill nodemailer-gil00pita
Or copy as Structured Prompt for Agent
Please help me install this Agent Skill.
Skill: nodemailer
Source: https://github.com/gil00pita/lanify/tree/main/.agents/skills/nodemailer
Command: npx skills add https://github.com/gil00pita/lanify --skill nodemailer-gil00pita

SYSTEM DOCUMENTATION & REQUIREMENTS

What problem does it solve?

Nodemailer enables Node.js applications to send emails through multiple transports (SMTP, Gmail, SES, OAuth2) with full control over transport configuration and message options.

Core Features & Use Cases

  • Flexible transport options: SMTP, Gmail, SES, OAuth2, and more
  • Rich messages: text, HTML, attachments, and embedded images
  • Practical use cases: transactional emails, user notifications, and newsletters

Quick Start

Install nodemailer, configure a transport (SMTP, Gmail, SES, or OAuth2), and send a sample email.

Frequently Asked Questions about nodemailer

High-intent search queries and answers about installing and using this skill.

FAQPage Schema
How do I send emails from a Node.js application using SMTP?

To send emails from Node.js via SMTP, configure an SMTP transport with your server credentials and define message options like sender, recipient, subject, and body. The transport handles the delivery and returns success or error states.

Can I use OAuth2 to authenticate email sending in Node.js?

Yes, you can use OAuth2 to authenticate email sending in Node.js by configuring an OAuth2 transport. This allows secure credential management and token-based access for services like Gmail without exposing raw passwords.

How do I add attachments and embedded images to Node.js email messages?

To add attachments and embedded images to Node.js email messages, define attachment objects within your message payload. You can attach files and embed images directly into HTML content using specific content identifiers.

Does Nodemailer work with Amazon SES for transactional emails?

Yes, Nodemailer works with Amazon SES for transactional emails by configuring an SES transport. This integration supports automated user notifications and high-volume newsletter delivery directly from your Node.js application.

What is the best way to handle email transport errors in Node.js?

The best way to handle email transport errors in Node.js is to capture the response object returned by the transport method. This object contains error details if delivery fails, allowing you to implement retry logic or log issues.