0
我有一個奇怪的問題。我從文本文件中讀取文本,使用帶有相關值的str_replace替換所有值,然後通過PHPMailer以純文本形式將電子郵件發送給收件人。使用PHPMailer發送純文本電子郵件時有趣的字符
現在我的問題是,只要收件人得到我的郵件,他看到的字符,如「0D」
1. DOMAIN NAME and ACTION=0D
=0D
Give the name of the subdomain. This is the name that will be=0D
used in tables and lists associating the domain with the name=0D
server and IP addresses. The .co.za domain names that are=0D
delegated by UniForum S.A. are at the third level, for example:=0D
thisnetwork.co.za. Domain names in the CO.ZA zone are limited=0D
to 30 characters.=0D
The Action field specifies whether this is a 'N'ew application, an=0D
'U'pdate or a 'D'eletion.=0D
這是我的PHPMailer的代碼,我嘗試並設置編碼以及和這不工作,要麼
$mailer->CharSet = 'UTF-8';
Thx爲引導8bit沒有工作,但7bit沒有竅門 – Roland
您是否嘗試過使用7bit編碼發送非ASCII字符?我認爲這可能會打破。 – Martijn
這個我刪除了$ mailer-> CharSet ='UTF-8';並將編碼更改爲7位,然後全部工作,或者我錯過了一些東西。還測試了文本,這是ASCII – Roland