Jump to content


Photo

Question about email headers


  • Please log in to reply
1 reply to this topic

#1 glenelkins

glenelkins
  • Members
  • PipPipPip
  • Advanced Member
  • 760 posts
  • LocationBridlington - East Riding of Yorkshire - United Kingdom

Posted 04 June 2006 - 03:06 PM

Ok, so why if i use:

mail ($recipient,"Test Title",$html_code,"From: no@no.com\n Content-type: text/html");

does the email come through showing the HTML code rather than the content, but if i do it this way it works fine:

$headers = "From: no@no.com\n";
$headers .= "Content-type: text/html";
mail ($recipient,"Test Title",$html_code,$headers);

Not really a problem, just wondering why it does not work with the first method
http://thewebsolutionprovider.com - A Solution For Everything Web!

#2 poirot

poirot
  • Members
  • PipPipPip
  • Advanced Member
  • 646 posts
  • LocationAustin, TX

Posted 04 June 2006 - 03:16 PM

Have you tried:

mail ($recipient,"Test Title",$html_code,"From: no@no.com \r\n Content-type: text/html");

??
Because either way should be fine.
~ D Kuang




0 user(s) are reading this topic

0 members, 0 guests, 0 anonymous users