# screwdriver-notifications-email

> Sends email notifications on certain build events.

Latest version **5.0.5** (published 2026-11-21) · BSD-3-Clause license · 0 weekly downloads

## Install

```sh
npm install screwdriver-notifications-email
pnpm add screwdriver-notifications-email
yarn add screwdriver-notifications-email
bun add screwdriver-notifications-email
```

## Health

**Score 55/100 (C)** — status: active.

Positive: no vulnerabilities; recently updated; high maintenance score.

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

## Facts

| | |
|---|---|
| Version | 5.0.5 |
| Published | 2026-11-21 |
| First published | 2017-02-24 |
| Weekly downloads | 0 |
| License | BSD-3-Clause |
| TypeScript types | none |
| Module format | CommonJS |
| Dependencies | 7 |
| Unpacked size | 25.6 KB |
| Known vulnerabilities | 0 |
| Install scripts | no |
| GitHub stars | 2 |
| Author | Jerry Zhang |
| Maintainers | sd-buildbot, screwdriver, screwdriver-all, jerryzhang222 |
| Keywords | screwdriver, yahoo |

## Links

- npm: https://www.npmjs.com/package/screwdriver-notifications-email
- Repository: https://github.com/screwdriver-cd/notifications-email
- Issues: https://github.com/screwdriver-cd/screwdriver/issues
- npm.io page: https://npm.io/package/screwdriver-notifications-email

## Dependencies (7)

- [joi](https://npm.io/package/joi.md) ^17.13.3
- [tinytim](https://npm.io/package/tinytim.md) ^0.1.1
- [@hapi/hoek](https://npm.io/package/@hapi/hoek.md) ^11.0.7
- [nodemailer](https://npm.io/package/nodemailer.md) ^10.6.0
- [screwdriver-logger](https://npm.io/package/screwdriver-logger.md) ^3.0.0
- [screwdriver-data-schema](https://npm.io/package/screwdriver-data-schema.md) ^26.0.0
- [screwdriver-notifications-base](https://npm.io/package/screwdriver-notifications-base.md) ^5.0.0

## Recent versions

- 5.0.5 (latest) — 2026-11-21
- 5.0.4 — 2026-06-26
- 5.0.3 — 2026-02-06
- 5.0.2 — 2025-10-08
- 5.0.1 — 2025-10-01
- 5.0.0 — 2025-02-20
- 4.0.0 — 2024-09-04
- 3.0.2 — 2024-03-12
- 3.0.1 — 2023-08-25
- 3.0.0 — 2022-11-18
- 2.3.1 — 2022-08-24
- 2.3.0 — 2022-08-18
- 2.2.0 — 2021-07-09
- 2.1.5 — 2021-01-26
- 2.1.4 — 2020-12-07
- … 25 more at https://npm.io/package/screwdriver-notifications-email/versions

## README

# Notifications (Email)
[![Version][npm-image]][npm-url] ![Downloads][downloads-image] [![Build Status][status-image]][status-url] [![Open Issues][issues-image]][issues-url] ![License][license-image]

> Sends email notifications on certain build events.

## Usage

```bash
npm install screwdriver-notifications-email
```
### Initialization

The class has a variety of knobs to tweak when interacting with Email Notifications.

| Parameter        | Type  |  Description |
| :-------------   | :---- | :-------------|
| config        | Object | Configuration Object |
| config.host | String | SMTP Host URL |
| config.port | Number | Port to use when connecting to SMTP |
| config.from | String | Sender email address |
| config.username | String | Optional username for SMTP |
| config.password | String | Optional password for SMTP |

The interface looks for email-specific build data:

| Parameter        | Type  |  Description |
| :-------------   | :---- | :-------------|
| buildData        | Object | Build Data Object |
| buildData.status | String | Build status update for notification |
| buildData.settings | Object | Pluggable settings for each build |
| buildData.settings.email | Object | Email-specific settings |
| buildData.pipelineName | String | Name of your pipeline |
| buildData.jobName | String | Job this email is being sent for |
| buildData.buildId | Number | Build number this email is being sent for |
| buildData.buildLink | String | Link to build |

buildData.settings.email can take either:

#### Simple Configuration

```js
buildData.settings.email = 'notify.me@email.com'
```

#### Advanced Configuration

```js
buildData.settings.email = {
    addresses: ['notify.me@email.com', 'notify.you@email.com'], // Multiple recipient addresses
    statuses: ['SUCCESS', 'FAILURE'] // Build statuses to notify addresses about
}
```

## Testing

```bash
npm test
```

## License

Code licensed under the BSD 3-Clause license. See LICENSE file for terms.

[npm-image]: https://img.shields.io/npm/v/screwdriver-notifications-email.svg
[npm-url]: https://npmjs.org/package/screwdriver-notifications-email
[downloads-image]: https://img.shields.io/npm/dt/screwdriver-notifications-email.svg
[license-image]: https://img.shields.io/npm/l/screwdriver-notifications-email.svg
[issues-image]: https://img.shields.io/github/issues/screwdriver-cd/notifications-email.svg
[issues-url]: https://github.com/screwdriver-cd/notifications-email/issues
[status-image]: https://cd.screwdriver.cd/pipelines/787/badge
[status-url]: https://cd.screwdriver.cd/pipelines/787

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