I am creating the transport object like this.
var transport = nodemailer.createTransport(\"SMTP\", { host: \"smtp-mail.outlook.com\", // hostname
If you are using Nodemailer 1.x or greater you can use:
var transporter = nodemailer.createTransport('smtp://username%40outlook.com:password@smtp-mail.outlook.com');