沒有人能讓我的電子郵件批准我的電子郵件的解決方案不是垃圾郵件。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);
任何幫助,將不勝感激。
請考慮使用類似PHPMailer的庫爲您生成有效郵件。 Plus:將HTML部分的文本作爲純文本部分包含在內 - 並非所有電子郵件客戶端都支持HTML郵件。 – Wukerplank
你有你用過phpmailer嗎?即時通訊思想試圖讓它工作,因爲我在電子郵件的其他嘗試失敗:( –