<?xml version="1.0" encoding="UTF-8"?>
<rss version="2.0"
	xmlns:content="http://purl.org/rss/1.0/modules/content/"
	xmlns:wfw="http://wellformedweb.org/CommentAPI/"
	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/"
	xmlns:slash="http://purl.org/rss/1.0/modules/slash/"
	>

<channel>
	<title>Bloggeh.com &#187; mail</title>
	<atom:link href="http://www.bloggeh.com/tag/mail/feed/" rel="self" type="application/rss+xml" />
	<link>http://www.bloggeh.com</link>
	<description>Bits and pieces</description>
	<lastBuildDate>Sun, 01 Aug 2010 13:13:03 +0000</lastBuildDate>
	<generator>http://wordpress.org/?v=2.9.2</generator>
	<language>en</language>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
			<item>
		<title>Remember HEADERS when sending mail from a site.</title>
		<link>http://www.bloggeh.com/2009/01/19/remember-headers-when-sending-mail-from-a-site/</link>
		<comments>http://www.bloggeh.com/2009/01/19/remember-headers-when-sending-mail-from-a-site/#comments</comments>
		<pubDate>Mon, 19 Jan 2009 02:16:47 +0000</pubDate>
		<dc:creator>Dave</dc:creator>
				<category><![CDATA[PHP]]></category>
		<category><![CDATA[Web Development]]></category>
		<category><![CDATA[e-mail]]></category>
		<category><![CDATA[headers]]></category>
		<category><![CDATA[junk]]></category>
		<category><![CDATA[mail]]></category>
		<category><![CDATA[sending]]></category>
		<category><![CDATA[spam]]></category>

		<guid isPermaLink="false">http://www.bloggeh.com/?p=77</guid>
		<description><![CDATA[Generally speaking, the e-mail will go to junk because of incomplete and missing headers. Many spam filters pick these &#8220;lack of headers&#8221; as a commonality between all those e-mails for all those enlargement pills and pirated software we&#8217;ve all been after.
Your mail code is slightly incorrect though, generally speaking the usage for mail is:
mail(&#8220;To&#8221;,&#8221;Subject&#8221;,&#8221;Message&#8221;,&#8221;Headers&#8221;)
Which could [...]]]></description>
			<content:encoded><![CDATA[<p>Generally speaking, the e-mail will go to junk because of incomplete and missing headers. Many spam filters pick these &#8220;lack of headers&#8221; as a commonality between all those e-mails for all those enlargement pills and pirated software we&#8217;ve all been after.</p>
<p>Your mail code is slightly incorrect though, generally speaking the usage for mail is:</p>
<p>mail(&#8220;To&#8221;,&#8221;Subject&#8221;,&#8221;Message&#8221;,&#8221;Headers&#8221;)</p>
<p>Which could explain why it went to junk the first time. Therefore you would have something like this established:</p>
<p>$headers = &#8220;MIME-Version: 1.0\r\n&#8221;;<br />
$headers .= &#8220;Content-type: text/html; charset=iso-8859-1\r\n&#8221;; // Important to change if you ever add attachments<br />
$headers .= &#8220;From: &#8220;.$email_address.&#8221;\r\n&#8221;;<br />
$headers .= &#8220;Reply-To: &#8220;.$email_address.&#8221;\r\n&#8221;;<br />
$headers .= &#8220;X-Mailer: PHP/&#8221;.phpversion().&#8221;\r\n&#8221;;</p>
<p>I&#8217;m sure you can work out the rest. Word of warning though, your e-mail address may be blacklisted as &#8220;junk&#8221; if you didn&#8217;t set the &#8220;from&#8221; value. There are many more headers that you may want to look up RFC2821 or some explanation on various headers.</p>
]]></content:encoded>
			<wfw:commentRss>http://www.bloggeh.com/2009/01/19/remember-headers-when-sending-mail-from-a-site/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
	</channel>
</rss>
