我想从我的网站发送HTML电子邮件,但是Outlook将其标记为垃圾邮件 [英] I want to send HTML emails from my site, but Outlook is flagging them as spam
问题描述
如何让Outlook批准我的电子邮件而不将其视为垃圾邮件?
How to get Outlook to approve my email and not treat it as spam?
我读到它与标题有关;这是我的电子邮件标题.
I read it's something to do with the headers; here is my email headers.
Received: from smtp-in-75.livemail.co.uk (213.171.216.76) by
exch-ht02.email.local (10.44.216.65) with Microsoft SMTP Server id
14.1.355.2; Fri, 25 Nov 2011 12:16:47 +0000
Received: from virus_14.livemail.co.uk (virus-cluster.livemail.co.uk
[213.171.216.10]) by smtp-in-75.livemail.co.uk (Postfix) with SMTP id
22A126540B7 for <info@cash-access.com>; Fri, 25 Nov 2011 12:16:45 +0000 (GMT)
X-Spam-Flag: YES
X-Spam-Checker-Version: SpamAssassin 3.2.5 (2008-06-10) on
spam_208.livemail.co.uk
X-Spam-Level: **********
X-Spam-Status: Yes, score=10.6 required=5.0 tests=FH_FROM_CASH,
HTML_IMAGE_ONLY_12,HTML_MESSAGE,HTML_MIME_NO_HTML_TAG,MIME_HEADER_CTYPE_ONLY,
MIME_HTML_ONLY shortcircuit=no autolearn=disabled version=3.2.5
X-Spam-Report: * 3.0 FH_FROM_CASH From name has "cash"
* 2.6 HTML_IMAGE_ONLY_12 BODY: HTML: images with 800-1200 bytes of words
* 0.0 HTML_MESSAGE BODY: HTML included in message
* 2.3 MIME_HTML_ONLY BODY: Message only has text/html MIME parts
* 1.0 MIME_HEADER_CTYPE_ONLY 'Content-Type' found without required MIME
* headers
* 1.7 HTML_MIME_NO_HTML_TAG HTML-only message, but there is no HTML tag
Received: from cust-smtp-193.fasthosts.net.uk (smtp-out-60.livemail.co.uk
[213.171.216.60]) by smtp-in-165.livemail.co.uk (Postfix) with ESMTP id
710E5EB00B9 for <info@cash-access.com>; Fri, 25 Nov 2011 12:16:40 +0000 (GMT)
Received: from linweb04.linvh1.fasthosts.co.uk (unknown [88.208.252.195]) by
cust-smtp-193.fasthosts.net.uk (Postfix) with ESMTP id 27B5F14100A9; Fri, 25
Nov 2011 12:16:40 +0000 (GMT)
Received: by linweb04.linvh1.fasthosts.co.uk (Postfix, from userid 1040243723)
id 21D2A1F609; Fri, 25 Nov 2011 12:16:40 +0000 (GMT)
To: <info@cash-access.com>
Subject: -----SPAM----- Your Pension Backed Loan Enquiry
From: <info@cash-access.com>
Content-Type: text/html
CC: <stevewolfe71@gmail.com>
Message-ID: <20111125121640.21D2A1F609@linweb04.linvh1.fasthosts.co.uk>
Date: Fri, 25 Nov 2011 12:16:40 +0000
X-Spam-Prev-Subject: Your Pension Backed Loan Enquiry
X-Original-To: info@cash-access.com
X-AntiVirus: checked by Vexira MailArmor
Return-Path: user_1040238723@linweb04.linvh1.fasthosts.co.uk
X-MS-Exchange-Organization-AuthSource: exch-ht02.email.local
X-MS-Exchange-Organization-AuthAs: Anonymous
MIME-Version: 1.0
这是我的php代码.
$id = $_GET['id'];
$date = date('y-m-d h:i:s');
$recipient = $_GET['email'];
$lname = $_GET['lname'];
$fname = $_GET['fname'];
$title = $_GET['title'];
$to = $recipient;
$from = "info@cash-access.com";
$subject = "Your Pension Backed Loan Enquiry";
$message = '
<p>Dear '.$title.' '.$fname.' '.$lname.'<u></u><u></u></p>
<p><u></u></p>
<p>We have received your enquiry from Pension Backed Loans and we will be in contact with you to discuss your requirements alternatively you can call us on 01202 763339.<u></u><u></u></p>
<p><u></u> <u></u></p>
<p>Yours sincerely<u></u><u></u></p>
<p><strong>Joanne Hearn<u></u><u></u></strong></p>
<p>Cash Access<u></u><u></u></p>
<p>7a Milburn Road<u></u><u></u></p>
<p>Westbourne<u></u><u></u></p>
<p>Bournemouth<u></u><u></u></p>
<p>Dorset BH4 9HJ<u></u><u></u></p>
<p><u></u> <u></u></p>
<p>t: <a href="tel:%2B44%280%291202%20763339" value="+441202763339" target="_blank">+44(0)1202 763339</a><u></u><u></u></p>
<p>e: <a href="mailto:info@cash-access.com" target="_blank">info@cash-access.com</a><u></u><u></u></p>
<p>w: <a href="http://www.cash-access.com/" target="_blank">www.cash-access.com</a><u></u><u></u></p>
<p><u></u> <img src="http://cash-access.com/crm/logo.png" width="288" height="72" /></p>
';
$headers = "From: $from\r\n";
$headers .= "Content-type: text/html\r\n";
$headers .= "Cc: stevewolfe71@gmail.com";
mail($to, $subject, $message, $headers);
推荐答案
不是Outlook,而是 livemail.co.uk 的垃圾邮件过滤器将您的邮件标记为垃圾邮件.
It is not Outlook but the spam filter of livemail.co.uk that flags your message as spam.
它告诉您原因:
3.0 FH_FROM_CASH From name has "cash"
显然无法修复.
2.6 HTML_IMAGE_ONLY_12 BODY: HTML: images with 800-1200 bytes of words
删除图像或增加字数.
0.0 HTML_MESSAGE BODY: HTML included in message
没有影响.无需修复.
2.3 MIME_HTML_ONLY BODY: Message only has text/html MIME parts
您应该始终发送多部分消息(包含非HTML版本).此处是一个教程.
You should always send multipart messages (containg a non-HTML version). Here is a tutorial.
1.0 MIME_HEADER_CTYPE_ONLY 'Content-Type' found without required MIME headers
应该通过发送适当的多部分消息来解决.
Should get fixed by sending a proper multipart message.
1.7 HTML_MIME_NO_HTML_TAG HTML-only message, but there is no HTML tag
添加< html> 标记.
领先者数(权重)越大,影响越大.
The larger the leading number (weight), the bigger the impact.
根据垃圾邮件过滤器的配置,以下内容可能会降低权重:
Depending on the spam filter's configuration, the following may decrease the weight:
-
申请白名单中的条目(例如 dnswl.org ).
添加发件人策略框架(SPF)记录.
使用 DomainKey标识邮件(DKIM).
这篇关于我想从我的网站发送HTML电子邮件,但是Outlook将其标记为垃圾邮件的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!