Reply to mail() not reaching hotmail

Your name:

Reply:


Posted by e_matthes on 06/05/07 16:45

Hello everyone,

I am trying to use the mail() function to send a simple, text-only
message. I have two websites hosted by the same company, on different
servers. One is old and established, one I am currently developing.
I am testing the mail functionality by sending a test message to an
email account associated with my old website, and to my hotmail
account. The message seems to be sent to both accounts, and I receive
the message on my website's email account, but it never reaches my
hotmail account.

Are there any special headers required for hotmail? I've looked
around a bit, and can't seem to figure it out. I've even tried
including several different headers, but always with the same results
- reaches my website's email account, but not my hotmail account. The
code I am using to test is:

<?php

$body = 'Hello from the internet mail tubes!';
$subject = 'Test message';
$address = 'working_address@other_domain.com';
$address2 = 'working_address@hotmail.com';
$headers = "From: working_address@this_domain.com";

mail($address, $subject, $body, $headers) or print "Can not deliver
to $address.";
print "Done with $address.<br>";

mail($address2, $subject, $body, $headers) or print "Can not deliver
to $address2.";
print "Done with $address2.<br>";

?>

[Back to original message]


Удаленная работа для программистов  •  Как заработать на Google AdSense  •  England, UK  •  статьи на английском  •  PHP MySQL CMS Apache Oscommerce  •  Online Business Knowledge Base  •  DVD MP3 AVI MP4 players codecs conversion help
Home  •  Search  •  Site Map  •  Set as Homepage  •  Add to Favourites

Copyright © 2005-2006 Powered by Custom PHP Programming

Сайт изготовлен в Студии Валентина Петручека
изготовление и поддержка веб-сайтов, разработка программного обеспечения, поисковая оптимизация