这是我用来发送电子邮件的 PHP 代码。出于某种原因,如果我包含以下行,它将进入垃圾邮件:$message .= WEBSITE_URL . '/violation.php?email=' . urlencode($fm_email) . "&key=$activation";
但如果我删除它,它将进入我的收件箱。
谁能帮我解决这个问题,在我的电子邮件中允许这个网址?
$headers = 'MIME-Version: 1.0' . "\r\n";
$headers .= 'Content-type: text/html; charset=iso-8859-1' . "\r\n";
$headers .= 'From: My Name <noreply@myname.com>' . "\r\n";
$subject = 'Subject is here';
$message = "Here is the message";
$message .= WEBSITE_URL . '/violation.php?email=' . urlencode($fm_email) . "&key=$activation";
mail($fm_email, $subject, $message, $headers);