Nodemailer错误读取为ECONNRESET Outlook365

时间:2019-08-28 17:07:52

标签: node.js vps nodemailer

发送邮件时,nodemailer关闭连接并返回错误。我的脚本在桌面上运行良好,但是在vps上运行时,出现读取错误。

这是日志:

[2019-08-26 20:26:47] DEBUG Creating transport: nodemailer (6.3.0; +https://nodemailer.com/; SMTP/6.3.0[client:6.3.0])
[2019-08-26 20:26:47] DEBUG Sending mail using SMTP/6.3.0[client:6.3.0]
[2019-08-26 20:26:47] DEBUG [bVgvjxFT3Yo] Resolved smtp.office365.com as 52.96.31.178 [cache miss]
[2019-08-26 20:26:47] INFO  [bVgvjxFT3Yo] Connection established to 52.96.31.178:587
[2019-08-26 20:26:47] DEBUG [bVgvjxFT3Yo] S: 220 BYAPR08CA0029.outlook.office365.com Microsoft ESMTP MAIL Service ready at Mon, 26 Aug 2019 20:26:33 +0000
[2019-08-26 20:26:47] DEBUG [bVgvjxFT3Yo] C: EHLO [127.0.0.1]
[2019-08-26 20:26:47] DEBUG [bVgvjxFT3Yo] S: 250-BYAPR08CA0029.outlook.office365.com Hello [132.148.19.236]
[2019-08-26 20:26:47] DEBUG [bVgvjxFT3Yo] S: 250-SIZE 157286400
[2019-08-26 20:26:47] DEBUG [bVgvjxFT3Yo] S: 250-PIPELINING
[2019-08-26 20:26:47] DEBUG [bVgvjxFT3Yo] S: 250-DSN
[2019-08-26 20:26:47] DEBUG [bVgvjxFT3Yo] S: 250-ENHANCEDSTATUSCODES
[2019-08-26 20:26:47] DEBUG [bVgvjxFT3Yo] S: 250-STARTTLS
[2019-08-26 20:26:47] DEBUG [bVgvjxFT3Yo] S: 250-8BITMIME
[2019-08-26 20:26:47] DEBUG [bVgvjxFT3Yo] S: 250-BINARYMIME
[2019-08-26 20:26:47] DEBUG [bVgvjxFT3Yo] S: 250-CHUNKING
[2019-08-26 20:26:47] DEBUG [bVgvjxFT3Yo] S: 250 SMTPUTF8
[2019-08-26 20:26:47] DEBUG [bVgvjxFT3Yo] C: STARTTLS
[2019-08-26 20:26:47] DEBUG [bVgvjxFT3Yo] S: 220 2.0.0 SMTP server ready
[2019-08-26 20:26:57] ERROR [bVgvjxFT3Yo] read ECONNRESET
[2019-08-26 20:26:57] DEBUG [bVgvjxFT3Yo] Closing connection to the server using "end"
[2019-08-26 20:26:57] INFO  [bVgvjxFT3Yo] Connection closed
[2019-08-26 20:26:57] INFO  [bVgvjxFT3Yo] Connection closed

0 个答案:

没有答案