Warning: file_get_contents(/data/phpspider/zhask/data//catemap/2/ajax/6.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
C# Gmail/Hotmail将电子邮件标记为垃圾邮件_C#_Smtp_Gmail_Spam_False Positive - Fatal编程技术网

C# Gmail/Hotmail将电子邮件标记为垃圾邮件

C# Gmail/Hotmail将电子邮件标记为垃圾邮件,c#,smtp,gmail,spam,false-positive,C#,Smtp,Gmail,Spam,False Positive,我有一个简单的.NET应用程序,它使用SMTPClient发送电子邮件 我从本地服务器上的一个经过身份验证的帐户发送一个SPF记录,而主机(gogrid)不确定他们还能做些什么来解决这个问题 来自我的简单应用程序的任何电子邮件都被标记为垃圾邮件,但使用smtp服务器或通过squirrelmail等发送的任何其他电子邮件都可以正常通过。所以一定有一些像squirrelmail这样的应用程序正在做,而我却错过了 是否还有其他人遇到和/或解决了此问题?使用Gmail中的Show original命令比

我有一个简单的.NET应用程序,它使用SMTPClient发送电子邮件

我从本地服务器上的一个经过身份验证的帐户发送一个SPF记录,而主机(gogrid)不确定他们还能做些什么来解决这个问题

来自我的简单应用程序的任何电子邮件都被标记为垃圾邮件,但使用smtp服务器或通过squirrelmail等发送的任何其他电子邮件都可以正常通过。所以一定有一些像squirrelmail这样的应用程序正在做,而我却错过了


是否还有其他人遇到和/或解决了此问题?

使用Gmail中的Show original命令比较两封电子邮件的MIME输出(squirellmail vs SmtpClient),并在此处发布差异


另外,请检查SmtpClient的SMTP设置。

可能您的MIME信息中缺少编码,或者您的回信电子邮件未设置或不同,使其看起来是假的。如果看不到您正在/未填写的参数,很难说

SLaks的答案也是很好的一步


考虑到来自服务器的其他电子邮件没有被标记,黑名单或缺失的参数不太可能。

您应该考虑使用DKIM签署您的消息。 看

关于您的垃圾邮件与干净的电子邮件内容,请查看“垃圾邮件”消息中的x-spam-status字段。通过检查根据spamassassin描述标记的测试,您可以尝试找出问题所在:


垃圾邮件输出:

Delivered-To: there.test.hey@gmail.com Received: by 10.140.252.20 with SMTP id z20cs531261rvh; Thu, 13 Aug 2009 17:05:42 -0700 (PDT) Received: by 10.115.117.7 with SMTP id u7mr1383293wam.152.1250208342113; Thu, 13 Aug 2009 17:05:42 -0700 (PDT) Return-Path: Received: from n19.c05.mtsvc.net (n19.c05.mtsvc.net [70.32.68.19]) by mx.google.com with ESMTP id 29si1711715pzk.0.2009.08.13.17.05.41; Thu, 13 Aug 2009 17:05:41 -0700 (PDT) Received-SPF: neutral (google.com: 70.32.68.19 is neither permitted nor denied by best guess record for domain of admin@flatfinderadmin.com) client-ip=70.32.68.19; Authentication-Results: mx.google.com; spf=neutral (google.com: 70.32.68.19 is neither permitted nor denied by best guess record for domain of admin@flatfinderadmin.com) smtp.mail=admin@flatfinderadmin.com Received: from [96.49.122.252] (port=18788 helo=sk1) by n19.c05.mtsvc.net with esmtpa (Exim 4.63) (envelope-from ) id 1MbkIe-00078B-BG for there.test.hey@gmail.com; Thu, 13 Aug 2009 17:05:40 -0700 MIME-Version: 1.0 From: admin@flatfinderadmin.com To: there.test.hey@gmail.com Date: 13 Aug 2009 17:05:42 -0700 Subject: Flat Finder Site Submitted Contact Form Content-Type: text/html; charset=us-ascii Content-Transfer-Encoding: quoted-printable Message-Id: X-Authenticated-User: 75266 admin@flatfinderadmin.com X-Spam-Status: "score=3.7 tests=ALL_TRUSTED, HTML_IMAGE_ONLY_16, HTML_MESSAGE, HTML_SHORT_LINK_IMG_2, MIME_HTML_ONLY, NO_REAL_NAME version=3.1.7 cmae=v=1.0 c=1 a=Bu8eb_7rEXsA:10 a=wNIIKIUcX8P6fymBW3VY0A==:17 a=SSmOFEACAAAA:8 a=btttyEYfAAAA:8 a=P_WOZhPR8xpSgznosTMA:9 a=L7jHSo-IajUz1O2H4c4A:7 a=c8QRsX8pXm0wgMQia4dzJuyZCb0A:4 a=L0MSjj-u4uAA:10 a=MSl-tDqOz04A:10 xcat=Undefined/Undefined" X-Spam-Level: *** = =0D=0A=0D=0A=0D=0A = Site Contact=0D=0A=0D=0A= =0D=0A =0D=0A =0D=0A =0D=0A =0D=0A = =0D=0A =0D=0A =0D=0A A visitor= to the site has submitted the following info through the contact form:= =0D=0A =0D=0A

=0D=0A =0D=0A =0D=0A =0D=0A User: John Doe=0D=0A Email: doyouunderstand@gmail.com
=0D=0A= Message: Testing=0D=0A =0D=0A = =0D=0A =0D=0A=0D=0A=0D=0A Delivered-To: there.test.hey@gmail.com Received: by 10.140.252.20 with SMTP id z20cs531296rvh; Thu, 13 Aug 2009 17:07:24 -0700 (PDT) Received: by 10.115.100.20 with SMTP id c20mr1379009wam.75.1250208443895; Thu, 13 Aug 2009 17:07:23 -0700 (PDT) Return-Path: Received: from n17.c05.mtsvc.net (n17.c05.mtsvc.net [70.32.68.17]) by mx.google.com with ESMTP id 13si1834503pzk.161.2009.08.13.17.07.23; Thu, 13 Aug 2009 17:07:23 -0700 (PDT) Received-SPF: neutral (google.com: 70.32.68.17 is neither permitted nor denied by best guess record for domain of admin@flatfinderadmin.com) client-ip=70.32.68.17; Authentication-Results: mx.google.com; spf=neutral (google.com: 70.32.68.17 is neither permitted nor denied by best guess record for domain of admin@flatfinderadmin.com) smtp.mail=admin@flatfinderadmin.com Received: from localhost ([127.0.0.1]:60628 helo=s75266.gridserver.com) by n17.c05.mtsvc.net with esmtp (Exim 4.63) (envelope-from ) id 1MbkKH-0006Xh-OF for there.test.hey@gmail.com; Thu, 13 Aug 2009 17:07:23 -0700 Received: from 96.49.122.252 (proxying for 96.49.122.252) (SquirrelMail authenticated user admin@flatfinderadmin.com) by s75266.gridserver.com with HTTP; Thu, 13 Aug 2009 17:07:21 -0700 (PDT) Message-ID: Date: Thu, 13 Aug 2009 17:07:21 -0700 (PDT) Subject: Flat Finder Site Submitted Contact Form From: admin@flatfinderadmin.com To: there.test.hey@gmail.com User-Agent: SquirrelMail/1.4.9a MIME-Version: 1.0 Content-Type: text/plain;charset=iso-8859-1 Content-Transfer-Encoding: 8bit X-Priority: 3 (Normal) Importance: Normal X-Spam-Status: "score=-0.9 tests=ALL_TRUSTED, NO_REAL_NAME version=3.1.7 cmae=v=1.0 c=1 a=Bu8eb_7rEXsA:10 a=wNIIKIUcX8P6fymBW3VY0A==:17 a=oHM1V9sc3__v4s30wF0A:9 a=AUDcTUBt7KQaFxkMUcF7gsiVO_sA:4 xcat=Undefined/Undefined" X-Spam-Level: Testing 交付至:那里。测试。hey@gmail.com 收到日期:20年10月140日至252日,SMTP id为z20cs531261rvh; 2009年8月13日星期四17:05:42-0700(PDT) 收到日期:10.115.117.7,SMTP id为U7MR13833293WAM.152.1250208342113; 2009年8月13日星期四17:05:42-0700(PDT) 返回路径: 收到:来自n19.c05.mtsvc.net(n19.c05.mtsvc.net[70.32.68.19]) 通过mx.google.com,ESMTP id为29si1711715pzk.0.2009.08.13.17.05.41; 2009年8月13日星期四17:05:41-0700(PDT) 收到的SPF:neutral(google.com:70.32.68.19)未被域名的最佳猜测记录所允许或拒绝admin@flatfinderadmin.com)客户ip=70.32.68.19; 认证结果:mx.google.com;spf=neutral(谷歌网站:70.32.68.19)的域名最佳猜测记录既不允许也不拒绝admin@flatfinderadmin.com)smtp.mail=admin@flatfinderadmin.com 收到:从[96.49.122.252](端口=18788直升机=sk1) 通过n19.c05.mtsvc.net和esmtpa(Exim 4.63) (信封来自) id 1MbkIe-00078B-BG 在那里。测试。hey@gmail.com; 2009年8月13日星期四17:05:40-0700 MIME版本:1.0 发件人:admin@flatfinderadmin.com 到:那里。测试。hey@gmail.com 日期:2009年8月13日17:05:42-0700 主题:Flat Finder网站提交的联系表 内容类型:text/html;字符集=美国ascii码 内容传输编码:引用可打印 消息Id: X-Authenticated-User:75266admin@flatfinderadmin.com X-Spam-Status:“分数=3.7测试=所有受信任、仅HTML图像、HTML消息、, HTML\u SHORT\u LINK\u IMG\u 2,仅MIME\u HTML\u,无真实名称版本=3.1.7 cmae=v=1.0 c=1 a=Bu8eb\U 7rEXsA:10 a=WNIKIUCX8P6FYMBW3VY0A==:17 a=SSMOFEACAAA:8A=BTYEYFAAAA:8A=P_WOZhPR8xpSgznosTMA:9A=L7jHSo-IajUz1O2H4c4A:7 a=c8QRsX8pXm0wgMQia4dzJuyZCb0A:4A=L0MSjj-u4uAA:10A=MSl-tDqOz04A:10 xcat=未定义/未定义” X级:*** = =0D=0A=0D=0A=0D=0A= 站点联系人=0D=0A=0D=0A= =0D=0A=0D=0A=0D=0A=0D=0A=0D=0A=0D=0A= =0D=0A=0D=0A=0D=0A访客= 网站已通过联系方式提交以下信息:= =0D=0A=0D=0A

