I am creating the transport object like this.
var transport = nodemailer.createTransport(\"SMTP\", {
host: \"smtp-mail.outlook.com\", // hostname
I was having the same issue until I stumbled upon https://github.com/andris9/Nodemailer/issues/165
Try adding the tls cipher option to use SSLv3.
var transport = nodemailer.createTransport("SMTP", {
host: "smtp-mail.outlook.com", // hostname
secureConnection: false, // TLS requires secureConnection to be false
port: 587, // port for secure SMTP
auth: {
user: "user@outlook.com",
pass: "password"
},
tls: {
ciphers:'SSLv3'
}
});
Alternatively, for hotmail/live/outlook you can simply use
var transport = nodemailer.createTransport("SMTP", {
service: "hotmail",
auth: {
user: "user@outlook.com",
pass: "password"
}
});