我想在用户注册帐户后向他们发送激活链接。当我将此http://www.homeloan.com.sg放入 $message 时,我没有收到电子邮件,但是当我删除 .sg 并将http://www.homeloan.com放入时,它可以工作。没有错误信息,所以我真的不知道我的错误是什么。请帮忙
这是我的代码:
$id = mysql_insert_id();
$to = 'myemail@gmail.com';
$subject = "E-mail Verification";
$message = 'Click on the link to verify your account-> http://www.homeloan.com.sg/rates/activate?id='.$id.'';
$headers = "From: Homeloan Singapore" . "\r\n" . "Reply-To: enquiry@homeloan.com.sg";
mail($to,$subject,$message,$headers, '-f enquiry@homeloan.com.sg');