0
nodemailerメールを使用したNodeJSは、自社ドメインのgmail、yahooなどの他のドメインには配信されません。nodemailerメールはgmail、yahooなどの他のドメインには配信されません
var transporter = nodemailer.createTransport({
host: 'smtp.office365.com',
port: 587,
requireTLS: true,
tls: {
ciphers: 'SSLv3'
},
secureConnection: false, // use SSL
auth: {
user: "XXX",// Your email id
pass: "XXX"// Your password
},
debug: true
});
NodeJS V7.2.0 nodemailerのv2.6.4
私は同じドメインネットワークにメールを配信することができています。他のドメインでもエラーが発生せず、メールは配信されません。
Message sent: 250 2.6.0 <[email protected]> [InternalId=49877455208613, Hostname=KL1PR02MB1512.apcprd02.prod.outlook.com] 13148 bytes in 0.592, 21.665 KB/sec Queued mail for delivery
どのような設定が必要ですか?
私はすでにGmailで試しています。私は '' host ':' smtp.gmail.com '、 'ポート ':' 465 '、 ' service ':' Gmail''を使って送信できます。しかし、私のプライベートドメインはsmtp.office365.comではありません送信することができます。 – Prayag
pythonスクリプト同様の設定私は電子メールを送ることができます: 'server = SMTP( 'smtp.office365.com'、587) server.starttls() server.ehlo() server.login( 'eidevopsassessment @ xxx .com '、' yyy ') テキスト= msg.as_string() server.sendmail('[email protected]'、 '[email protected]'、テキスト) server.quit() ' – Prayag