PHP电子邮件转到垃圾邮件

时间:2013-09-16 20:20:06

标签: php email spam

我用PHP发送电子邮件,然后发送垃圾邮件。

以下是代码:

$headers = 'From: noreply@nitrobit.net' . "\r\n" .
           'MIME-Version: 1.0' . "\r\n" .
           'Content-type: text/html; charset=utf-8' . "\r\n" .
           'X-Mailer: PHP/' . phpversion();
mail($to, $subject, $message, $headers);

这是标题:

Delivered-To: superdown.me@gmail.com
Received: by 10.114.185.6 with SMTP id ey6csp45195ldc;
        Sun, 15 Sep 2013 04:01:53 -0700 (PDT)
X-Received: by 10.180.126.3 with SMTP id mu3mr9155535wib.27.1379242912725;
        Sun, 15 Sep 2013 04:01:52 -0700 (PDT)
Return-Path: <nitrobit@nitrobit.net>
Received: from ns3365488.ovh.net ([2001:41d0:a:2c2e::1])
        by mx.google.com with ESMTPS id n7si9138570wja.151.1969.12.31.16.00.00
        (version=TLSv1 cipher=RC4-SHA bits=128/128);
        Sun, 15 Sep 2013 04:01:52 -0700 (PDT)
Received-SPF: softfail (google.com: domain of transitioning nitrobit@nitrobit.net does not designate 2001:41d0:a:2c2e::1 as permitted sender) client-ip=2001:41d0:a:2c2e::1;
Authentication-Results: mx.google.com;
       spf=softfail (google.com: domain of transitioning nitrobit@nitrobit.net does not designate 2001:41d0:a:2c2e::1 as permitted sender) smtp.mail=nitrobit@nitrobit.net
Received: from apache by ns3365488.ovh.net with local (Exim 4.76)
    (envelope-from <nitrobit@nitrobit.net>)
    id 1VLA5V-0002Ck-Po
    for superdown.me@gmail.com; Sun, 15 Sep 2013 13:01:57 +0200
To: superdown.me@gmail.com
Subject: NitroBit - סיסמה עבור קנייתך
X-PHP-Originating-Script: 0:ipn.php
From: NitroBit noreply@nitrobit.net
Reply-To: superdown.me@gmail.com
X-Mailer: PHP/5.3.27MIME-Version: 1.0
Content-type: text/html; charset=utf-8
Message-Id: <E1VLA5V-0002Ck-Po@ns3365488.ovh.net>
Date: Sun, 15 Sep 2013 13:01:57 +0200

我做错了什么?

谢谢,对不起我的英文

1 个答案:

答案 0 :(得分:2)

看起来有点像这可能是问题:

softfail (google.com: domain of transitioning nitrobit@nitrobit.net does not designate 2001:41d0:a:2c2e::1 as permitted sender) client-ip=2001:41d0:a:2c2e::1;

您可能希望了解如何将您的主机(2001:41d0:a:2c2e::1)指定为域@nitrobit.net上的允许发件人