I've been reading other questions like: sending mail with php & escaping hotmails junk folder but I don't see where the problem is. I spent some hours setting up everything.
I searched for some complete headers and I'm using them. I also set up SPF. The only thing I didn't read/saw in other questions is if hotmail detects the domain name from where the mail was sent:
- I have a subdomain to register/login and from that subdomain some mails are sent (verification/change password mails).
- The sender email domain is not the subdomain name.
- The link provided in the mail sends to the subdomain (where the script is executed)
So I'm not sure if that's the reason why hotmail don't "aprove" my mails...
Here is the source of the mail (hotmail):
x-store-info:4r51+eLowCe79NzwdU2kRyU+pBy2R9QCQ99fuVSCLVNK5Qy3tNqo8vMm9jiywJSb4AMHHDpThtTp0/868JYjtiuwXZKN6huGiKorTLfam2nlYixnKNQu5eplyIAwMuvqi0o7Xe5KjgM=
Authentication-Results: hotmail.com; spf=pass (sender IP is 195.154.9.53) smtp.mailfrom=accounts@corporativelines.com; dkim=none header.d=corporativelines.com; x-hmca=pass header.id=accounts@corporativelines.com
X-SID-PRA: accounts@corporativelines.com
X-AUTH-Result: PASS
X-SID-Result: PASS
X-Message-Status: n:n
X-Message-Delivery: Vj0xLjE7dXM9MDtsPTA7YT0wO0Q9MjtHRD0yO1NDTD00
X-Message-Info: 11chDOWqoTnmN+ivpBVEjsVU8moIb13En8xpAAkdU6D2Jw9iq84N9UKCWMkB8jcijAo9uBZZpNSfs4N4ZmryrVmAm+9DT92cCh1N4AGxo+UI9VDYmm7c0Ui7BmjOCJdw5s8hvwwVCQJ3zP8VMfuIxZhQ1EirTyAADSXPIzac4tMV3En7hamwIe+Ox0V9g6xITx6WyNuJQtaCfKqkehC89rqbEhbKZ45Z
Received: from sd-22000 ([195.154.9.53]) by COL004-MC5F5.hotmail.com with Microsoft SMTPSVC(7.5.7601.23008);
Sun, 7 Jun 2015 13:29:16 -0700
Received: (qmail 1503 invoked by uid 7798); 7 Jun 2015 20:26:51 -0000
To: how2hack@hotmail.es
Subject: =?UTF-8?B?QWN0aXZhdGUgYWNjb3VudA==?=
MIME-Version: 1.0
Content-Type: text/HTML; charset="UTF-8";
Content-Transfer-Encoding: 8bit
Date: Sun, 07 Jun 2015 21:26:51 +0100
Message-ID: <143370881165cf616b9bf0356d5acc5471bf66e73f@corporativelines.com>
From: "AET LTD" <accounts@corporativelines.com>
Reply-To: "AET LTD" <accounts@corporativelines.com>
X-Mailer: PHP 5.4.41
X-Originating-IP: 195.154.9.53
Return-Path: accounts@corporativelines.com
X-OriginalArrivalTime: 07 Jun 2015 20:29:16.0804 (UTC) FILETIME=[A00F6440:01D0A160]
<html>
<head>
<title>Activate account</title>
</head>
<body>
<p>In order to activate your account follow this link: </p>
<a href="http://auth.corporativelines.com/activateAccount?code=e9a7fbefc95171ed153739457c4bf78d231a067f&email=how2hack@hotmail.es">Activate account</a>
</body>
</html>
These are the headers I'm using:
$headers = array (
'MIME-Version: 1.0',
'Content-Type: text/HTML; charset="UTF-8";',
'Content-Transfer-Encoding: 8bit', // quoted-printable for compatibility
'Date: ' . date('r', $_SERVER['REQUEST_TIME']),
'Message-ID: <' . $_SERVER['REQUEST_TIME'] . md5($_SERVER['REQUEST_TIME']) . '@corporativelines.com>',
'From: ' . $from,
'Reply-To: ' . $from,
'Return-Path: ' . $from,
'X-Mailer: PHP ' . phpversion(),
'X-Originating-IP: ' . $_SERVER['SERVER_ADDR']
);
So I don't why hotmail keeps pushing my mails to the junk folder... Maybe a dns problem? I'm not sure about that kind of stuff.
Edit: this question have nothing to do with: PHP mail() function cannot send to hotmail?
I (almost) already did the basic configuration to not get flagged as spam, as in other questions says, but the problem persists. So this is a unique question, not a duplicated one.