Jump to content

Why my mails are not received by Hotmail users?


guarriman

Recommended Posts

Hi.

 

I created this script to send emails:

$mailFromEmail = "[email protected]";
$mailFromName = "MYDOMAIN";
$mailTo = "[email protected]";
                                                                                                                            
$mailHeaders =
"From: $mailFromName <$mailFromEmail>\n"
. "Content-Type: text/plain; "
. "charset=UTF-8; format=flowed\n"
. "MIME-Version: 1.0\n"
. "Content-Transfer-Encoding: 8bit\n";
                                                                                                                            
$mailSubject = "Hi! " . date('h:i:s A');
$mailMessage = "Hi,\n\nHow are you?\n" . date('l dS \of F Y h:i:s A') . "\n";
                                                                                                                            
mail($mailTo, $mailSubject, $mailMessage, $mailHeaders);

 

In addition, I've set an SPF policy on my DNS server, and I added this line to my 'php.ini' file:

sendmail_path = /usr/sbin/sendmail -t -i -f [email protected]

(I've got 'safe_mode=on' on my server)

 

So Gmail users receive the messages correctly:

Delivered-To: [email protected]
Received: by 10.100.121.18 with SMTP id t18cs105671anc;
        Fri, 4 Apr 2008 06:58:23 -0700 (PDT)
Received: by 10.114.56.1 with SMTP id e1mr1995521waa.52.1207317502773;
        Fri, 04 Apr 2008 06:58:22 -0700 (PDT)
Return-Path: <[email protected]>
Received: from v2v-3.net ([52.147.120.136])
        by mx.google.com with ESMTP id q18si8099195pog.7.2008.04.04.06.58.22;
        Fri, 04 Apr 2008 06:58:22 -0700 (PDT)
Received-SPF: pass (google.com: domain of [email protected] designates 52.147.120.136 as permitted sender) client-ip=52.147.120.136;
Authentication-Results: mx.google.com; spf=pass (google.com: domain of [email protected] designates 52.147.120.136 as permitted sender) [email protected]
Received: (qmail 21817 invoked by uid 48); 4 Apr 2008 06:58:22 -0700

 

Note the "Return-Path" line and the "Received-SPF" line.

 

If I change '[email protected]' with '[email protected]', they don't receive my emails. What am I doing wrong?

Archived

This topic is now archived and is closed to further replies.

×
×
  • Create New...

Important Information

We have placed cookies on your device to help make this website better. You can adjust your cookie settings, otherwise we'll assume you're okay to continue.