Jump to content

mail() and Hotmail !!


php2MySQL

Recommended Posts

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

Archived

This topic is now archived and is closed to further replies.

×
×
  • Create New...

Important Information

We have placed cookies on your device to help make this website better. You can adjust your cookie settings, otherwise we'll assume you're okay to continue.