我的电子邮件有以下 html 代码。
$headers = "From: jmedalla20@gmail.com \r\n" .
"MIME-Version: 1.0\r\n" .
"Content-Type: text/html; charset=ISO-8859-1 \r\n";
$message = <<<EOD
<!DOCTYPE html>
<head>
<meta http-equiv=Content-Type content=text/html; charset=utf-8 />
<link rel=stylesheet type=text/css href=logo.jpg/>
</head>
<body>
<img src=../../img/logo.jpg style=left: 0;position: absolute; width: 75px;/>
<body style=padding: 0 0 0 100px;position: relative;>
{date(F d, Y )} <br><br>
<b> {$row_Recordset1['First Name']} {$row_Recordset1['Middle Initial']} {$row_Recordset1['Last Name']}</b><br>
{$row_Recordset1['Position']}<br>{$row_Recordset1['Company Name']}<br>{$row_Recordset1['Corporate Address']}<br><br>
<p>Dear {$row_Recordset1['Last Name']}:</p>
// the rest of the letters
</body>
</html>
EOD;
我已经进行了几次测试运行,所有显示的是
{date(F d, Y )}
Dear :
我认为这些代码没有被识别。有什么建议么?
编辑: html 正在工作。我猜这只是 php 代码不起作用