<?xml version="1.0" encoding="UTF-8"?><rss version="2.0"
	xmlns:content="http://purl.org/rss/1.0/modules/content/"
	xmlns:dc="http://purl.org/dc/elements/1.1/"
	xmlns:atom="http://www.w3.org/2005/Atom"
	xmlns:sy="http://purl.org/rss/1.0/modules/syndication/"
		>
<channel>
	<title>Comments on: PHP mail() Headers Are Displayed In Email Body</title>
	<atom:link href="http://www.johnconde.net/blog/php-mail-headers-are-displayed-in-email-body/feed/" rel="self" type="application/rss+xml" />
	<link>http://www.johnconde.net/blog/php-mail-headers-are-displayed-in-email-body/</link>
	<description>John Conde&#039;s blog</description>
	<lastBuildDate>Tue, 31 Jan 2012 21:37:28 +0000</lastBuildDate>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
	<generator>http://wordpress.org/?v=3.3.1</generator>
	<item>
		<title>By: donoman</title>
		<link>http://www.johnconde.net/blog/php-mail-headers-are-displayed-in-email-body/comment-page-1/#comment-3031</link>
		<dc:creator>donoman</dc:creator>
		<pubDate>Tue, 31 May 2011 21:15:56 +0000</pubDate>
		<guid isPermaLink="false">http://www.johnconde.net/blog/?p=76#comment-3031</guid>
		<description>can I just say AAARRRGGHHH!  Now thank you for enlightening me about \r\n vs \n cause wow I&#039;d never had gotten that and would likely have ended up in Arkham Asylum or something.</description>
		<content:encoded><![CDATA[<p>can I just say AAARRRGGHHH!  Now thank you for enlightening me about \r\n vs \n cause wow I&#8217;d never had gotten that and would likely have ended up in Arkham Asylum or something.</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Sreevalli</title>
		<link>http://www.johnconde.net/blog/php-mail-headers-are-displayed-in-email-body/comment-page-1/#comment-3000</link>
		<dc:creator>Sreevalli</dc:creator>
		<pubDate>Mon, 04 Apr 2011 15:47:55 +0000</pubDate>
		<guid isPermaLink="false">http://www.johnconde.net/blog/?p=76#comment-3000</guid>
		<description>Hi John, Your post, even after so many years, helped me so much. I was literally going nuts as the client has already gone live and the emails doesn&#039;t work in entourage. The header X-PHP-Originating-Script implanted by PHP was causing all the trouble. Thanks.</description>
		<content:encoded><![CDATA[<p>Hi John, Your post, even after so many years, helped me so much. I was literally going nuts as the client has already gone live and the emails doesn&#8217;t work in entourage. The header X-PHP-Originating-Script implanted by PHP was causing all the trouble. Thanks.</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: John C.</title>
		<link>http://www.johnconde.net/blog/php-mail-headers-are-displayed-in-email-body/comment-page-1/#comment-678</link>
		<dc:creator>John C.</dc:creator>
		<pubDate>Fri, 05 Nov 2010 17:43:57 +0000</pubDate>
		<guid isPermaLink="false">http://www.johnconde.net/blog/?p=76#comment-678</guid>
		<description>Nice tip. Thanks!

If your script don&#039;t send e-mails via PHP mail() function, see your server specification for REQUIRED headers.

For the problem with the header at the e-mail&#039;s body, see if your server uses \n (usually linux servers) or \r\n (usually windows servers), or check syntax errors at the header notation.</description>
		<content:encoded><![CDATA[<p>Nice tip. Thanks!</p>
<p>If your script don&#8217;t send e-mails via PHP mail() function, see your server specification for REQUIRED headers.</p>
<p>For the problem with the header at the e-mail&#8217;s body, see if your server uses \n (usually linux servers) or \r\n (usually windows servers), or check syntax errors at the header notation.</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: malsafy</title>
		<link>http://www.johnconde.net/blog/php-mail-headers-are-displayed-in-email-body/comment-page-1/#comment-675</link>
		<dc:creator>malsafy</dc:creator>
		<pubDate>Thu, 28 Oct 2010 08:40:02 +0000</pubDate>
		<guid isPermaLink="false">http://www.johnconde.net/blog/?p=76#comment-675</guid>
		<description>also I when i changing \r\n to \n solved my problem.</description>
		<content:encoded><![CDATA[<p>also I when i changing \r\n to \n solved my problem.</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: malsafy</title>
		<link>http://www.johnconde.net/blog/php-mail-headers-are-displayed-in-email-body/comment-page-1/#comment-673</link>
		<dc:creator>malsafy</dc:creator>
		<pubDate>Mon, 25 Oct 2010 13:48:31 +0000</pubDate>
		<guid isPermaLink="false">http://www.johnconde.net/blog/?p=76#comment-673</guid>
		<description>when I send mail from my site, no problem with $to but when i use CC 
header are displayed in email body 
Content-Type: text/html; charset=utf-8
and HTML code also like 
what i do</description>
		<content:encoded><![CDATA[<p>when I send mail from my site, no problem with $to but when i use CC<br />
header are displayed in email body<br />
Content-Type: text/html; charset=utf-8<br />
and HTML code also like<br />
what i do</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Oziam</title>
		<link>http://www.johnconde.net/blog/php-mail-headers-are-displayed-in-email-body/comment-page-1/#comment-654</link>
		<dc:creator>Oziam</dc:creator>
		<pubDate>Tue, 21 Sep 2010 22:00:38 +0000</pubDate>
		<guid isPermaLink="false">http://www.johnconde.net/blog/?p=76#comment-654</guid>
		<description>YES!
Thanks Jamie, changing \r\n to \n solved my problem.
This has been bugging me for a while.
Thank god for this website!!!! :?)</description>
		<content:encoded><![CDATA[<p>YES!<br />
Thanks Jamie, changing \r\n to \n solved my problem.<br />
This has been bugging me for a while.<br />
Thank god for this website!!!! <img src='http://www.johnconde.net/blog/wp-includes/images/smilies/icon_confused.gif' alt=':?' class='wp-smiley' /> )</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Digitalchaos</title>
		<link>http://www.johnconde.net/blog/php-mail-headers-are-displayed-in-email-body/comment-page-1/#comment-563</link>
		<dc:creator>Digitalchaos</dc:creator>
		<pubDate>Tue, 06 Apr 2010 19:02:55 +0000</pubDate>
		<guid isPermaLink="false">http://www.johnconde.net/blog/?p=76#comment-563</guid>
		<description>Thanks for this post. I&#039;ve had headers creeping into the body of the message. 
Jamie Thompson&#039;s note solved the problem I&#039;ve been struggling with for months. The switch from \r\n to just \n fixed it in the applications we are using.</description>
		<content:encoded><![CDATA[<p>Thanks for this post. I&#8217;ve had headers creeping into the body of the message.<br />
Jamie Thompson&#8217;s note solved the problem I&#8217;ve been struggling with for months. The switch from \r\n to just \n fixed it in the applications we are using.</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Mike</title>
		<link>http://www.johnconde.net/blog/php-mail-headers-are-displayed-in-email-body/comment-page-1/#comment-242</link>
		<dc:creator>Mike</dc:creator>
		<pubDate>Tue, 03 Nov 2009 15:57:10 +0000</pubDate>
		<guid isPermaLink="false">http://www.johnconde.net/blog/?p=76#comment-242</guid>
		<description>@ Jamie Thompson

Thanks for your comment. You helped me sort out a long standing issue I&#039;ve had.  

The weird thing is that when the test script was run from our development environment, we did not see the excess headers in the email body. But when we ran the same script in our production environment, it put the headers in the body every time. Removing the carriage return fixed it. I&#039;m not sure whether to blame our production host, our mail server, or both!</description>
		<content:encoded><![CDATA[<p>@ Jamie Thompson</p>
<p>Thanks for your comment. You helped me sort out a long standing issue I&#8217;ve had.  </p>
<p>The weird thing is that when the test script was run from our development environment, we did not see the excess headers in the email body. But when we ran the same script in our production environment, it put the headers in the body every time. Removing the carriage return fixed it. I&#8217;m not sure whether to blame our production host, our mail server, or both!</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Jamie Thompson</title>
		<link>http://www.johnconde.net/blog/php-mail-headers-are-displayed-in-email-body/comment-page-1/#comment-200</link>
		<dc:creator>Jamie Thompson</dc:creator>
		<pubDate>Wed, 01 Jul 2009 19:32:49 +0000</pubDate>
		<guid isPermaLink="false">http://www.johnconde.net/blog/?p=76#comment-200</guid>
		<description>That&#039;s not the only problem. Using \r\n as a line ending will cause many mail clients to incorrectly parse the header. \n seems to be a more universally accepted solution. Isn&#039;t email fun? ;-)</description>
		<content:encoded><![CDATA[<p>That&#8217;s not the only problem. Using \r\n as a line ending will cause many mail clients to incorrectly parse the header. \n seems to be a more universally accepted solution. Isn&#8217;t email fun? <img src='http://www.johnconde.net/blog/wp-includes/images/smilies/icon_wink.gif' alt=';-)' class='wp-smiley' /> </p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Jacob Anders</title>
		<link>http://www.johnconde.net/blog/php-mail-headers-are-displayed-in-email-body/comment-page-1/#comment-137</link>
		<dc:creator>Jacob Anders</dc:creator>
		<pubDate>Sat, 10 Jan 2009 00:55:00 +0000</pubDate>
		<guid isPermaLink="false">http://www.johnconde.net/blog/?p=76#comment-137</guid>
		<description>Can I have more details on this?</description>
		<content:encoded><![CDATA[<p>Can I have more details on this?</p>
]]></content:encoded>
	</item>
</channel>
</rss>

