使用PHPMailer 5.2.14,电子邮件以text/html发送。即将发布的文本每75个字符就会有相同的符号。PHPMailer插入'='等号每75个字符
我尝试使用EOL workaround,但它并没有删除多余的等号:在收到
$email = new PHPMailer();
$email->From = '[email protected]';
$email->FromName = 'FromUser';
$email->AddAddress('[email protected]');
$email->Subject = 'This is a test';
$email->IsHTML(true);
$email->Body = "<p>This is a test. This is a test. This is a test. This is a test. This is a test. This is a test. This is a test. This is a test. This is a test. This is a test. This is a test. This is a test. This is a test. This is a test. </p>";
// fix EOL here?
$email->LE = PHP_EOL;
$email->Send();
所得来源:在Outlook中查看时
<meta http-equiv="Content-Type" content="text/html; charset=iso-8859-1"><font face="arial"><base href="http://example.com/"><!-- </base> -->=
<p>This is a test. This is a test. This is a test. This i=
s a test. This is a test. This is a test. This is a test.=
This is a test. This is a test. This is a test. Th=
is is a test. This is a test. This is a test. This is a t=
est. This is a test. This is a test. This is a test. =
</p></font>
等号出现。当我发送相同的文本/ HTML到一个Gmail帐户,等号不存在。
需要做什么来消除使用Outlook的收件人的这些流浪等号?
请降低你的文字的大小,我们并不需要这么多的线路要明白,有'='。你用什么代码到文本编码? –
请建议适当子,如果问PHP的问题是不恰当的位置。 –
再次为个人投票关闭这个问题作为题外话,请建议适当子,而不是默默地杀死的问题。我也建议不关闭这个标签'PHPMailer'已被使用''2055''这个回复。 –