问题描述
我尝试使用 SMTP 验证所有邮箱的电子邮件地址,它工作正常,除了 Yahoo 电子邮件 ID。在连接 telnet 时,我收到诸如“556 5.7.5 无效的 RFC 丢失正文”之类的错误。 Output
解决方法
欢迎来到 Stack Overflow,Jayashree。
您收到的错误消息与您的测试电子邮件没有正文部分有关。正文部分在 <CRLF><CRLF>
之后的 2 Content-Transfer-Encoding
之后立即开始。
从Good morning.
开始到P | 999.555.1234
结束
以下是格式正确的 text/plain
电子邮件的完整示例。
To: "Jane Doe" <[email protected]>
From: "John Doe" <[email protected]>
Subject: A text/plain email
MIME-Version: 1.0 (Created with SublimeText 3)
Content-Type: text/plain; charset="utf-8"
Content-Transfer-Encoding: 7bit
Good morning.
This is a message in text/plain format.
It contains text/plain.
It contains no base64 inline images or attachments.
Each line is no more than 76 characters in length.
Please reach out if you have any questions.
Thank you,John Doe
SENIOR DEVELOPER
XYZ Solutions Inc.
P | 999.555.1234