=0D=0A=0D=0A=0D=0A=0D=0A用户:John Doe=0D=0A电子邮件:doyouunderstand@gmail.com
=0D=0A= 消息:测试=0D=0A=0D=0A= =0D=0A=0D=0A=0D=0A=0D=0D=0A=0D=0A

良好的电子邮件输出:

Delivered-To: there.test.hey@gmail.com Received: by 10.140.252.20 with SMTP id z20cs531261rvh; Thu, 13 Aug 2009 17:05:42 -0700 (PDT) Received: by 10.115.117.7 with SMTP id u7mr1383293wam.152.1250208342113; Thu, 13 Aug 2009 17:05:42 -0700 (PDT) Return-Path: Received: from n19.c05.mtsvc.net (n19.c05.mtsvc.net [70.32.68.19]) by mx.google.com with ESMTP id 29si1711715pzk.0.2009.08.13.17.05.41; Thu, 13 Aug 2009 17:05:41 -0700 (PDT) Received-SPF: neutral (google.com: 70.32.68.19 is neither permitted nor denied by best guess record for domain of admin@flatfinderadmin.com) client-ip=70.32.68.19; Authentication-Results: mx.google.com; spf=neutral (google.com: 70.32.68.19 is neither permitted nor denied by best guess record for domain of admin@flatfinderadmin.com) smtp.mail=admin@flatfinderadmin.com Received: from [96.49.122.252] (port=18788 helo=sk1) by n19.c05.mtsvc.net with esmtpa (Exim 4.63) (envelope-from ) id 1MbkIe-00078B-BG for there.test.hey@gmail.com; Thu, 13 Aug 2009 17:05:40 -0700 MIME-Version: 1.0 From: admin@flatfinderadmin.com To: there.test.hey@gmail.com Date: 13 Aug 2009 17:05:42 -0700 Subject: Flat Finder Site Submitted Contact Form Content-Type: text/html; charset=us-ascii Content-Transfer-Encoding: quoted-printable Message-Id: X-Authenticated-User: 75266 admin@flatfinderadmin.com X-Spam-Status: "score=3.7 tests=ALL_TRUSTED, HTML_IMAGE_ONLY_16, HTML_MESSAGE, HTML_SHORT_LINK_IMG_2, MIME_HTML_ONLY, NO_REAL_NAME version=3.1.7 cmae=v=1.0 c=1 a=Bu8eb_7rEXsA:10 a=wNIIKIUcX8P6fymBW3VY0A==:17 a=SSmOFEACAAAA:8 a=btttyEYfAAAA:8 a=P_WOZhPR8xpSgznosTMA:9 a=L7jHSo-IajUz1O2H4c4A:7 a=c8QRsX8pXm0wgMQia4dzJuyZCb0A:4 a=L0MSjj-u4uAA:10 a=MSl-tDqOz04A:10 xcat=Undefined/Undefined" X-Spam-Level: *** = =0D=0A=0D=0A=0D=0A = Site Contact=0D=0A=0D=0A= =0D=0A =0D=0A =0D=0A =0D=0A =0D=0A = =0D=0A =0D=0A =0D=0A A visitor= to the site has submitted the following info through the contact form:= =0D=0A =0D=0A

