我有一个设置text-transform
为轮换的电子邮件正文。问题是当电子邮件从 PHP 网站发送到收件箱时,文本没有旋转,而是显示纯文本。这是我的电子邮件正文代码:
// Birthday wish email body parameters
$name = "website Support";
$email = "website@website.com";
$rec = website@website.com;
$sub = "Happy Birthday !";
$body = '<div style="width:150px; margin-left:200px; margin-top:280px; color:#FE923C;font-size:20px; transform:rotate(8deg);-ms-transform:rotate(8deg);-moz-transform:rotate(8deg);-webkit-transform:rotate(8deg);-o-transform:rotate(8deg);"><b>First Name</b></div>';
$header='Content-type: text/html; charset=iso-8859-1' . "\r\n";
$header .= "From: $name < ". $email ." >";
mail($rec,$sub,$body,$header);