Im using Nodemailer module to send smtp emails from my hotmail/outlook account. I have hosted my app at amazon ec2. My code to send the email:
var smtpTransport = nodemailer.createTransport("SMTP",{
service: 'Hotmail',
auth: {
user: 'xxxxxx@outlook.com',
pass: 'xxxxxx?'
}
});
When i try to send an email, the server responds with an error name "Error", message "Connection closed unexpectedly", stack "Error: Connection closed unexpectedly
at SMTPClient._onClose (C:\Apps\myapp\node_modules\nodemailer\node_m
odules\simplesmtp\lib\client.js:388:30)
at Socket.EventEmitter.emit (events.js:117:20)
at TCP.close (net.js:465:12)enter code here
{ [DeliveryError: Message delivery failed: 550 5.3.4 Requested action not taken;
We noticed some unusual activity in your Hotmail account. To help protect you,
we've temporarily blocked your account.]"
Someone knows how to solve this problem?
Thanks!