ViperBlade
New Member
- Messages
- 186
- Reaction score
- 0
- Points
- 0
Hey there. I'm currently unable to send E-mail to hotmail, however if I send to a mailinator address, it receives. Are there any specific headers I need to send email with?
I'm currently using this function I've hased together myself:
I used to be able to send to hotmail with an x10hosting account a couple of years ago with the following headers set.
Has sending to hotmail been taking away now?
Thanks for reading
I'm currently using this function I've hased together myself:
PHP:
function email($to, $subject, $plain, $html)
{
$semi_rand = md5(time());
$mime_boundary = "==MULTIPART_BOUNDARY_$semi_rand";
$mime_boundary_header = chr(34) . $mime_boundary . chr(34);
$from = "turnip@pervhunter.x10.mx";
$body = "This is a multi-part message in MIME format.
--$mime_boundary
Content-Type: text/plain; charset=us-ascii
Content-Transfer-Encoding: 7bit
$plain
--$mime_boundary
Content-Type: text/html; charset=us-ascii
Content-Transfer-Encoding: 7bit
$html
--$mime_boundary--";
if (@mail($to, $subject, $body,
"From: " . $from . "\n" .
"Return-Path: " . $from . "\n" .
"Reply-To: " . $from . "\n" .
"To: " . $to . "\n" .
"Sent: " . date("jS F Y, g:i a") . "\n" .
"Sender: " . "x10hosting.com" . "\n" .
"X-Priority: 1\n" .
"X-MSMail-Priority: High\n" .
"X-Mailer: PHP/" . phpversion() . "\n" .
"MIME-Version: 1.0\n" .
"Content-Type: multipart/alternative;\n" .
" boundary=" . $mime_boundary_header))
{
return true;
}
else
{
return false;
}
}
I used to be able to send to hotmail with an x10hosting account a couple of years ago with the following headers set.
PHP:
mail($email_address, $subject, $message, "X-Mailer: PHP/" . phpversion() . "
X-SID-PRA: alerts@pervgallery.co.nr
From: alerts@pervgallery.co.nr
Return-Path: alerts@pervgallery.co.nr")
Has sending to hotmail been taking away now?
Thanks for reading