以下是发送给用户的标头:
$to="$mail";
$sub="Thank you!";
$headers = "MIME-Version: 1.0\r\n";
$headers .= "Content-type:text/html; charset=iso-8859-1\r\n";
$headers .= 'From: example.com <noreply@example.com>' . "\r\n";
$msg="Dear $nme ,<br/> We received a request to recover your password.<br/> Your Password is $pss .";
$response =@mail($to,$sub,$msg,$headers);
如果我通过差异服务器发送它,它会进入收件箱。如何防止电子邮件成为垃圾邮件?