simplesmtp is a Node.js module designed for creating custom SMTP servers and clients, primarily targeting older Node.js environments (v0.6 to v0.8+). The package, currently at version 0.3.35, is explicitly deprecated and no longer maintained. It was developed without Node.js v0.10 streams, indicating significant compatibility challenges with Node.js v0.12 and newer versions. While it offers basic SMTP functionality suitable for integration testing, it lacks active development, security updates, and modern features. Users are strongly advised to migrate to modern alternatives like `smtp-server` for server implementations, `smtp-connection` for client-side operations, or `Haraka` for full-featured SMTP applications, which offer better performance, security, and compatibility with current Node.js releases. There is no ongoing release cadence.
npm install simplesmtpVerified import paths — ran on the pinned version, not inferred.
This quickstart sets up a basic `simplesmtp` server that listens on port 2525 (or `SMTP_PORT` if set), logs incoming email metadata, pipes the email body to standard output, and then accepts the message.
Migrate to `smtp-server` for SMTP server functionality or `smtp-connection` for SMTP client functionality. For full-featured servers, consider `Haraka`.
Immediately replace `simplesmtp` with actively maintained and secure alternatives (`smtp-server`, `smtp-connection`, `Haraka`). Regularly review security advisories for your chosen alternatives.
For Node.js v0.6, explicitly install `simplesmtp@0.2.7`. For Node.js v0.8+, use `simplesmtp@0.3.x`, but be aware of its overall deprecation.
Always use `const simplesmtp = require('simplesmtp');` for importing this module.This package is fundamentally incompatible with modern Node.js. Replace `simplesmtp` with a contemporary, actively maintained SMTP library like `smtp-server`.
This package is strictly CommonJS. If your project is an ESM project, you will need to wrap the `require` call or, preferably, switch to a modern, ESM-compatible SMTP library. For this specific package, ensure your environment is CommonJS compatible (e.g., remove `"type": "module"` from `package.json` if possible, or use a CommonJS entry point).
Run `npm install simplesmtp` to add the package to your project dependencies. Verify the spelling of the module name in your `require()` statement.
No dependency data recorded yet.