2013-04-14 63 views
0

即時通訊嘗試從我的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

任何想法可能是錯誤的?

在此先感謝

回答

1

這不是電子郵件庫,但您的MX域,主要是事實,你是缺少一些東西。 您必須設置DomainKeys/DKIM和SPF才能使您的電子郵件合法。 而且,即使設置了這些之後,也不要指望收件箱,但發生這種情況的機率爲50/50。電子郵件現在是一個真正的噩夢。

你現在進入收件箱的唯一原因是你的IP地址乾淨,沒有垃圾郵件,但不要指望這會持續下去,你遲早會被列入黑名單。

只是一個提示,你可以使用像http://mandrill.com/(他們有一個很好的api)發送電子郵件,這是免費的少量的電子郵件,可以讓你去非常快,主要是重要的是,你會達到每次收件箱,你不必經歷稱爲電子郵件設置的噩夢。

+0

謝謝。我終於決定使用mandrill.com,他們每個月都會給你一大堆免費郵件,這樣可以正常工作,再次感謝! – kastulo

相關問題