Warning: file_get_contents(/data/phpspider/zhask/data//catemap/3/xpath/2.json): failed to open stream: No such file or directory in /data/phpspider/zhask/libs/function.php on line 167

Warning: Invalid argument supplied for foreach() in /data/phpspider/zhask/libs/tag.function.php on line 1116

Notice: Undefined index: in /data/phpspider/zhask/libs/function.php on line 180

Warning: array_chunk() expects parameter 1 to be array, null given in /data/phpspider/zhask/libs/function.php on line 181
Html 发送邮件插入!电子邮件中间990个字符后的符号_Html_Linux_Email_Sendmail - Fatal编程技术网

Html 发送邮件插入!电子邮件中间990个字符后的符号

Html 发送邮件插入!电子邮件中间990个字符后的符号,html,linux,email,sendmail,Html,Linux,Email,Sendmail,我正在使用sendmail-v从sendmail发送邮件rohit@XXXXXXX.com

我正在使用sendmail-v从sendmail发送邮件rohit@XXXXXXX.com
<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>
尊敬的斯库雷先生/女士dhf感谢您选择XXXXXXX。

为了体验新购买的XXXXXXX系统带来的充实体验,请仔细阅读以下指南。

1。域名所有者要远程操作您的系统,请访问以下互联网地址:

您的登录名是:sucre567

您的密码是:sucre567

2。Sucre-Box和Sucre-Box+用户Sucre-Box和Sucre-Box+用户可以通过安装我们最新的适用于Android手机和iPhone的Total Connect Comfort国际智能手机应用程序来体验充实的体验。

2.1如果您想使用该应用程序连接到

创建一个帐户或登录如果您已经有一个帐户或登录,请访问安全部分并按照说明操作,将请求安全登录和密码:

安全登录:sucre567

安全密码:sucre567

和don’;别忘了在智能手机上下载应用程序

2.2如果你没有’;如果您不想使用该应用程序来设置和远程操作您的系统,请访问以下Internet地址:

您的登录名是:sucre567

您的密码是:sucre567

3。Sucre GPRS用户要设置和远程操作您的系统,请访问以下互联网地址:

您的登录名是:sucre567

您的密码是:sucre567

指定消息行的最大长度限制。
Sendmail会打断长线以避免越过限制

修复

您似乎发送了html上下文。您可以使用
tidy
程序重新格式化html。它还应该打断长html行。

如果句子长度超过990个字符,sendmail或mail会插入一个!做记号为避免此问题,请使用\r\n中断句子,然后将其编码为%0D%0A(相当于\r\n)。然后问题就解决了。此外,我们可以将/etc/mail/sendmail.cf L=990修改为更大的值,这也将解决问题。 来自sendmail.cf的行 P=[IPC],F=mDFMuX,S=EnvFromSMTP/HdrFromSMTP,R=EnvToSMTP,E=\R\n,L=990,T=DNS/RFC822/SMTP,A=TCP$h