我正在嘗試發送電子郵件 - 該電子郵件正常工作,但收到後,我的「點擊此處」鏈接不會顯示爲可點擊。生成的電子郵件中的鏈接未顯示爲可點擊
我使用的代碼如下
$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 = "[email protected]";
$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"
但「點擊這裏」鏈接不是可點擊的