How to use nodemailer

Comprehensive nodemailer code examples:

How to use nodemailer.createTransport:

4
5
6
7
8
9
10
11
12
13
14
15
16
17
const request = require('request');


// const sendmail = require('sendmail')({});


const nodemailer = require('nodemailer');
var mailer = nodemailer.createTransport('direct:?name=hostname');


// var email 	= require("emailjs");


var conf;