# winston-nodemailer

> An email transport layer for winston

Latest version **0.0.5** (published 2014-03-24) · BSD license · 0 weekly downloads

## Install

```sh
npm install winston-nodemailer
pnpm add winston-nodemailer
yarn add winston-nodemailer
bun add winston-nodemailer
```

## Health

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

Positive: no vulnerabilities.

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

Negative: abandoned; low maintenance score.

## Facts

| | |
|---|---|
| Version | 0.0.5 |
| Published | 2014-03-24 |
| First published | 2013-02-24 |
| Weekly downloads | 0 |
| License | BSD |
| TypeScript types | none |
| Module format | CommonJS |
| Node | >0.6.0 |
| Dependencies | 1 |
| Known vulnerabilities | 0 (+2 in 1 direct dependencies) |
| Install scripts | no |
| GitHub stars | 0 |
| Author | Thomas Peklak |
| Maintainers | topek |
| Keywords | winston, mailer, email |

## Links

- npm: https://www.npmjs.com/package/winston-nodemailer
- Repository: https://github.com/thomaspeklak/winston-nodemailer
- Issues: https://github.com/thomaspeklak/winston-nodemailer/issues
- npm.io page: https://npm.io/package/winston-nodemailer

## Dependencies (1)

- [underscore](https://npm.io/package/underscore.md) 1.4.x

## Alternatives

- [@expo/fingerprint](https://npm.io/package/@expo/fingerprint.md) — 6.2M weekly downloads
- [@azure/monitor-opentelemetry-exporter](https://npm.io/package/@azure/monitor-opentelemetry-exporter.md) — 850.0K weekly downloads
- [@azure/monitor-opentelemetry](https://npm.io/package/@azure/monitor-opentelemetry.md) — 624.0K weekly downloads
- [@posthog/ai](https://npm.io/package/@posthog/ai.md) — 423.3K weekly downloads
- [fakefilter](https://npm.io/package/fakefilter.md) — 63.9K weekly downloads

## Recent versions

- 0.0.5 (latest) — 2014-03-24
- 0.0.4 — 2014-02-14
- 0.0.3 — 2013-10-23
- 0.0.2 — 2013-04-22
- 0.0.1 — 2013-02-24

## README

#Winston NodeMailer [![Build Status](https://travis-ci.org/thomaspeklak/winston-nodemailer.png)](https://travis-ci.org/thomaspeklak/winston-nodemailer) [![Dependency Status](https://gemnasium.com/thomaspeklak/winston-nodemailer.png)](https://gemnasium.com/thomaspeklak/winston-nodemailer)

is a transport for Winston that uses NodeMailer to send mails for log events.
Contrary to other solution Winston NodeMailer requires you to provide a valid
NodeMailer transport. It's in your hand how to configure your desired
transport and to inject it into this module.

##Installation

```bash
npm install winston-nodemailer
```

You can either invoke it via winston.Transports.NodeMailer like this:

```javascript
var winston = require("winston");
require("winston-nodemailer");

winston.add(winston.Transports.NodeMailer, options);
```

or with a local variable that Winston NodeMailer exports:

```javascript
var winston = require("winston");
var winstonNodeMailer = require("winston-nodemailer");

winston.add(winstonNodeMailer, options);
```

##Options

<dl>
  <dt>to<dt>
  <dd>The address(es) you want to send to. [required]</dd>
  <dt>from</dt>
  <dd>The address you want to send from. (default:
  winston@[server-host-name])</dd>
  <dt>subject</dt>
  <dd>Subject for email (default: winston: {{level}} {{msg}})</dd>
  <dt>level</dt>
  <dd>Level of messages that this transport should log.</dd>
  <dt>silent</dt>
  <dd>Boolean flag indicating whether to suppress output.</dd>
  <dt>transport</dt>
  <dd>A NodeMailer transport e.g. smtpTransport [required]</dd>
</dl>

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