Skip to content

Instantly share code, notes, and snippets.

@gbielecki gbielecki/mailer.js
Created Jan 26, 2018

What would you like to do?
import nodemailer from "nodemailer";
function setup() {
return nodemailer.createTransport({
host: '',
port: 2525,
auth: {
user: '82c2a63f7c2386',
pass: '8ebe1c2712bb52'
export function sendConfirmationEmail(emailTo, emailSubject, emailText) {
const transport = setup();
const email = {
from: '"mailtrap" <>',
to: emailTo,
subject: emailSubject,
text: emailText
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
You can’t perform that action at this time.