# nodemailer-cram-md5

> CRAM-MD5 authentication module for Nodemailer

Latest version **1.0.0** (published 2019-01-10) · ISC license · 0 weekly downloads

## Install

```sh
npm install nodemailer-cram-md5
pnpm add nodemailer-cram-md5
yarn add nodemailer-cram-md5
bun add nodemailer-cram-md5
```

## Health

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

Positive: no vulnerabilities.

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

Negative: abandoned; low maintenance score.

## Facts

| | |
|---|---|
| Version | 1.0.0 |
| Published | 2019-01-10 |
| First published | 2019-01-10 |
| Weekly downloads | 0 |
| License | ISC |
| TypeScript types | none |
| Module format | CommonJS |
| Dependencies | 0 |
| Unpacked size | 2.7 KB |
| Known vulnerabilities | 0 |
| Install scripts | no |
| Maintainers | andris |
| Keywords | nodemailer, cram-md5 |

## Links

- npm: https://www.npmjs.com/package/nodemailer-cram-md5
- npm.io page: https://npm.io/package/nodemailer-cram-md5

## Recent versions

- 1.0.0 (latest) — 2019-01-10

## README

# CRAM-MD5 authentication for Nodemailer

Nodemailer 5+ allows to use custom authentication mechanisms. While there is no support in Nodemailer for CRAM-MD5 then it can be provided with an addon.

## Install

Requires Nodejs v8.0.0 or newer

```
npm install nodemailer-cram-md5
```

## Usage

```
const nodemailer = require('nodemailer');
const nodemailerCramMd5 = require('nodemailer-cram-md5');

let transporter = nodemailer.createTransport({
    host: 'smtp.example.com',
    port: 465,
    secure: true,
    auth: {
        type: 'custom',
        method: 'CRAM-MD5',
        user: 'username',
        pass: 'verysecret'
    },
    customAuth: {
        'CRAM-MD5': nodemailerCramMd5
    }
});

transporter.sendMail({
    from: 'sender@example.com',
    to: 'recipient@example.com',
    subject: 'hello world!',
    text: 'hello!'
}, console.log)
```

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