=0D=0A =0D=0A =0D=0A =0D=0A User: John Doe=0D=0A Email: doyouunderstand@gmail.com
=0D=0A= Message: Testing=0D=0A =0D=0A = =0D=0A =0D=0A=0D=0A=0D=0A Delivered-To: there.test.hey@gmail.com Received: by 10.140.252.20 with SMTP id z20cs531296rvh; Thu, 13 Aug 2009 17:07:24 -0700 (PDT) Received: by 10.115.100.20 with SMTP id c20mr1379009wam.75.1250208443895; Thu, 13 Aug 2009 17:07:23 -0700 (PDT) Return-Path: Received: from n17.c05.mtsvc.net (n17.c05.mtsvc.net [70.32.68.17]) by mx.google.com with ESMTP id 13si1834503pzk.161.2009.08.13.17.07.23; Thu, 13 Aug 2009 17:07:23 -0700 (PDT) Received-SPF: neutral (google.com: 70.32.68.17 is neither permitted nor denied by best guess record for domain of admin@flatfinderadmin.com) client-ip=70.32.68.17; Authentication-Results: mx.google.com; spf=neutral (google.com: 70.32.68.17 is neither permitted nor denied by best guess record for domain of admin@flatfinderadmin.com) smtp.mail=admin@flatfinderadmin.com Received: from localhost ([127.0.0.1]:60628 helo=s75266.gridserver.com) by n17.c05.mtsvc.net with esmtp (Exim 4.63) (envelope-from ) id 1MbkKH-0006Xh-OF for there.test.hey@gmail.com; Thu, 13 Aug 2009 17:07:23 -0700 Received: from 96.49.122.252 (proxying for 96.49.122.252) (SquirrelMail authenticated user admin@flatfinderadmin.com) by s75266.gridserver.com with HTTP; Thu, 13 Aug 2009 17:07:21 -0700 (PDT) Message-ID: Date: Thu, 13 Aug 2009 17:07:21 -0700 (PDT) Subject: Flat Finder Site Submitted Contact Form From: admin@flatfinderadmin.com To: there.test.hey@gmail.com User-Agent: SquirrelMail/1.4.9a MIME-Version: 1.0 Content-Type: text/plain;charset=iso-8859-1 Content-Transfer-Encoding: 8bit X-Priority: 3 (Normal) Importance: Normal X-Spam-Status: "score=-0.9 tests=ALL_TRUSTED, NO_REAL_NAME version=3.1.7 cmae=v=1.0 c=1 a=Bu8eb_7rEXsA:10 a=wNIIKIUcX8P6fymBW3VY0A==:17 a=oHM1V9sc3__v4s30wF0A:9 a=AUDcTUBt7KQaFxkMUcF7gsiVO_sA:4 xcat=Undefined/Undefined" X-Spam-Level: Testing 交付至:那里。测试。hey@gmail.com 收到日期:20年10月140日至252日,SMTP id为z20cs531296rvh; 2009年8月13日星期四17:07:24-0700(PDT) 收到日期:20年10月115日,SMTP id为c20mr1379009wam.75.1250208443895; 2009年8月13日星期四17:07:23-0700(PDT) 返回路径: 收到:来自n17.c05.mtsvc.net(n17.c05.mtsvc.net[70.32.68.17]) 通过mx.google.com,ESMTP id为13si1834503pzk.161.2009.08.13.17.07.23; 2009年8月13日星期四17:07:23-0700(PDT) 收到的SPF:neutral(google.com:70.32.68.17)未被域名的最佳猜测记录所允许或拒绝admin@flatfinderadmin.com)客户ip=70.32.68.17; 认证结果:mx.google.com;spf=neutral(谷歌网站:70.32.68.17)的域名最佳猜测记录既不允许也不拒绝admin@flatfinderadmin.com)smtp.mail=admin@flatfinderadmin.com 接收:来自localhost([127.0.0.1]:60628 helo=s75266.gridserver.com) 通过n17.c05.mtsvc.net和esmtp(Exim 4.63) (信封来自) id 1MbkKH-0006Xh-OF 在那里。测试。hey@gmail.com; 2009年8月13日星期四17:07:23-0700 收到:从96.49.122.252(代理96.49.122.252) (b)通过电子邮件身份验证的用户admin@flatfinderadmin.com) 通过s75266.gridserver.com和HTTP; 2009年8月13日星期四17:07:21-0700(PDT) 消息ID: 日期:2009年8月13日星期四17:07:21-0700(PDT) 主题:Flat Finder网站提交的联系表 发件人:admin@flatfinderadmin.com 到:那里。测试。hey@gmail.com 用户代理:SquirrelMail/1.4.9a MIME版本:1.0 内容类型:文本/纯文本;字符集=iso-8859-1 内容传输编码:8比特 X优先级:3(正常) 重要性:正常 X-Spam-Status:“分数=-0.9测试=所有受信任,无实名版本=3.1.7 cmae=v=1.0 c=1 a=Bu8eb\u 7rEXsA:10 a=WNIKIUCX8P6FYMBW3VY0A==:17 a=oHM1V9sc3\uU v4s30wF0A:9 a=AUDCUTUBT7KQAFxKMUCF7GSIVO_sA:4 xcat=Undefined/Undefined“ X级: 测试
尝试使用PHP mail()函数发送头,该函数将“发件人”地址指定为服务器上的有效电子邮件地址。也就是说:在您的Web服务器上创建一个电子邮件帐户,用于“发送”电子邮件,然后使用P