$npx skillfedfor your agent

nodemailer

nodemailer enables Node.js developers to dispatch transactional emails programmatically with straightforward configuration and robust delivery handling. Whether you're sending password resets, order confirmations, or notifications, this skill integrates email functionality directly into your application workflow.

nodemailer enables you to send transactional emails from a Node.js application by creating a transporter object configured with your email service credentials (SMTP or OAuth2), then calling the sendMail() method with recipient, subject, and body details. The skill handles the entire delivery pipeline, from authentication through message transmission, making it straightforward to integrate email functionality into your application workflow for password resets, order confirmations, and notifications.

AI-generated summary based on this skill's SKILL.md

84 15 MITupdated by AIDotNet

Decision gist · record as of 2026-01-28

nodemailer enables you to send transactional emails from a Node.js application by creating a transporter object configured with your email service credentials (SMTP or OAuth2), then calling the sendMail() method with recipient, subject, and body details. The skill handles the entire delivery pipeline, from authentication through message transmission, making it straightforward to integrate email functionality into your application workflow for password resets, order confirmations, and notifications.

manual: git clone https://github.com/AIDotNet/MoYuCode → cp -r MoYuCode/skills/tools/nodemailer ~/.claude/skills/nodemailer
skills/tools/nodemailer/SKILL.md · version 9c02ddbc

Use it when

  • nodemailer supports multiple authentication approaches for email delivery, including traditional SMTP with username and password.
  • Yes, nodemailer fully supports sending emails with file attachments in Node.js.

Verify before relying

Read SKILL.md below before installing (1 file). Open directory: indexed for reading, not audited.

Same gist for agents: .md · .json

Install

AIDotNet/MoYuCode/nodemailer · repository language: TypeScript

Open directory. Skills are indexed for reading, not audited. Review a skill's body before installing it.

Frequently asked questions

AI-generated answers based on this skill's SKILL.md and metadata

How do I send emails from Node.js using nodemailer?

nodemailer enables you to send transactional emails from a Node.js application by creating a transporter object configured with your email service credentials (SMTP or OAuth2), then calling the sendMail() method with recipient, subject, and body details. The skill handles the entire delivery pipeline, from authentication through message transmission, making it straightforward to integrate email functionality into your application workflow for password resets, order confirmations, and notifications.

What authentication methods does nodemailer support for email delivery?

nodemailer supports multiple authentication approaches for email delivery, including traditional SMTP with username and password, as well as OAuth2 for services like Gmail. You configure the authentication method when setting up your transporter, specifying credentials or OAuth tokens depending on your email provider's requirements. This flexibility allows nodemailer to work with virtually any email service while maintaining security best practices.

Can nodemailer send email with attachments in Node.js?

Yes, nodemailer fully supports sending emails with file attachments in Node.js. When composing your email message, you simply add an attachments array specifying the file paths or buffer contents you want to include. nodemailer handles encoding and MIME type detection automatically, making it easy to attach documents, invoices, or other files to your transactional emails without additional configuration.

How can I build HTML email templates with styling and embedded content using nodemailer?

nodemailer enables you to construct HTML email templates by setting the html property of your message object instead of plain text. You can include inline CSS styling, embedded images, and formatted content directly in the HTML. For embedded images, nodemailer supports the cid: protocol to reference images by identifier, allowing you to embed images in outgoing emails without external URLs, ensuring reliable display across email clients.

What is the nodemailer setup process for Gmail with OAuth2?

nodemailer with Gmail requires configuring OAuth2 credentials through Google's developer console to obtain a client ID, client secret, and refresh token. You then create a transporter with the service set to 'gmail' and provide your OAuth2 credentials in the auth object. This approach is more secure than storing your Gmail password directly and is the recommended method for integrating nodemailer with Gmail for reliable transactional email delivery.

Does nodemailer support email queuing and rate limiting for bulk sends?

