问题
NodeJS with nodemailer mail is not delivered into other domain like gmail, yahoo from my company domain.
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
I am able to deliver mail into same domain network. Other domain not even getting any error and mail is not delivered.
Message sent: 250 2.6.0 <b831fb74-3585-4123-f519-9af2244e2dfe@yyy> [InternalId=49877455208613, Hostname=KL1PR02MB1512.apcprd02.prod.outlook.com] 13148 bytes in 0.592, 21.665 KB/sec Queued mail for delivery
Any idea for configuration?
回答1:
All it is doing is logging in remotely to send the email so if it sends it to same domain emails then it should send to all. I had a similar issue with a user and the email ended up being in the users spam.
Are you able to send emails to other domains when you access the email yourself?
If so..... you should try using a gmail to send it and see if that fixes anything so we can narrow down if the issue is nodemailer or your email.
Best of luck.
来源:https://stackoverflow.com/questions/45256114/nodemailer-mail-is-not-delivered-into-other-domain-like-gmail-yahoo