2016-04-14 35 views
-1

我有一个网站托管在专用服务器上,向注册的用户发送自动电子邮件。这种电子邮件一直工作到很久以前。为什么我的专用服务器发送的电子邮件在Gmail上标记为垃圾邮件?

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

下面是这些电子邮件的内容之一:

Delivered-To: [email protected] 
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: <[email protected]> 
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 <[email protected]>; 
     Thu, 14 Apr 2016 13:09:32 -0700 (PDT) 
Received-SPF: pass (google.com: domain of [email protected] 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 [email protected] designates 2001:41d0:1:ef28::1 as permitted sender) [email protected] 
Received: by ns362512.ip-91-121-174.eu (Postfix, from userid 504) 
    id 1925A16071; Thu, 14 Apr 2016 21:54:41 +0200 (CEST) 
To: [email protected] 
Subject: =?utf-8?Q?Modifica_la_Password?= 
X-PHP-Originating-Script: 504:Email.php 
From: "Racebooking.net" <[email protected]> 
Reply-To: "[email protected]" <[email protected]> 
X-Sender: [email protected] 
X-Mailer: CodeIgniter 
X-Priority: 3 (Normal) 
Message-ID: <[email protected]> 
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

[这里有一些提示](https://support.google.com/mail/answer/81126)。这不是代码问题。 – miken32

回答

-1

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

$toaddress='[email protected]'; 
    $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); 
+0

你是什么意思?该电子邮件已包含您正在谈论的标题...来自:“Rperioring.net” 回复:“[email protected]”<[email protected]> –

+0

我的'米说加入到标题,以便该主题是基于收件人的自定义值。那就是我必须要做的 –

+0

所以,你的意思是为每个发送的邮件使用不同的主题,而不是总是使用同一个主题? –

相关问题