php2MySQL Posted June 22, 2007 Share Posted June 22, 2007 Hello, why when i send email to hotmail using mail function the email goes to Junk box ? iam using this code: <?php $to = 'nobody@hotmail.com'; $subject = 'the subject'; $message = 'hello'; $headers = 'From: webmaster@example.com' . "\r\n" . 'Reply-To: webmaster@example.com' . "\r\n" . 'X-Mailer: PHP/' . phpversion(); mail($to, $subject, $message, $headers); ?> and what is the best code to send email ? :-\ Thaaaaaaaaanks! Quote Link to comment https://forums.phpfreaks.com/topic/56709-mail-and-hotmail/ Share on other sites More sharing options...
php_joe Posted June 22, 2007 Share Posted June 22, 2007 it looks like it's hotmail's spam filter. Try sending it using a From address that's in your address book. Quote Link to comment https://forums.phpfreaks.com/topic/56709-mail-and-hotmail/#findComment-280169 Share on other sites More sharing options...
Recommended Posts
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.