glenelkins Posted June 4, 2006 Share Posted June 4, 2006 Ok, so why if i use:[code]mail ($recipient,"Test Title",$html_code,"From: [email protected]\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: [email protected]\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 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: [email protected] \r\n Content-type: text/html");[/code]??Because either way should be fine. Link to comment https://forums.phpfreaks.com/topic/11159-question-about-email-headers/#findComment-41731 Share on other sites More sharing options...
Recommended Posts
Archived
This topic is now archived and is closed to further replies.