<?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>Just is here--恰恰在这里 &#187; email</title>
	<atom:link href="http://ishere.cn/tag/email/feed" rel="self" type="application/rss+xml" />
	<link>http://ishere.cn</link>
	<description>Jena&#039;s blog</description>
	<lastBuildDate>Sat, 14 Apr 2012 07:27:14 +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发邮件标题与内容乱码的解决方法</title>
		<link>http://ishere.cn/2009/12/30/php%e5%8f%91%e9%82%ae%e4%bb%b6%e6%a0%87%e9%a2%98%e4%b8%8e%e5%86%85%e5%ae%b9%e4%b9%b1%e7%a0%81%e7%9a%84%e8%a7%a3%e5%86%b3%e6%96%b9%e6%b3%95.html</link>
		<comments>http://ishere.cn/2009/12/30/php%e5%8f%91%e9%82%ae%e4%bb%b6%e6%a0%87%e9%a2%98%e4%b8%8e%e5%86%85%e5%ae%b9%e4%b9%b1%e7%a0%81%e7%9a%84%e8%a7%a3%e5%86%b3%e6%96%b9%e6%b3%95.html#comments</comments>
		<pubDate>Wed, 30 Dec 2009 05:55:48 +0000</pubDate>
		<dc:creator>jena</dc:creator>
				<category><![CDATA[PHP]]></category>
		<category><![CDATA[email]]></category>

		<guid isPermaLink="false">http://www.ishere.cn/?p=516</guid>
		<description><![CDATA[先用函数base64_encode() — 使用 MIME base64 对数据进行编码 标题字符串前加编码类型例如： =?UTF-8?B? 标题字符串后加：?= 邮件header指明Content-type: text/html; charset=utf-8，这样就能防止邮件正文乱码 $to         = &#8216;zhoz@example.com&#8217;; $subject   = “=?UTF-8?B?”.base64_encode(&#8216;邮件标题&#8217;).”?=”; $headers   = &#8216;MIME-Version: 1.0&#8242; . “rn”; $headers .= &#8216;Content-type: text/html; charset=utf-8&#8242; . “rn”; // Additional headers $headers .= &#8216;To: zhoz &#60;zhoz@example.com&#62;&#8217; . &#8230; <a href="http://ishere.cn/2009/12/30/php%e5%8f%91%e9%82%ae%e4%bb%b6%e6%a0%87%e9%a2%98%e4%b8%8e%e5%86%85%e5%ae%b9%e4%b9%b1%e7%a0%81%e7%9a%84%e8%a7%a3%e5%86%b3%e6%96%b9%e6%b3%95.html">Continue reading <span class="meta-nav">&#8594;</span></a>]]></description>
			<content:encoded><![CDATA[<p>先用函数base64_encode() — 使用 MIME base64 对数据进行编码<br />
标题字符串前加编码类型例如： =?UTF-8?B?<br />
标题字符串后加：?=<br />
邮件header指明Content-type: text/html; charset=utf-8，这样就能防止邮件正文乱码</p>
<div class="code">$to          = &#8216;zhoz@example.com&#8217;;<br />
$subject    = “=?UTF-8?B?”.base64_encode(&#8216;邮件标题&#8217;).”?=”;<br />
$headers    = &#8216;MIME-Version: 1.0&#8242; . “rn”;<br />
$headers .= &#8216;Content-type: text/html; charset=utf-8&#8242; . “rn”;<br />
// Additional headers<br />
$headers .= &#8216;To: zhoz &lt;zhoz@example.com&gt;&#8217; . “rn”;<br />
$headers .= &#8216;From: Admin &lt;admin@example.com&gt;&#8217; . “rn”;<br />
$headers .= &#8216;Reply-To: zhoz &lt;zhoz@example&gt;&#8217; . “rn”;<br />
mail($to, $subject, $message, $headers);</div>
]]></content:encoded>
			<wfw:commentRss>http://ishere.cn/2009/12/30/php%e5%8f%91%e9%82%ae%e4%bb%b6%e6%a0%87%e9%a2%98%e4%b8%8e%e5%86%85%e5%ae%b9%e4%b9%b1%e7%a0%81%e7%9a%84%e8%a7%a3%e5%86%b3%e6%96%b9%e6%b3%95.html/feed</wfw:commentRss>
		<slash:comments>2</slash:comments>
		</item>
		<item>
		<title>JS判断邮箱格式</title>
		<link>http://ishere.cn/2007/05/09/js-judgment-mail-format.html</link>
		<comments>http://ishere.cn/2007/05/09/js-judgment-mail-format.html#comments</comments>
		<pubDate>Wed, 09 May 2007 03:31:06 +0000</pubDate>
		<dc:creator>jena</dc:creator>
				<category><![CDATA[keyboard's joy]]></category>
		<category><![CDATA[email]]></category>
		<category><![CDATA[js]]></category>
		<category><![CDATA[validate]]></category>

		<guid isPermaLink="false">http://news.aobodo.com/?p=131</guid>
		<description><![CDATA[邮箱格式要求是： 必须包含一个并且只有一个符号@ 第一个字符不能是&#8217;@'或者&#8217;.&#8217; 不允许出现&#8217;@.&#8217;或者&#8217;.@&#8217;或者&#8217;-@&#8217;或者&#8217;@-&#8217; 结尾不得是字符&#8217;@'或者&#8217;.&#8217; 字符@后面只能是&#8217;A-Za-z0-9&#8242; &#60;script&#62; function checkMail(str){ var strReg=”"; var r; var strText=document.all(str).value; //strReg=/^w+((-w+)&#124;(.w+))*@[A-Za-z0-9]+((.&#124;-)[A-Za-z0-9]+)*.[A-Za-z0-9]+$/i; strReg=/^w+((-w+)&#124;(.w+))*@{1}w+.{1}w{2,4}(.{0,1}w{2}){0,1}/ig; r=strText.search(strReg); if(r==-1) { alert(“邮箱格式错误!”); document.all(str).focus(); } } &#60;/script&#62; &#60;input name=”email” type=”text” class=”input” id=”email” onChange=”checkMail(&#8216;email&#8217;)”&#62;]]></description>
			<content:encoded><![CDATA[<p>邮箱格式要求是：</p>
<ul class="ubb-list">
<li>必须包含一个并且只有一个符号@</li>
<li>第一个字符不能是&#8217;@'或者&#8217;.&#8217;</li>
<li>不允许出现&#8217;@.&#8217;或者&#8217;.@&#8217;或者&#8217;-@&#8217;或者&#8217;@-&#8217;</li>
<li>结尾不得是字符&#8217;@'或者&#8217;.&#8217;</li>
<li>字符@后面只能是&#8217;A-Za-z0-9&#8242;</li>
</ul>
<p class="code">&lt;script&gt; function checkMail(str){  var strReg=”";  var r;  var strText=document.all(str).value;  //strReg=/^w+((-w+)|(.w+))*@[A-Za-z0-9]+((.|-)[A-Za-z0-9]+)*.[A-Za-z0-9]+$/i;  strReg=/^w+((-w+)|(.w+))*@{1}w+.{1}w{2,4}(.{0,1}w{2}){0,1}/ig;  r=strText.search(strReg);  if(r==-1) {  alert(“邮箱格式错误!”);  document.all(str).focus();  } } &lt;/script&gt;</p>
<p class="code">&lt;input name=”email” type=”text” class=”input” id=”email” onChange=”checkMail(&#8216;email&#8217;)”&gt;</p>
]]></content:encoded>
			<wfw:commentRss>http://ishere.cn/2007/05/09/js-judgment-mail-format.html/feed</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
	</channel>
</rss>

