使用说明文档中的第一个例子来发送qq邮件,邮件成功发送,但终端提示发送失败 #480
-
2025/08/01 16:21:30 DEBUG: C --> S: MAIL FROM:[email protected] BODY=8BITMIME SMTPUTF8 |
Beta Was this translation helpful? Give feedback.
Replies: 1 comment 1 reply
-
Hi @liuzhenqiuyyds, the issue you are seeing is not a go-mail issue but is a common issue with the qq.com mail provider (and some other Chinese providers that use the same mail server software). Their mailserver does not conform with the SMTP RFC by sending binary junk before issuing the response to the "QUIT" command, which confuses go-mail which expects the server to respond with the RFC-compliant response. This has been discussed already and a workaround has been provided here: #463 (comment) There is also an open issue (#464) in which we will provide a method to catch these errors much better. It will likely be part of the next go-mail release. |
Beta Was this translation helpful? Give feedback.
Hi @liuzhenqiuyyds,
the issue you are seeing is not a go-mail issue but is a common issue with the qq.com mail provider (and some other Chinese providers that use the same mail server software). Their mailserver does not conform with the SMTP RFC by sending binary junk before issuing the response to the "QUIT" command, which confuses go-mail which expects the server to respond with the RFC-compliant response.
This has been discussed already and a workaround has been provided here: #463 (comment)
There is also an open issue (#464) in which we will provide a method to catch these errors much better. It will likely be part of the next go-mail release.