<?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>草窟设计 &#187; mail</title>
	<atom:link href="http://www.yaoyingying.com/tag/mail/feed/" rel="self" type="application/rss+xml" />
	<link>http://www.yaoyingying.com</link>
	<description>Wordpress, Drupal 二次开发~</description>
	<lastBuildDate>Wed, 08 Feb 2012 12:54:01 +0000</lastBuildDate>
	<language>en</language>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
	<generator>http://wordpress.org/?v=3.3.1</generator>
		<item>
		<title>PHP MAIL 抄送（CC）</title>
		<link>http://www.yaoyingying.com/2011/05/28/php-mail-cc/</link>
		<comments>http://www.yaoyingying.com/2011/05/28/php-mail-cc/#comments</comments>
		<pubDate>Sat, 28 May 2011 03:39:15 +0000</pubDate>
		<dc:creator>姚 迎迎</dc:creator>
				<category><![CDATA[代码人生]]></category>
		<category><![CDATA[mail]]></category>
		<category><![CDATA[php]]></category>

		<guid isPermaLink="false">http://www.yaoyingying.com/?p=1458</guid>
		<description><![CDATA[// 更多报头 $headers .= &#34;From: 姚迎迎 &#60;admin@yaoyingying.com&#62;&#34;. &#34;\r\n&#34; .&#34;CC: yao3060@gmail.com, yao3060@hotmail.com&#34;; 突然发现 php mail 函数 抄送的时候， header 里用 单引号 (&#8216;) 竟然会有错误，一定要用双引号。。。。。。 NND 这一直是一个误解，其实 \r\n 必须使用双引号（”"）]]></description>
		<wfw:commentRss>http://www.yaoyingying.com/2011/05/28/php-mail-cc/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>php中mail()函数中中文乱码的解决</title>
		<link>http://www.yaoyingying.com/2009/04/18/php%e4%b8%admail%e5%87%bd%e6%95%b0%e4%b8%ad%e4%b8%ad%e6%96%87%e4%b9%b1%e7%a0%81%e7%9a%84%e8%a7%a3%e5%86%b3/</link>
		<comments>http://www.yaoyingying.com/2009/04/18/php%e4%b8%admail%e5%87%bd%e6%95%b0%e4%b8%ad%e4%b8%ad%e6%96%87%e4%b9%b1%e7%a0%81%e7%9a%84%e8%a7%a3%e5%86%b3/#comments</comments>
		<pubDate>Sat, 18 Apr 2009 19:24:47 +0000</pubDate>
		<dc:creator>姚 迎迎</dc:creator>
				<category><![CDATA[代码人生]]></category>
		<category><![CDATA[mail]]></category>
		<category><![CDATA[php]]></category>
		<category><![CDATA[中文乱码]]></category>

		<guid isPermaLink="false">http://www.yaoyingying.com/?p=168</guid>
		<description><![CDATA[一边这种问题出现的原因是 mail() 函数的 header 参数里少了 Content-type: text/html; charset=utf-8,或者 charset 不是utf-8。很多国外的PHP程序一开始开发的时候没有吧中文考虑进去，所以中文使用的时候就会出现乱码。 另外我在网路上看到另外一篇文章也是将这个问题，但是我没有去试，暂且把它拷贝过来。 php中mail()函数标题中中文出现乱码的解决 今天用mail函数总是乱码，找了下，用base64_encode解决,如下 先用函数base64_encode() 使用 MIME base64 对数据进行编码 标题字符串前加编码类型例如： =?UTF-8?B? 当然如果是gb2312的话就 =?GB2312?B? 标题字符串后加：?= 举例如下 $to         = 'xinple@example.com'; $subject  = &#34;=?UTF-8?B?&#34;.base64_encode&#40;'邮件标题'&#41;.&#34;?=&#34;; $headers  = 'MIME-Version: 1.0' . &#34;\r\n&#34;; $headers .= 'Content-type: text/html; charset=utf-8' . &#34;\r\n&#34;; // Additional headers $headers .= 'To: Xinple &#38;lt;&#60;a href=&#34;mailto:xinple@example.com&#34;&#62;xinple@example.com&#60;/a&#62;&#38;gt;' . &#34;\r\n&#34;; $headers [...]]]></description>
		<wfw:commentRss>http://www.yaoyingying.com/2009/04/18/php%e4%b8%admail%e5%87%bd%e6%95%b0%e4%b8%ad%e4%b8%ad%e6%96%87%e4%b9%b1%e7%a0%81%e7%9a%84%e8%a7%a3%e5%86%b3/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
	</channel>
</rss>

