I have disabled my firewall but I still get the same error, does someone have a solution
[2022-01-31 16:37:35] DEBUG Creating transport: nodemailer (6.7.2; +https://nodemailer.com/; SMTP/6.7.2[client:6.7.2])
[2022-01-31 16:37:35] DEBUG Sending mail using SMTP/6.7.2[client:6.7.2]
[2022-01-31 16:37:35] DEBUG [yeVtB39osUE] Resolved smtp.live.com as 204.79.197.212 [cache miss]
[2022-01-31 16:37:49] ERROR [yeVtB39osUE] connect ETIMEDOUT 204.79.197.212:587
[2022-01-31 16:37:49] DEBUG [yeVtB39osUE] Closing connection to the server using "destroy"
[2022-01-31 16:37:49] ERROR Send Error: connect ETIMEDOUT 204.79.197.212:587
Error while sending mail: Error: connect ETIMEDOUT 204.79.197.212:587
Edit (april 2022) : this issue has been fixed in nodemailer
v6.7.3 !
I’ve the exact same error !
I don’t know why, but using smtp-mail.outlook.com
in place of smpt.live.com
(which is used by default by nodemailer when you use the outlook/hotmail predefined service) works well and fix this error !
const transporter = nodemailer.createTransport({
host: 'smtp-mail.outlook.com',
port: 587,
auth: {
user: 'your-email-address',
pass: 'your-password'
}
})