Jump to content

definitive email header(!?)


StirCrazy

Recommended Posts

Done a search about this but can't seem to find anything that works.
Has anyone come up with a definitive header that hotmail will accept?

Using this:-

[CODE]$headers = "From: ".$_POST[sender]." <".$_POST[sender]."> \r\n";
$headers .= "X-Mailer: PHP/" . phpversion(). "\n";
$headers .= "X-Sender-IP: ".$_SERVER["REMOTE_ADDR"]."\n";
$headers .= "Content-Type: text/html";
$subject = "Subject Line";
$description = stripslashes($_POST[msg]);
$message = "<HTML><BODY><P>".$description."</P></BODY></HTML>";

@mail($email,$subject,$message,$headers);[/CODE]


But hotmail doesn't accept any emails using it.

Any ideas?


S.C>
Link to comment
https://forums.phpfreaks.com/topic/17550-definitive-email-header/
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.