Warning: file_get_contents(/data/phpspider/zhask/data//catemap/0/email/3.json): failed to open stream: No such file or directory in /data/phpspider/zhask/libs/function.php on line 167

Warning: Invalid argument supplied for foreach() in /data/phpspider/zhask/libs/tag.function.php on line 1116

Notice: Undefined index: in /data/phpspider/zhask/libs/function.php on line 180

Warning: array_chunk() expects parameter 1 to be array, null given in /data/phpspider/zhask/libs/function.php on line 181
Gmail将合法邮件从php mail()函数发送到垃圾邮件文件夹_Php_Email_Gmail_Spam_Spf - Fatal编程技术网

Gmail将合法邮件从php mail()函数发送到垃圾邮件文件夹

Gmail将合法邮件从php mail()函数发送到垃圾邮件文件夹,php,email,gmail,spam,spf,Php,Email,Gmail,Spam,Spf,我已经为此寻找了解决方案,但没有一个解决了我的问题。我也在使用谷歌应用程序 这是gmail上收到的消息的副本: Delivered-To: suporte@taskka.com.br Received: by 10.114.37.166 with SMTP id z6csp286681ldj; Tue, 22 Jan 2013 17:22:28 -0800 (PST) X-Received: by 10.236.119.206 with SMTP id n54mr27422481

我已经为此寻找了解决方案,但没有一个解决了我的问题。我也在使用谷歌应用程序

这是gmail上收到的消息的副本:

Delivered-To: suporte@taskka.com.br
Received: by 10.114.37.166 with SMTP id z6csp286681ldj;
        Tue, 22 Jan 2013 17:22:28 -0800 (PST)
X-Received: by 10.236.119.206 with SMTP id n54mr27422481yhh.8.1358904147674;
        Tue, 22 Jan 2013 17:22:27 -0800 (PST)
Return-Path: <contato@jetcarros.com.br>
Received: from smtp-web3-ctba.kinghost.net (smtp-web3-ctba.kinghost.net. [177.12.170.3])
        by mx.google.com with ESMTP id h1si4616624anp.108.2013.01.22.17.22.26;
        Tue, 22 Jan 2013 17:22:27 -0800 (PST)
Received-SPF: pass (google.com: domain of contato@jetcarros.com.br designates 177.12.170.3 as permitted sender) client-ip=177.12.170.3;
Authentication-Results: mx.google.com;
       spf=pass (google.com: domain of contato@jetcarros.com.br designates 177.12.170.3 as permitted sender) smtp.mail=contato@jetcarros.com.br
Received: from smtp-web-ctba.kinghost.net (smtp-web-ctba [127.0.0.1])
       by smtp-web3-ctba.kinghost.net (Postfix) with ESMTP id 7C5D58F2AE
       for <suporte@taskka.com.br>; Tue, 22 Jan 2013 23:22:26 -0200 (BRST)
Received: from web593.kinghost.net (unknown [10.27.86.33])
       by smtp-web-ctba.kinghost.net (Postfix) with ESMTP id 7BB2BC2DFC6C
       for <suporte@taskka.com.br>; Tue, 22 Jan 2013 23:22:26 -0200 (BRST)
Received: by web593.kinghost.net (Postfix, from userid 850)
       id 77EA6E9B6; Tue, 22 Jan 2013 23:22:26 -0200 (BRST)
To: suporte@taskka.com.br
Subject: test mail
From: contato@jetcarros.com.br
Subject: test mail
MIME-Version: 1.0
Content-Type: text/html; charset=UTF-8
Message-Id: <20130123012226.77EA6E9B6@web593.kinghost.net>
Date: Tue, 22 Jan 2013 23:22:26 -0200 (BRST)

It's a test mail<br/>
Another line<br/>
Yet another line.
编辑:根据iWizardPro的建议,我使用DKIM对邮件进行签名,经过几个小时的正确签名,我已经完成了。但我的邮件一直在垃圾邮件文件夹里


欢迎提供任何帮助。

我相信Gmail需要DKIM密钥来验证电子邮件的有效性

当我实现我的网站的电子邮件系统时,我必须包括Gmail的DKIM密钥,以停止阻止我的电子邮件并将它们发送到垃圾邮件

编辑:
我相信这个网站是相关的,因为你说你正在使用谷歌应用程序:

你的IP-/domain声誉似乎被破坏了:

  • 发件人分数:
  • McAfee:Red=(电子邮件)

解决方案:从另一个IP/域发送

我按照页面上的步骤做了,但我的邮件一直在发送垃圾邮件。我必须在电子邮件中添加任何标题?好的,我使用我可以在[link](php DKIM.sourceforge.net)找到的脚本在电子邮件中添加DKIM签名。谷歌应用DKIM一点帮助都没有,我必须自己生成密钥。但仍然会转到垃圾邮件文件夹。但这不是它的ip地址。您搜索了177.12.169.33,发件人是177.12.170.3Oops,sry。无论如何:177.12.170.3也有很高的垃圾邮件风险。似乎网络被滥用了。

    $email_content = implode ( "\n",array ( "It's a test mail", "Another line", "Yet another line.")
    $email_headers = implode ( "\n",array ( "From: contato@jetcarros.com.br", "Subject: test mail","Return-Path:  contato@jetcarros.com.br","MIME-Version: 1.0","Content-Type: text/html; charset=UTF-8" ) );  
    mail('suporte@taskka.com.br', 'test mail', nl2br($email_content), $email_headers, "-fcontato@jetcarros.com.br")