html - Sendmail插入!电子邮件中间 990 个字符后的符号

标签 html linux email sendmail

我使用 sendmail -v [email protected] 从 sendmail 发送邮件< t.txt 但是当我使用 Outlook 或 Gmail 收到邮件时,我会得到额外的奖励!正好 990 个字符之后的字符 https://infoeu.!mytotalconnectcomfort.com 。我不明白为什么sendmail会插入额外的字符! ?

<html><head><meta http-equiv=Content-Type content=text/html; charset=utf-8/></head><body><p>Dear Mr/Ms scure dhf</p><p>Thank you for choosing XXXXXXX.</p><p> In order to live a fulfilling experience with your newly purchased XXXXXXX system, please read carefully the following guidance.</p><p> <strong>1. Domonial owners</strong></p><p>To remotely operate your system, please access the following Internet address: <u><a href=https://tc20e.total-connect.eu/>https://tc20e.total-connect.eu/</a></u></p><p> Your login is: sucre567</p><p> Your password is: sucre567</p><p><strong>2. Sucre Box and Sucre Box + owners</strong></p><p> Sucre Box and Sucre Box + owners can live a fulfilling experience by installing our latest Total Connect Comfort International smartphone application available for both Android phones and IPhones.</p><p> <strong><em>2.1  If you want to use the application</em></strong></p><p> Connect to <u><a href=https://infoeu.mytotalconnectcomfort.com/>https://infoeu.!
     mytotalconnectcomfort.com</a></u></p><p>Create an account or login if you already have one</p><p> Access the security section and follow the instructions</p><p>The security login and password will be requested:</p><p>Security login: sucre567</p><p>Security password: sucre567</p><p> And don&#146;t forget to download the app on your smartphone!</p><p><strong><em>2.2  If you don&#146;t want to use the application</em></strong></p><p>To set up and remotely operate your system, please access the following Internet address: <u><a href=https://tc20e.total-connect.eu/>https://tc20e.total-connect.eu/</a></u></p><p>Your login is: sucre567</p><p>Your password is: sucre567</p><p><strong>3.  Sucre GPRS owners</strong></p><p>To set up and remotely operate your system, please access the following Internet address: <u><a href=https://tc20e.total-connect.eu/>https://tc20e.total-connect.eu/</a></u></p><p>Your login is: sucre567</p><p> Your password is: sucre567</p></body></html>

最佳答案

SMTP 协议(protocol)行长度限制

SMTP RFC5321指定消息行最大长度的限制。
Sendmail 会中断长行以避免超出限制。

https://www.rfc-editor.org/rfc/rfc5321#section-4.5.3.1.6

可供选择的修复:
1.你似乎发送了 html 上下文。您可以使用tidy程序重新格式化您的html。它还应该打破长 html 行。
2. 您可以使用 quoted-printable 编码发送。它对非 ASCII 字符进行编码并处理行长度。

关于html - Sendmail插入!电子邮件中间 990 个字符后的符号,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/34412258/

相关文章:

javascript - 在选择中将第一个选项设为灰色,将其他选项设为黑色

Html 5 WebApp 可扩展性元标记

CSS 问题,创建标签

python - 如何在python和 Node 进程之间共享mmap

html - 浏览器 mailto 问题?

html - 相对内部的绝对元素(设置高度的百分比)在父级外部重叠

php - LAMP 当我上传 php 代码时,但浏览器不会刷新,直到我在 Linux 中重新启动 apache2 服务

linux - 通过 yum 安装失败,文件较大且连接速度较慢

java - 将电子邮件发送到以下服务器失败(apache commons - Java)

django - 禁用 gmail 中不太安全的应用程序设置后立即发送邮件进行测试