SMTP トランスポートなしで nodemailer 経由で電子メールを送信しようとしています。だから私はそれをやった:
var mail = require("nodemailer").mail;
mail({
from: "Fred Foo ✔ <foo@blurdybloop.com>", // sender address
to: "******@gmail.com", // list of receivers
subject: "Hello ✔", // Subject line
text: "Hello world ✔", // plaintext body
html: "<b>Hello world ✔</b>" // html body
});
しかし、実行すると次のようになります。
> node sendmail.js
Queued message #1 from foo@blurdybloop.com, to vinz243@gmail.com
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)
私はWindows 7 32を使用しています。
編集 これは、Linuxで機能したため、Windows関連のバグのようです
編集#2
git シェルで入力telnet smtp.gmail 587
すると、ここでブロックされます。
220 mx.google.com ESMTP f7...y.24 -gsmtp