{
 "kind": "tool",
 "slug": "nodemailer",
 "path": "tools/nodemailer/",
 "name": "Nodemailer",
 "maker": null,
 "density": "profile",
 "crumbs": [
  [
   "Tools",
   "tools/"
  ],
  [
   "Files, images and media",
   "tools/files-media/"
  ]
 ],
 "lead": "Send emails from Node.js applications with support for multiple transport methods.",
 "chips": [
  {
   "label": "Files, images and media",
   "path": "tools/files-media/"
  },
  {
   "label": "NPM"
  }
 ],
 "primary": {
  "label": "Copy install command",
  "copy": "npm install nodemailer"
 },
 "links": [
  {
   "label": "GitHub",
   "href": "https://github.com/nodemailer/nodemailer"
  },
  {
   "label": "Website",
   "href": "https://nodemailer.com/"
  }
 ],
 "track": "New versions, deprecation and license changes on your dashboard",
 "verdicts": [
  {
   "key": "license",
   "label": "License",
   "value": "MIT-0",
   "status": "yes",
   "sub": "Use it in paid apps",
   "quote": null,
   "note": "License from npm.",
   "src": "https://github.com/nodemailer/nodemailer"
  },
  {
   "key": "maint",
   "label": "Maintained",
   "value": "Maintained",
   "status": "yes",
   "sub": "Last change Nov 20, 2026",
   "note": "Latest GitHub release Nov 20, 2026. ",
   "src": "https://github.com/nodemailer/nodemailer"
  },
  {
   "key": "pop",
   "label": "Used by agents' projects",
   "value": "155 projects",
   "status": "info",
   "sub": "#3 of 281 in its category",
   "note": "Dependency in 155 public GitHub projects set up for AI coding agents that we scanned (2.5%).",
   "src": null
  },
  {
   "key": "agent",
   "label": "Agent access",
   "value": "Docs for agents",
   "status": "yes",
   "sub": "llms.txt",
   "note": "Agent skills for this library in the skills catalog; community skills are written by others, read them before you install.",
   "src": "https://nodejs.org/llms.txt"
  }
 ],
 "vfoot": "From the package registry and GitHub, checked daily.",
 "blocks": [
  {
   "id": "overview",
   "nav": "Overview",
   "h2": "What Nodemailer does",
   "parts": [
    {
     "t": "prose",
     "text": "Nodemailer is a dependency-free Node.js mailer where the delivery method is a swappable part, and its README is blunt about setups that tend to fail, such as Gmail."
    }
   ]
  },
  {
   "id": "popularity",
   "nav": "Popularity",
   "h2": "Nodemailer popularity",
   "parts": [
    {
     "t": "stats",
     "items": [
      {
       "n": "79",
       "of": "/ 100",
       "l": "Gid Score, #118 overall"
      },
      {
       "n": "40.5M",
       "l": "downloads a week, npm"
      },
      {
       "n": "17.7K",
       "l": "GitHub stars"
      },
      {
       "n": "155",
       "l": "agent projects use it"
      }
     ]
    },
    {
     "t": "small",
     "text": "Gid Score measures public popularity and activity, not quality.",
     "link": "How the Gid Score is calculated",
     "path": "tools/top/"
    }
   ]
  },
  {
   "id": "usage",
   "nav": "How it is used",
   "h2": "How Nodemailer is used",
   "parts": [
    {
     "t": "list",
     "items": [
      "Nodemailer is a dependency in 155 of the 6,258 public GitHub projects set up for AI coding agents that we scanned (3.2% of the 4,867 JavaScript/TypeScript ones), #3 of 281 in files, images and media.",
      "Counting the projects our scan samples by dependency (Solana 3,067, Ethereum and EVM 1,774, 3D and games 3,130, agent frameworks and SDKs 13,750), it appears in 481; those are left out of every share on this page.",
      "Projects that use it most often also use dotenv (64.5%), Next.js (63.9%), Lucide React (63.2%).",
      "It is more common in projects set up for Devin Desktop (5.0%) than for OpenAI Codex (1.5%)."
     ]
    },
    {
     "t": "h3",
     "text": "By coding agent"
    },
    {
     "t": "rows",
     "rows": [
      {
       "l": "94 projects, 3.1%",
       "v": "GitHub Copilot",
       "path": "agents/github-copilot/"
      },
      {
       "l": "82 projects, 2.5%",
       "v": "Claude Code",
       "path": "agents/claude-code/"
      },
      {
       "l": "56 projects, 2.3%",
       "v": "Cursor",
       "path": "agents/cursor/"
      },
      {
       "l": "14 projects, 5.0%",
       "v": "Devin Desktop",
       "path": "agents/devin-desktop/"
      },
      {
       "l": "13 projects, 2.7%",
       "v": "Gemini CLI",
       "path": "agents/gemini-cli/"
      },
      {
       "l": "7 projects, 1.5%",
       "v": "OpenAI Codex",
       "path": "agents/openai-codex/"
      },
      {
       "l": "7 projects, 2.0%",
       "v": "OpenCode",
       "path": "agents/opencode/"
      },
      {
       "l": "6 projects, 1.8%",
       "v": "OpenClaw",
       "path": "agents/openclaw/"
      }
     ]
    },
    {
     "t": "h3",
     "text": "Often used with"
    },
    {
     "t": "rows",
     "rows": [
      {
       "l": "In 64.5% of its projects",
       "v": "dotenv",
       "path": "tools/dotenv/"
      },
      {
       "l": "In 63.9% of its projects",
       "v": "Next.js",
       "path": "tools/next/"
      },
      {
       "l": "In 63.2% of its projects",
       "v": "Lucide React",
       "path": "tools/lucide-react/"
      },
      {
       "l": "In 74.8% of its projects",
       "v": "Tailwind CSS",
       "path": "tools/tailwindcss/"
      },
      {
       "l": "In 74.2% of its projects",
       "v": "React",
       "path": "tools/react/"
      },
      {
       "l": "In 55.5% of its projects",
       "v": "clsx",
       "path": "tools/clsx/"
      },
      {
       "l": "In 52.9% of its projects",
       "v": "Tailwind Merge",
       "path": "tools/tailwind-merge/"
      },
      {
       "l": "In 48.4% of its projects",
       "v": "Class Variance Authority",
       "path": "tools/class-variance-authority/"
      }
     ]
    }
   ]
  },
  {
   "id": "profile",
   "nav": "Profile",
   "h2": "Nodemailer in practice",
   "parts": [
    {
     "t": "h3",
     "text": "Strengths"
    },
    {
     "t": "rows",
     "rows": [
      {
       "l": "Nothing else to install",
       "v": "The site says everything ships in one package. There are no runtime dependencies or native addons, and no system libraries or build tools are needed."
      },
      {
       "l": "Transport is a swappable part",
       "v": "The message code stays the same while the delivery method changes. Any transport that implements one <code>send(mail, callback)</code> method can be plugged in."
      },
      {
       "l": "A detailed receipt for each send",
       "v": "On success, the SMTP transport returns the accepted and rejected recipients, the server's EHLO capabilities, the message size, and timings for the envelope and the body."
      },
      {
       "l": "Types are built in from v10",
       "v": "Version 10 is written in TypeScript. Old type names such as <code>Mail.Options</code> keep compiling. The README says to remove <code>@types/nodemailer</code>."
      }
     ]
    },
    {
     "t": "h3",
     "text": "Watch out for"
    },
    {
     "t": "rows",
     "rows": [
      {
       "l": "Node.js 20 floor",
       "v": "Version 10 will not run on older Node.js. The docs say to stay on the 9.x line if you are on an older runtime."
      },
      {
       "l": "Gmail: switching beats debugging",
       "v": "The README says Gmail \"either works well, or it does not work at all\". It suggests that switching to another service is probably easier than fixing Gmail issues."
      },
      {
       "l": "Cloudflare Workers is SMTP-only",
       "v": "On Workers only the SMTP-based transports apply, because <code>sendmail</code> needs a child process. The README also says <code>tls.rejectUnauthorized: false</code> fails there with an error."
      }
     ]
    }
   ]
  },
  {
   "id": "more",
   "nav": null,
   "spy_as": "profile",
   "h2": "More about Nodemailer",
   "parts": [
    {
     "t": "more",
     "items": [
      {
       "title": "Funding",
       "path": "tools/funding/",
       "items": [
        "GitHub Sponsors: https://github.com/andris9",
        "Own page: https://www.paypal.me/nodemailer",
        "7 GitHub sponsors"
       ]
      },
      {
       "title": "Packages around it",
       "items": [
        "dotenv: env file loader",
        "lucide-react: icon set for React",
        "next: React framework",
        "zod: schema validation",
        "tailwind-merge: Tailwind class merging",
        "clsx: className builder"
       ]
      },
      {
       "title": "More in Files, images and media",
       "path": "tools/files-media/",
       "items": [
        {
         "text": "Sharp",
         "path": "tools/sharp/"
        },
        {
         "text": "Pillow",
         "path": "tools/pillow/"
        },
        {
         "text": "jsPDF",
         "path": "tools/jspdf/"
        },
        {
         "text": "SheetJS",
         "path": "tools/xlsx/"
        },
        {
         "text": "qrcode (JavaScript)",
         "path": "tools/qrcode-npm/"
        },
        {
         "text": "JSZip",
         "path": "tools/jszip/"
        },
        {
         "text": "PDF.js",
         "path": "tools/pdfjs-dist/"
        },
        {
         "text": "openpyxl",
         "path": "tools/openpyxl/"
        }
       ]
      }
     ]
    }
   ]
  },
  {
   "id": "alternatives",
   "nav": "Alternatives",
   "h2": "Alternatives",
   "parts": [
    {
     "t": "alts",
     "items": [
      {
       "name": "Nodemailer",
       "me": true,
       "facts": [
        "MIT-0",
        "Gid 79",
        "40.5M/wk"
       ]
      }
     ],
     "more": "Compare Nodemailer with another tool",
     "more_path": "tools/compare/"
    }
   ]
  },
  {
   "id": "start",
   "nav": "Get started",
   "h2": "Get started",
   "parts": [
    {
     "t": "install",
     "intro": "Install it.",
     "code": "npm install nodemailer"
    },
    {
     "t": "h3",
     "text": "Rules for your agent"
    },
    {
     "t": "rules",
     "label": "Paste into AGENTS.md or CLAUDE.md",
     "text": "## Nodemailer\n- Create one transporter when the application starts and reuse it. Do not call `createTransport()` for each message.\n- Set `secure: true` only for port 465. Use `false` on every other port; Nodemailer still tries to upgrade to TLS if the server supports it.\n- Read SMTP credentials from environment variables (`process.env.SMTP_USER`, `process.env.SMTP_PASS`), as the docs do.\n- After `sendMail()`, check `info.rejected`. A message counts as sent if at least one recipient was accepted.\n- On Nodemailer 10+, remove `@types/nodemailer` because types ship with the package. Import classes from `nodemailer/lib/*` with a default import.\n- Target Node.js 20+. On Cloudflare Workers use only SMTP transports, and do not set `tls.rejectUnauthorized: false`, which fails there with an error.\n- Call `await transporter.verify()` to catch configuration errors before sending.\n"
    }
   ]
  }
 ],
 "glance": [
  [
   "Package",
   "npm nodemailer"
  ],
  [
   "Category",
   "Files, images and media"
  ],
  [
   "License",
   "MIT-0"
  ],
  [
   "Latest version",
   "v10.1.0, October 10, 2026"
  ],
  [
   "On GitHub since",
   "January 2011"
  ],
  [
   "Gid Score",
   "78.9"
  ],
  [
   "Rank in category",
   "#3 of 281"
  ],
  [
   "GitHub",
   "nodemailer/nodemailer"
  ],
  [
   "Last change",
   "Nov 20, 2026"
  ]
 ],
 "good": [],
 "checked_line": "From the package registry, GitHub and our scan of public agent projects; numbers update daily.",
 "logo": "https://agentgid.com/media/avatars/nodemailer.png"
}