nodemailer itself provides the core email-sending functionality, and while it doesn't include built-in queuing or rate limiting, the skill's architecture allows you to implement these patterns in your application layer. You can combine nodemailer with job queues or custom throttling logic to manage bulk email sends responsibly, ensuring compliance with email service provider limits and maintaining application performance when dispatching large volumes of transactional emails.

SKILL.md

Rendered from the published skill. Quoted content, verbatim.

Nodemailer Tool

Description

Send emails from Node.js with SMTP, OAuth2, attachments, and HTML templates.

Source

Installation

npm install nodemailer

Usage Examples

Basic Email
import nodemailer from 'nodemailer';

const transporter = nodemailer.createTransport({
  host: 'smtp.gmail.com',
  port: 587,
  secure: false,
  auth: {
    user: process.env.EMAIL_USER,
    pass: process.env.EMAIL_PASS,
  },
});

async function sendEmail() {
  const info = await transporter.sendMail({
    from: '"My App" <noreply@myapp.com>',
    to: 'user@example.com',
    subject: 'Welcome to My App',
    text: 'Hello, welcome to our platform!',
    html: '<h1>Hello</h1><p>Welcome to our platform!</p>',
  });

  console.log('Message sent:', info.messageId);
}
HTML Email with Template

```typescript async function

(truncated - see the full file via the links below)

File tree — 1 file
skills/tools/nodemailer/SKILL.md

Let your AI agent find skills like this

Example. Real query, live index.

You found this page by searching. An agent finds it by wishing: SkillFed indexes 56,283 agent skills by what they can do, searchable in plain language.

wish › “Send transactional emails from a Node.js application”

Give your agent the search over MCP, or paste the wish link into any chat. No install? Search from any chat →

Related skills

email-sender
by AIDotNet · AIDotNet/MoYuCode

email-sender enables you to integrate email delivery directly into your applications using SMTP. Configure your mail server settings and trigger messages programmatically to automate notifications, alerts, and communications at scale.

MITupdated Jan 2026
★ 84repo stars
web-scraper
by AIDotNet · AIDotNet/MoYuCode

web-scraper enables you to harvest structured information from websites by defining selectors and parsing patterns. Perfect for automating data collection tasks, this skill transforms raw HTML into organized, usable datasets without manual intervention.

MITupdated Jan 2026
★ 84repo stars
pdf-generator
by AIDotNet · AIDotNet/MoYuCode

PDF Generator transforms HTML, Markdown, and text content into polished PDF documents with full control over styling, templates, and page configuration. Works with Codex and Claude Code for seamless document export workflows.

MITupdated Jan 2026
★ 84repo stars
mailpit-integration
by Aaronontheweb · Aaronontheweb/dotnet-skills

This skill integrates Mailpit, a lightweight email testing tool, into .NET Aspire projects for seamless local development workflows. It handles containerized SMTP server setup and web UI configuration, enabling developers to capture and inspect emails without external services. Perfect for testing email functionality across .NET applications during development cycles.

MITupdated Jul 2026
★ 1,085repo stars
Aspire Mailpit Integration
by wshaddix · wshaddix/dotnet-skills

This skill guides you through integrating Mailpit, a lightweight email testing tool, into your Aspire-based projects. Learn how to configure email capture, inspect messages during development, and streamline your testing pipeline without external dependencies.

no license declared → metadata onlyupdated Feb 2026
★ 67repo stars
exceljs
by AIDotNet · AIDotNet/MoYuCode

exceljs enables you to programmatically build and customize Excel spreadsheets with full formatting control. Generate workbooks with styled cells, formulas, charts, and multiple sheets, then export them as .xlsx files ready for distribution or further analysis.

MITupdated Jan 2026
★ 84repo stars

More skills security-scanner (MIT) · http-client (MIT) · imap-smtp-email (MIT)

Tags
email-deliverysmtp-clientmessage-queueoauth-integrationattachment-handlingtemplate-renderingrate-limitingnotification-serviceemail-automation