I am trying to send emails via nodemailer without SMTP transport. So i've done that:
var mail = require("nodemailer").mail;
mail({
from: "Fred Foo ✔ <[email protected]>", // sender address
to: "******@gmail.com", // list of receivers
subject: "Hello ✔", // Subject line
text: "Hello world ✔", // plaintext body
html: "<b>Hello world ✔</b>" // html body
});
But when I run I get that :
> node sendmail.js
Queued message #1 from [email protected], to [email protected]
Retrieved message #1 from the queue, reolving gmail.com
gmail.com resolved to gmail-smtp-in.l.google.com for #1
Connecting to gmail-smtp-in.l.google.com:25 for message #1
Failed processing message #1
Message #1 requeued for 15 minutes
Closing connection to the server
Error: read ECONNRESET
at errnoException (net.js:901:11)
at TCP.onread (net.js:556:19)
I am on windows 7 32.
EDIT This seems to be a windows related bug for it worked on linux
EDIT #2
On the git shell, if I enter telnet smtp.gmail 587
it is blocked here:
220 mx.google.com ESMTP f7...y.24 -gsmtp
telnet
command doesnt work. – Bicuspid