Using Nodemailer with Mailgun to send signup confirmation emails. Possibly an authentication or environment issue. New code snippet:
const transporter = require('nodemailer').createTransport({host:'smtp.example.org', port:587, auth:{user:'[email protected]', pass:'secret'}});
transporter.sendMail({from:'[email protected]', to:req.email, subject:'Signup', text:'Welcome!'});