Has Anyone figured out how to bypass Hotmail's So Called 'Security'?
It seems you need a Special Type(s) of Header(s) to successfully send the Mail from your PHP script to there INBOX, And Not JunkBox; In My Case; The Email Doesn't Appear;
Can Some1 Check Out My Script; See If it's "Hotmail Material"...
Code: Select all
<?php
$to = $emails; //To The Person(s) i want to Sent to
$boundary = md5(uniqid("Random") );
$headers = "MIME-Version: 1.0 \r\n";
$headers .= "Content-Type: multipart/alternative;boundary=" . $boundary . "\r\n";
$headers .= "Content-Transfer-Encoding: 8bit\r\n";
//Headers - Additional
$headers .= "From: $name<$email>\r\n"; //<<- Seems To Be The Problem.
$headers .= "Reply-To: <$email>\r\n";
$headers .= "Return-Path: $email\r\n";
$headers .= "Date: " .date(r)."\r\n";
$headers .= "X-SID-PRA: MyDomain<info@domain.com>\r\n";
// subject
$subject = 'Dynamic!';
$message = "\r\n\r\n--" . $boundary . "\r\n"; //Start Mulitpart!
$message .= "Content-Transfer-Encoding: 7bit\r\n";
$message .= "Content-type: text/plain;charset=utf-8\r\n\r\n";
$message .= "My Plain Message, Just Incase Users don't have HTML supported INBOXES";
//HTML PART
$message .= "\r\n\r\n--" . $boundary . "\r\n";
$message .= "Content-Transfer-Encoding: 8bit\r\n";
$message .= "Content-type: text/html;charset=utf-8\r\n\r\n";
// message
$message .= '
<html>
<body>
My <b> Html Message!! </b>
</body></html>
';
mail($to,$subject,$message,$headers);
?>Well, Simply, This HTML PHP Script Just doesn't Appear in my Hotmail Inbox! It does with my G-MAIL; Yahoo and ISP (optusnet.com.au) email servers.
Only With Hotmail, If i leave the FROM header out and let the server be the 'from' it SOMETIMES returns in my Junk Box.
Any Ideas?
Thanks For Any Help