即時通訊嘗試從我的VPS發送電子郵件到使用postfix和PEAR郵件的hotmail帳戶,它完美地發送到雅虎,Gmail,但Hotmail直接去垃圾郵件,我知道whis問題有被要求之前,我已經嘗試了一切,梨郵件獲取發送到Hotmail的垃圾文件夾
我的主機名是libreriaplenitud.mx
,這裏是我的PHP腳本
include('Mail.php');
include('Mail/mime.php');
// Constructing the email
$sender = "Jorge <[email protected]>"; // Your name and email address
$recipient = "El Yorch <[email protected]>"; // The Recipients name and email address
$subject = "Test Email"; // Subject for the email
$text = 'This is a text message.'; // Text version of the email
$html = '<html><body><p>This is a html message</p></body></html>'; // HTML version of the email
$crlf = "\n";
$headers = array(
'From' => $sender,
'Return-Path' => $sender,
'Subject' => $subject
);
// Creating the Mime message
$mime = new Mail_mime($crlf);
// Setting the body of the email
$mime->setTXTBody($text);
$mime->setHTMLBody($html);
$body = $mime->get();
$headers = $mime->headers($headers);
// Sending the email
$mail =& Mail::factory('mail');
if($mail->send($recipient, $headers, $body)){
echo 'email sent succesfully';
}
這裏是Hotmail的是接收
頭Authentication-Results: hotmail.com; spf=none (sender IP is 192.34.60.167)
[email protected]; dkim=none header.d=libreriaplenitud.mx;
x-hmca=none
X-SID-PRA: [email protected]
X-AUTH-Result: NONE
X-SID-Result: NONE
X-Message-Status: n:n
X-Message-Delivery: Vj0xLjE7dXM9MDtsPTA7YT0wO0Q9MjtHRD0yO1NDTD02
X-Message-Info:
11chDOWqoTkNi4xaXoUxBJHNxb4q3jMdTE9occzTaBqAAmPh8MI+3AvSCyxtKvnRXgUwZQ9hB9zRIQG0MbHnJc1TejqWYpS9Vk7aOR7/8zlZcfOTkN+DLYQYashlrK5kkvMohRBt73VDj9hh9fgOPZb7AfegtTPz
Received: from libreriaplenitud.mx ([192.34.60.167]) by COL0-MC1-F2.Col0.hotmail.com with Microsoft SMTPSVC(6.0.3790.4900);
Sun, 14 Apr 2013 14:51:31 -0700
Received: by libreriaplenitud.mx (Postfix, from userid 33)
id 2498040A95; Sun, 14 Apr 2013 21:51:31 +0000 (UTC)
To: El Yorch <[email protected]>
Subject: Test Email
X-PHP-Originating-Script: 0:mail.php
MIME-Version: 1.0
Content-Type: multipart/alternative;
boundary="=_4404fe2999b34dc58f10c890ae3d5e76"
From: Jorge <[email protected]>
Message-Id: <[email protected]>
Date: Sun, 14 Apr 2013 21:51:31 +0000 (UTC)
Return-Path: [email protected]
X-OriginalArrivalTime: 14 Apr 2013 21:51:32.0085 (UTC) FILETIME=[39DB8250:01CE395A]
--=_4404fe2999b34dc58f10c890ae3d5e76
Content-Transfer-Encoding: quoted-printable
Content-Type: text/plain; charset=ISO-8859-1
This is a text message.
--=_4404fe2999b34dc58f10c890ae3d5e76
Content-Transfer-Encoding: quoted-printable
Content-Type: text/html; charset=ISO-8859-1
<html><body><p>This is a html message</p></body></html>
--=_4404fe2999b34dc58f10c890ae3d5e76--
我想不會被列入黑名單的IM,我剛剛建立了這個VPS
任何想法可能是錯誤的?
在此先感謝
謝謝。我終於決定使用mandrill.com,他們每個月都會給你一大堆免費郵件,這樣可以正常工作,再次感謝! – kastulo