【发布时间】:2014-08-18 22:07:17
【问题描述】:
我只是想知道我们能否在 PHP 邮件中包含一个用户定义的函数
$to = "example@example.com";
$message = '<html>';
$message .='</html>';
$from = "webmaster@example.com";
$headers = 'MIME-Version: 1.0' . "\r\n";
$headers .= 'Content-Type: text/html; charset=ISO-8859-1' . "\r\n";
$headers .= "From:" . $from;
我尝试了上面的代码,但我的邮件中只收到了消息“