1. nodemailer-ntlm-auth
NTLM authentication module for Nodemailer
nodemailer-ntlm-auth
Package: nodemailer-ntlm-auth
Last modified: Tue, 20 Jun 2023 12:04:24 GMT
Version: 1.0.4
License: ISC
Downloads: 3,397

Install

npm install nodemailer-ntlm-auth
yarn add nodemailer-ntlm-auth

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: '[email protected]',
    to: '[email protected]',
    subject: 'hello world!',
    text: 'hello!'
}, console.log)

Dependencies

RELATED POST

Enhancing Vue.js Development: Harnessing the Potential of Vue-Loader

Enhancing Vue.js Development: Harnessing the Potential of Vue-Loader

Simplify Data Validation in Vue.js: A Step-by-Step Guide to Using Regex

Simplify Data Validation in Vue.js: A Step-by-Step Guide to Using Regex

Troubleshooting Made Easy: Common Issues and Solutions with vue-loader Without vue-cli

Troubleshooting Made Easy: Common Issues and Solutions with vue-loader Without vue-cli

Optimizing Webpack 4 with Vue CLI 3: Disabling the Cache-Loader

Optimizing Webpack 4 with Vue CLI 3: Disabling the Cache-Loader

Step-by-Step Guide: How to Add a Function to Your Vuex Plugin

Step-by-Step Guide: How to Add a Function to Your Vuex Plugin