为什么我的专用服务器发送的电子邮件在Gmail上标记为垃圾邮件?

时间:2016-04-14 20:20:04

标签: php email gmail spam

我在专用服务器上托管了一个网站,该网站向注册的用户发送自动电子邮件。这些电子邮件直到很久以前一直有效。

今天我意识到这些电子邮件会直接进入带有Gmail的垃圾邮件文件夹。几个月前,but i fixed it as explained here已经发生了类似的问题。但现在它不再起作用了。打开其中一封电子邮件,我在其上方看到此消息:“标记为垃圾邮件,因为它与我们的垃圾邮件过滤器检测到的邮件类似。”

以下是其中一封电子邮件的内容:

Delivered-To: fontanavideostudios@gmail.com
Received: by 10.64.176.209 with SMTP id ck17csp877005iec;
        Thu, 14 Apr 2016 13:09:33 -0700 (PDT)
X-Received: by 10.194.95.167 with SMTP id dl7mr18047573wjb.163.1460664573057;
        Thu, 14 Apr 2016 13:09:33 -0700 (PDT)
Return-Path: <noreply@racebooking.net>
Received: from ns362512.ip-91-121-174.eu ([2001:41d0:1:ef28::1])
        by mx.google.com with ESMTP id 193si8350387wmo.16.2016.04.14.13.09.32
        for <fontanavideostudios@gmail.com>;
        Thu, 14 Apr 2016 13:09:32 -0700 (PDT)
Received-SPF: pass (google.com: domain of noreply@racebooking.net designates 2001:41d0:1:ef28::1 as permitted sender) client-ip=2001:41d0:1:ef28::1;
Authentication-Results: mx.google.com;
       spf=pass (google.com: domain of noreply@racebooking.net designates 2001:41d0:1:ef28::1 as permitted sender) smtp.mailfrom=noreply@racebooking.net
Received: by ns362512.ip-91-121-174.eu (Postfix, from userid 504)
    id 1925A16071; Thu, 14 Apr 2016 21:54:41 +0200 (CEST)
To: fontanavideostudios@gmail.com
Subject: =?utf-8?Q?Modifica_la_Password?=
X-PHP-Originating-Script: 504:Email.php
From: "Racebooking.net" <noreply@racebooking.net>
Reply-To: "noreply@racebooking.net" <noreply@racebooking.net>
X-Sender: noreply@racebooking.net
X-Mailer: CodeIgniter
X-Priority: 3 (Normal)
Message-ID: <570ff5810b30c@racebooking.net>
Mime-Version: 1.0
Content-Type: multipart/alternative; boundary="B_ALT_570ff5810b35b"
Date: Thu, 14 Apr 2016 21:54:41 +0200 (CEST)

This is a multi-part message in MIME format.
Your email application may not support this format.

--B_ALT_570ff5810b35b
Content-Type: text/plain; charset=utf-8
Content-Transfer-Encoding: 8bit

Abbiamo ricevuto una richiesta di modifica della password.Per procedere con
la modifica, cliccare sul seguente link. Qualora non funzionasse, copia e
incolla tutto cio che vedi tra le due file di asterischi (asterischi
esclusi) e incollalo nella barra del tuo
browser:*********************************************
https://www.racebooking.net/it/moto/change_password?email=fontanavideostudios%40gmail.com&code=ff694917344f6b2c1af95ad397446942*********************************************Il
link non è valido per sempre, ma scadrà in data Thursday April 2016 alle
ore 22:54:41.Qualora, invece, non abbia richiesto lei la modifica della
password, ignori questo messaggio.


--B_ALT_570ff5810b35b
Content-Type: text/html; charset=utf-8
Content-Transfer-Encoding: quoted-printable

Abbiamo ricevuto una richiesta di modifica della password.<br>Per procedere=
 con la modifica, cliccare sul seguente link. Qualora non funzionasse, copi=
a e incolla tutto cio che vedi tra le due file di asterischi (asterischi es=
clusi) e incollalo nella barra del tuo browser:<br>************************=
*********************<br> <a href=3D'https://www.racebooking.net/it/moto/ch=
ange_password?email=3Dfontanavideostudios%40gmail.com&code=3Dff694917344f6b=
2c1af95ad397446942'>https://www.racebooking.net/it/moto/change_password?ema=
il=3Dfontanavideostudios%40gmail.com&code=3Dff694917344f6b2c1af95ad39744694=
2</a><br>*********************************************<br>Il link non è va=
lido per sempre, ma scadrà in data Thursday April 2016 alle ore 22:54:41.<=
br><br>Qualora, invece, non abbia richiesto lei la modifica della password,=
 ignori questo messaggio.

--B_ALT_570ff5810b35b--

它出了什么问题?

在其他提供商处,这些电子邮件未标记为垃圾邮件,似乎仅在Gmail上发生。

1 个答案:

答案 0 :(得分:-1)

创建一行代码,将标头设置为发件人已发送邮件的名称。这就是我必须要做的事情,现在我出现在Gmail的主要标签中。

$toaddress='merrimack.scioly@gmail.com';
    $subject=  $fromsub . ' ' . 'sent you a message';
    $headers = 'From: ' . $fromsub . "\r\n" .
               'Reply-To: ' . $from . "\r\n";
    $mailcontent= 'Team Member: ' . $fromsub . "\r\n"
                  .'Email: ' . $from . "\r\n"
                  .'Message: '.$message. "\r\n";
    $fromaddress= 'From: ' . $from;

    mail($toaddress, $subject, $message);