我正在尝试发送电子邮件——它工作正常,但我的“单击此处”链接在收到时没有显示为可点击。
我正在使用的代码如下
$to = $email;
$subject = "Activation";
$message = "We send you an activation email" .'<br>'.' To activate your acount. <a href="activation.php?key='.$key.'">Click Here</a>';
$from = "riaz_qadeer90@yahoo.com";
$headers .= 'Content-type: text/html; charset=iso-8859-1' . "\r\n";
if(mail($to,$subject,$message,$headers))
{
echo "Check your email to activate your acount.";
}
邮件是这样的:
We send you an activation email To activate your acount. "Click Here"
但“点击此处”链接不可点击