我正在使用PEAR郵件系統發送經過身份驗證的郵件。我需要發送具有鏈接的HTML郵件。在開始使用PEAR郵件之前它工作正常。現在我無法發送HTML郵件。如何使用PEAR郵件發送HTML郵件
郵件正文如下:出現
$body = <<<EOD
Hiya $username
You might be interested in the current 'haves' and 'wants' on example.com
Latest Haves
<a href="http://www.exmaple.com/product/have/64/Titan+Fast+Track+SunGlass">Titan Fast Track SunGlass</a>
EOD;
標籤,因爲它是在mail.Any知道如何解決這個問題?請幫助..
看看Mail_mime包。它允許你包括一個HTML和純文本版本的電子郵件: http://pear.php.net/manual/en/package.mail.mail-mime.example.php –