2011-11-25 156 views
0

沒有人能讓我的電子郵件批准我的電子郵件的解決方案不是垃圾郵件。HTML,我想從我的網站發送html電子郵件,但是outlook將它們標記爲垃圾郵件

我讀了它的東西與標題這裏是我的電子郵件標題。

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 <[email protected]>; 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 <[email protected]>; 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: <[email protected]> 
Subject: -----SPAM----- Your Pension Backed Loan Enquiry 
From: <[email protected]> 
Content-Type: text/html 
CC: <[email protected]> 
Message-ID: <[email protected]> 
Date: Fri, 25 Nov 2011 12:16:40 +0000 
X-Spam-Prev-Subject: Your Pension Backed Loan Enquiry 
X-Original-To: [email protected] 
X-AntiVirus: checked by Vexira MailArmor 
Return-Path: [email protected] 
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 = "[email protected]"; 
    $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:[email protected]" target="_blank">[email protected]</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: [email protected]"; 

    mail($to, $subject, $message, $headers); 

任何幫助,將不勝感激。

+0

請考慮使用類似PHPMailer的庫爲您生成有效郵件。 Plus:將HTML部分的文本作爲純文本部分包含在內 - 並非所有電子郵件客戶端都支持HTML郵件。 – Wukerplank

+0

你有你用過phpmailer嗎?即時通訊思想試圖讓它工作,因爲我在電子郵件的其他嘗試失敗:( –

回答

13

這不是Outlook,而是垃圾郵件過濾器livemail.co.uk將您的郵件標記爲垃圾郵件。

,它告訴你爲什麼:

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版本)。 Here是一個教程。

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 

添加<HTML>標籤。

領先的數字(權重)越大,影響就越大。

取決於垃圾郵件過濾器的配置,以下可以減小重量:

+0

我怎樣才能修復所有的部分除了現金位? –

+0

我已經把它降到7.9現在,它需要5或以下, –

+0

如何解決這些部分 –

3

您沒有設置MIME類型在你的頭 - 發送HTML格式的電子郵件時,你必須將其設置是這樣的:

$headers .= 'MIME-Version: 1.0' . "\r\n"; 

還要確保您設置reply-to頭一樣from頭:

$headers .= 'Reply-To: [email protected]' . "\r\n"; 
0

看看在您的DNS中使用SPF記錄來驗證您的電子郵件服務器,這將使電子郵件比只看它的內容更可信。某些服務器(例如hotmail)會在沒有它的情況下直接拒絕您的電子郵件。

1

試試這個:

 
$headers = "From:".$from . "\r\n"; 
    $headers .= "Reply-To: [email protected]" . "\r\n"; 
    $headers .= "MIME-Version: 1.0\r\n"; 
    $headers .= "Content-Type: text/html; charset=ISO-8859-1\r\n"; 
0

如果你在共享服務器上託管你的網站,那麼你的電子郵件實際上不會從cash-access.com來,而是從你的主機的電子郵件服務器,以及將簽署因此。 Outlook(以及電子郵件提供商,如Gmail)可以看到實際的發件人地址與from地址不匹配。您需要更新SPF記錄(如果您的主機已安裝,您可以通過cPanel執行此操作)來糾正問題。

0

這樣的文字病毒在您的內容中可能會將此標記爲Outlook中的垃圾郵件。

0
你需要從同一臺服務器發送的電子郵件域或使用網絡的酒店時,使用通過這也是最常見的情況的電子郵件域的SMTP服務器發送一個發送命令,或者如果你不將消息發送

一般在相同的虛擬/物理服務器上沒有電子郵件服務器。 如果您沒有從免費解決方案發送的smtp服務器,則需要製作一個gmail:http://lifehacker.com/111166/how-to-use-gmail-as-your-smtp-server

相關問題