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 = '[email protected]'; $subject = 'the subject'; $message = 'hello'; $headers = 'From: [email protected]' . "\r\n" . 'Reply-To: [email protected]' . "\r\n" . 'X-Mailer: PHP/' . phpversion(); mail($to, $subject, $message, $headers); ?> and what is the best code to send email ? :-\ Thaaaaaaaaanks! 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. Link to comment https://forums.phpfreaks.com/topic/56709-mail-and-hotmail/#findComment-280169 Share on other sites More sharing options...
Recommended Posts
Archived
This topic is now archived and is closed to further replies.