# smtpd

> a very simple SMTP server

Latest version **0.1.7** (published 2015-05-08) · 0 weekly downloads

## Install

```sh
npm install smtpd
pnpm add smtpd
yarn add smtpd
bun add smtpd
```

## Health

**Score 10/100 (F)** — status: abandoned.

Positive: no vulnerabilities.

Warnings: low downloads; no types; no esm support; low quality score; pre 1.0.

Negative: abandoned; low maintenance score.

## Facts

| | |
|---|---|
| Version | 0.1.7 |
| Published | 2015-05-08 |
| First published | 2012-08-18 |
| Weekly downloads | 0 |
| TypeScript types | none |
| Module format | CommonJS |
| Node | >=0.6.0 |
| Dependencies | 2 |
| Known vulnerabilities | 0 (+1 in 1 direct dependencies) |
| Install scripts | no |
| Author | Gui Lin |
| Maintainers | guileen |

## Links

- npm: https://www.npmjs.com/package/smtpd
- Repository: https://github.com/guileen/node-smtpd
- Issues: https://github.com/guileen/node-smtpd/issues
- npm.io page: https://npm.io/package/smtpd

## Dependencies (2)

- [cclog](https://npm.io/package/cclog.md) *
- [mailparser](https://npm.io/package/mailparser.md) 0.4.x

## Recent versions

- 0.1.7 (latest) — 2015-05-08
- 0.1.6 — 2015-05-08
- 0.1.4 — 2014-05-28
- 0.1.3 — 2012-08-18
- 0.1.2 — 2012-08-18
- 0.1.1 — 2012-08-18
- 0.1.0 — 2012-08-18

## README

# node-smtpd

```
var cclog = require('cclog')
var box = require('../smtpd')({
    logger: cclog
});

box.on('msg', function(from, to, msg, body) {
    cclog.info('on msg');
    cclog.info(from);
    cclog.info(to);
    cclog.info(msg);
    cclog.info(body)
});

box.on('error', function(err, mail) {
    if(err){
      cclog.error(err);
    }
    cclog.log(mail)
});

box.listen(25, function() {
    console.log('server listen at', box.address().port)
    testSend();
});
```

## Similar project
[smtpd-lite](https://github.com/g6123/node-smtpd-lite)

---
_Source: https://npm.io/package/smtpd · Machine-readable twin of the npm.io package page. Health data is recomputed on every publish._
