<?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>Karlosp.net&#187; mail</title>
	<atom:link href="http://www.karlosp.net/blog/tag/mail/feed/" rel="self" type="application/rss+xml" />
	<link>http://www.karlosp.net/blog</link>
	<description>Malo mešano na žaru</description>
	<lastBuildDate>Thu, 26 Aug 2010 19:10:05 +0000</lastBuildDate>
	<language>en</language>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
	<generator>http://wordpress.org/?v=3.0.1</generator>
		<item>
		<title>PHP mail() UTF-8</title>
		<link>http://www.karlosp.net/blog/2009/03/17/php-mail-utf-8/</link>
		<comments>http://www.karlosp.net/blog/2009/03/17/php-mail-utf-8/#comments</comments>
		<pubDate>Tue, 17 Mar 2009 21:54:15 +0000</pubDate>
		<dc:creator>karlosp</dc:creator>
				<category><![CDATA[php_mysql]]></category>
		<category><![CDATA[mail]]></category>
		<category><![CDATA[php]]></category>
		<category><![CDATA[utf-8]]></category>

		<guid isPermaLink="false">http://www.karlosp.net/blog/?p=578</guid>
		<description><![CDATA[PLAIN TEXT PHP: function mail_utf8&#40;$from, $to, $subject = '(No subject)', $message = '', $header = ''&#41; &#123; &#160; $header_ = 'MIME-Version: 1.0' . "\r\n" . 'Content-type: text/html; charset=UTF-8' . "\r\n"; &#160; $header_ .= "From: $from\r\n" . "Reply-To: $from\r\n"; &#160; mail&#40;$to, "=?UTF-8?B?".base64_encode&#40;$subject&#41;.'?=', $message, $header_ . $header&#41;; &#125;]]></description>
			<content:encoded><![CDATA[<div class="igBar"><span id="lphp-2"><a href="#" onclick="javascript:showPlainTxt('php-2'); return false;">PLAIN TEXT</a></span></div>
<div class="syntax_hilite"><span class="langName">PHP:</span>
<div id="php-2">
<div class="php">
<ol>
<li style="font-family: 'Courier New', Courier, monospace; color: black; font-weight: normal; font-style: normal;color:#3A6A8B;">
<div style="font-family: 'Courier New', Courier, monospace; font-weight: normal;"><span style="color:#000000; font-weight:bold;">function</span> mail_utf8<span style="color:#006600; font-weight:bold;">&#40;</span><span style="color:#0000FF;">$from</span>, <span style="color:#0000FF;">$to</span>, <span style="color:#0000FF;">$subject</span> = <span style="color:#FF0000;">'(No subject)'</span>, <span style="color:#0000FF;">$message</span> = <span style="color:#FF0000;">''</span>, <span style="color:#0000FF;">$header</span> = <span style="color:#FF0000;">''</span><span style="color:#006600; font-weight:bold;">&#41;</span> <span style="color:#006600; font-weight:bold;">&#123;</span></div>
</li>
<li style="font-weight: bold;color:#26536A;">
<div style="font-family: 'Courier New', Courier, monospace; font-weight: normal;">&nbsp; <span style="color:#0000FF;">$header_</span> = <span style="color:#FF0000;">'MIME-Version: 1.0'</span> . <span style="color:#FF0000;">"<span style="color:#000099; font-weight:bold;">\r</span><span style="color:#000099; font-weight:bold;">\n</span>"</span> . <span style="color:#FF0000;">'Content-type: text/html; charset=UTF-8'</span> . <span style="color:#FF0000;">"<span style="color:#000099; font-weight:bold;">\r</span><span style="color:#000099; font-weight:bold;">\n</span>"</span>;</div>
</li>
<li style="font-family: 'Courier New', Courier, monospace; color: black; font-weight: normal; font-style: normal;color:#3A6A8B;">
<div style="font-family: 'Courier New', Courier, monospace; font-weight: normal;">&nbsp; <span style="color:#0000FF;">$header_</span> .= <span style="color:#FF0000;">"From: $from<span style="color:#000099; font-weight:bold;">\r</span><span style="color:#000099; font-weight:bold;">\n</span>"</span> . <span style="color:#FF0000;">"Reply-To: $from<span style="color:#000099; font-weight:bold;">\r</span><span style="color:#000099; font-weight:bold;">\n</span>"</span>;</div>
</li>
<li style="font-weight: bold;color:#26536A;">
<div style="font-family: 'Courier New', Courier, monospace; font-weight: normal;">&nbsp; <a href="http://www.php.net/mail"><span style="color:#000066;">mail</span></a><span style="color:#006600; font-weight:bold;">&#40;</span><span style="color:#0000FF;">$to</span>, <span style="color:#FF0000;">"=?UTF-8?B?"</span>.<a href="http://www.php.net/base64_encode"><span style="color:#000066;">base64_encode</span></a><span style="color:#006600; font-weight:bold;">&#40;</span><span style="color:#0000FF;">$subject</span><span style="color:#006600; font-weight:bold;">&#41;</span>.<span style="color:#FF0000;">'?='</span>, <span style="color:#0000FF;">$message</span>, <span style="color:#0000FF;">$header_</span> . <span style="color:#0000FF;">$header</span><span style="color:#006600; font-weight:bold;">&#41;</span>;</div>
</li>
<li style="font-family: 'Courier New', Courier, monospace; color: black; font-weight: normal; font-style: normal;color:#3A6A8B;">
<div style="font-family: 'Courier New', Courier, monospace; font-weight: normal;"><span style="color:#006600; font-weight:bold;">&#125;</span> </div>
</li>
</ol>
</div>
</div>
</div>
<p></p>
]]></content:encoded>
			<wfw:commentRss>http://www.karlosp.net/blog/2009/03/17/php-mail-utf-8/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
	</channel>
</rss>
