如何防止服务器将电子邮件脚本视为垃圾邮件

时间:2014-04-11 14:17:31

标签: php email

我刚刚编写了一个简单的电子邮件脚本。但就在我收到一封电子邮件后一天,我的服务器管理员说你已经上传了一个发送电子邮件的脚本,所以要删除它,因为它会发送垃圾邮件......!所以我需要建议我应该做什么或为什么它被认为是垃圾邮件脚本..我不是通过这个脚本做任何类型的垃圾邮件..?

请发送电子邮件:

Note: If this is the first time you received this mail, it contains the history for the entire month so far.

Below are the recently upload scripts that contain code to send email. You may wish to inspect them to ensure they are not sending out SPAM.

/home/webngrap/public_html/mail/mail.php:22: 
/home/webngrap/public_html/mail/mail.php:23: $sendmail = mail($to,$subject,$message,$headers);
/home/webngrap/public_html/mail/mail.php:24: 
 ---
Thanks

此处还有电子邮件脚本:

$to = "nicefellow1234@gmail.com";
$header = "FROM: Jack Sparrow <some@site.com>\r\n";
$subject = "Test";
$message = "It's Just A Test";

$sendmail = mail($to,$subject,$message,$header);

if ($sendmail) {
echo "Email Send Successfully";
} else {
echo "Email Sending Failed";
}

等待你的回复..!

0 个答案:

没有答案