# nodemailer-ntlm-auth

> NTLM authentication module for Nodemailer

Latest version **1.0.4** (published 2023-06-20) · ISC license · 0 weekly downloads

## Install

```sh
npm install nodemailer-ntlm-auth
pnpm add nodemailer-ntlm-auth
yarn add nodemailer-ntlm-auth
bun add nodemailer-ntlm-auth
```

## 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.4 |
| Published | 2023-06-20 |
| First published | 2019-01-09 |
| Weekly downloads | 0 |
| License | ISC |
| TypeScript types | none |
| Module format | CommonJS |
| Dependencies | 1 |
| Unpacked size | 3.5 KB |
| Known vulnerabilities | 0 |
| Install scripts | no |
| Maintainers | andris |

## Links

- npm: https://www.npmjs.com/package/nodemailer-ntlm-auth
- npm.io page: https://npm.io/package/nodemailer-ntlm-auth

## Dependencies (1)

- [httpntlm](https://npm.io/package/httpntlm.md) 1.8.12

## Recent versions

- 1.0.4 (latest) — 2023-06-20
- 1.0.3 — 2022-07-21
- 1.0.1 — 2019-01-09
- 1.0.0 — 2019-01-09

## README

# NTLM authentication for Nodemailer

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

> **NB!** Experimental! Might not work as advertised due to the lack of not being actually able to use any real NTLM capable server

## Install

Requires Nodejs v8.0.0 or newer

```
npm install nodemailer-ntlm-auth
```

## Usage

```
const nodemailer = require('nodemailer');
const nodemailerNTLMAuth = require('nodemailer-ntlm-auth');

let transporter = nodemailer.createTransport({
    host: 'smtp.example.com',
    port: 465,
    secure: true,
    auth: {
        type: 'custom',
        method: 'NTLM',
        user: 'username',
        pass: 'verysecret',
        options: {
            domain: 'my-domain',
            workstation: 'my-desktop'
        }
    },
    customAuth: {
        NTLM: nodemailerNTLMAuth
    }
});

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

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