Skip to content

Instantly share code, notes, and snippets.

What would you like to do?
import * as nodemailer from 'nodemailer';
let transporter = nodemailer.createTransport({
host: '',
port: 465,
secure: true,
auth: {
user: '',
pass: '',
logger: false,
debug: false
}, {
from: `Someone <>`
let info = await transporter.sendMail({
// Comma separated list of recipients
to: `someone <>`,
// Subject of the message
subject: '',
// HTML body
html: 'body here'
// only needed when using pooled connections
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment