0

除了 hotmail 之外,所有帐户的邮件都很好。在 hotmail 中,邮件正文变得空白。但是在查看查看源时,邮件正文正在显示。请帮助我们是否需要更改 hotmail 的任何设置

function Trigger_WelcomeEmail(&$tNG) {

global $DID;

$emailObj = new tNG_Email($tNG);
$emailObj->setFrom("test <test@test.com>");
$emailObj->setTo("{email}");
$emailObj->setCC("");
$emailObj->setBCC("test@test.com");
$emailObj->setSubject("Smile! You Were Successfully Registered for test.com");




$emailObj->setContentFile("welcomeUS.html");


$emailObj->setEncoding("ISO-8859-1");
$emailObj->setFormat("HTML/Text");
$emailObj->setImportance("Normal");
return $emailObj->Execute();
}   
4

2 回答 2

1

通常将标头设置为 Content-type:text/html

也许是因为您的代码读错了您的代码;$emailObj->setFormat("HTML/文本"); 有那个倒退。可能只是在黑暗中拍摄,但值得一试!

于 2013-04-25T06:45:09.307 回答
0

Check to make sure you aren't sending two newline characters in a row in the welcomeUS.html file. This will close the body of the email and the remainder of the text might be ignored.

Some email service providers might ignore that issue automatically when they see more content being delivered after the newlines, but hotmail may not.

于 2013-04-25T06:46:40.310 回答