Jump to content


Photo

definitive email header(!?)


  • Please log in to reply
2 replies to this topic

#1 StirCrazy

StirCrazy
  • Members
  • PipPipPip
  • Advanced Member
  • 75 posts

Posted 14 August 2006 - 08:25 PM

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:-

$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);


But hotmail doesn't accept any emails using it.

Any ideas?


S.C>

#2 willpower

willpower
  • Members
  • PipPipPip
  • Advanced Member
  • 296 posts
  • LocationWarrington, Cheshire, UK

Posted 15 August 2006 - 12:34 AM

What do you mean....HOtmail wont accept it.  Is it returned or confined to junk.
 
Wait...I've got it...Bollocks, it's gone again!

If at first you don't succeed....stop using ASP and get onto PHP

#3 StirCrazy

StirCrazy
  • Members
  • PipPipPip
  • Advanced Member
  • 75 posts

Posted 15 August 2006 - 01:10 AM

Just won't accept it ~ doesn't even appear in junk.
Works on Yahoo, Gmail and AOL :S


S.C>




0 user(s) are reading this topic

0 members, 0 guests, 0 anonymous users