strange problem...
pls put your code here...
problem can this also...few days back hotmail was slow and reaching mail out there was taking hell lot of time....
second may be hotmail account may be full....
regards
Main Topics
Browse All TopicsI've been having a problem with the PHP mail() function recently...
The syntax and everything is fine and I can send mail to some addresses no problem.
The problem is when it comes to hotmail addresses. I have tried mail()ing to a hotmail address and nothing showed up.
I've mailed to my home address (POP3) and to other web based services with no problem whatsoever, but when I mail to a hotmail address nothing seems to arrive in the inbox. Has anyone else had a problem with this?
Any help would be great. I am going to try to mail() to a different hotmail address and see what happens.
Thank
-Langdon
This Question has been solved and asker verified All Experts Exchange premium technology solutions are available to subscription members.
Experts Exchange has been collecting answers to technology questions since 1996…3 million and counting! If you have a question, chances are we already have your answer.
If you can't find the exact answer you're looking for, ask our exclusive community of 50,000 experts. You’ll get a personalized answer from a trusted professional.
Thousands of free tech tips, tricks, how-to’s and tutorials are available in our peer reviewed articles section. See for yourself how smart our experts are, no login required.
Access the answers to your technology questions today.
30-day free trial. Register in 60 seconds.
Members of the expert community talk about why the experience at Experts Exchange is different than what you will find anywhere else.

Try it out and discover for yourself.
30-day free trial. Register in 60 seconds.
Join the community of experts here and help other tech pros by answering question in your area of expertise. You can earn FREE access to all Experts Exchange's premium features and resources.
the problem might be because of hotmails spam block:
try this:
--------------------------
<?php
$myname = "Me Myself";
$myemail = "myself@email.com";
$contactname = "Mister Contact";
$contactemail = "contact@email.com";
$message = "hello from happy me";
$subject = "A mail not refused by Hotmail";
$headers .= "MIME-Version: 1.0\r\n";
$headers .= "Content-type: text/html; charset=iso-8859-1\r\n";
$headers .= "From: ".$myname." <".$myemail.">\r\n";
$headers .= "To: ".$contactname." <".$contactemail.">\r\n";
$headers .= "Reply-To: ".$myname." <$myreplyemail>\r\n";
$headers .= "X-Priority: 1\r\n";
$headers .= "X-MSMail-Priority: High\r\n";
$headers .= "X-Mailer: Just My Server";
mail($contactemail, $subject, $message, $headers);
?>
--------------------------
The funny thing about this is... I created a different email address at hotmail and it worked fine....
I am thinking that it's hotmail's problem not mine. I have checked and there is lots of room in the mailbox and tghe spam filter is off. Hmm I am going to try and email it again to the first address...
Thanks
I've had the same problem. Jonza is probably right and it is the spam block. However for me these headers were enough:
$headers = "From: $myname<$myemail>\n";
$headers .= "Reply-To: <$myemail>\n";
$headers .= "X-Sender: <$myemail>\n";
$headers .= "X-Mailer: PHP4\n";
$headers .= "X-Priority: 3\n"; //1 UrgentMessage, 3 Normal
$headers .= "Return-Path: <$myemail>\n";
$headers .= "Content-Type: text/html; charset=windows-1251\n";
mail($email, $subject, $message, $headers);
Also it seems that 'From' and 'Reply-To' addresses must be valid emails, as some servers check for fakes.
Another problem that i encountered - even though I did set the encoding to win-1251 (Russian) whenever i was sending an email with Subject line in cyrillic the hotmail would take it as spam.
Regards
No comment has been added to this question in more than 21 days, so it is now classified as abandoned.
I will leave the following recommendation for this question in the Cleanup topic area:
Delete with points refunded
Any objections should be posted here in the next 4 days. After that time, the question will be closed.
snoyes_jw
EE Cleanup Volunteer
Business Accounts
Answer for Membership
by: Big_Red_DogPosted on 2003-03-02 at 15:25:15ID: 8053893
Make sure you include the From: and Reply-To: like this:
mail($mailto, $subject, $message,
"From: " . $frommail . "\r\n"
."Reply-To: " . $frommail . "\r\n"
."X-Mailer: PHP/" . phpversion());