glenelkins Posted June 4, 2006 Share Posted June 4, 2006 Ok, so why if i use:[code]mail ($recipient,"Test Title",$html_code,"From: no@no.com\n Content-type: text/html");[/code]does the email come through showing the HTML code rather than the content, but if i do it this way it works fine:[code]$headers = "From: no@no.com\n";$headers .= "Content-type: text/html";mail ($recipient,"Test Title",$html_code,$headers);[/code]Not really a problem, just wondering why it does not work with the first method Quote Link to comment https://forums.phpfreaks.com/topic/11159-question-about-email-headers/ Share on other sites More sharing options...
poirot Posted June 4, 2006 Share Posted June 4, 2006 Have you tried:[code]mail ($recipient,"Test Title",$html_code,"From: no@no.com \r\n Content-type: text/html");[/code]??Because either way should be fine. Quote Link to comment https://forums.phpfreaks.com/topic/11159-question-about-email-headers/#findComment-41731 Share on other sites More sharing options...
Recommended Posts
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.