我想使用点击电子邮件能够链接,但它不是在邮件通过PHP的邮件功能发送体现,下面是我的代码如何在PHP中使用邮件clickabe链接(HREF链接)
$url = "<html><a href='www.google.com'>Link</a></html>";
$message = "Hi test url ".$url." ";
$$headers = 'MIME-Version: 1.0' . "\r\n";
$headers .= 'Content-type: text/html; charset=iso-8859-1' . "\r\n";
$headers .= "From: Admin <[email protected]> \r\n";
@mail('[email protected]',$subject,$message,$headers);
内容我从电子邮件中收到:
Hi test url <html><a href='www.google.com'>Link</a></html> ##NEW##
删除\ r和检查 – Hkachhia