使用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''這個回覆。 –