Integrating Mailgun via Nodemailer

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!'});

hey, check your smtp setting and envo vars. i had an issue with a mispelled var that blocked auth. maybe this helps fix it.