<?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"
	>

<channel>
	<title>高山仰止</title>
	<atom:link href="http://goto8848.net/feed/" rel="self" type="application/rss+xml" />
	<link>http://goto8848.net</link>
	<description>这里只是一些技术笔记和生活经历</description>
	<pubDate>Fri, 25 Jul 2008 06:00:46 +0000</pubDate>
	<generator>http://wordpress.org/?v=2.6</generator>
	<language>en</language>
			<item>
		<title>在 ProFTPD 中限速和限制连接数</title>
		<link>http://goto8848.net/2008/07/set-limit-in-proftpd/</link>
		<comments>http://goto8848.net/2008/07/set-limit-in-proftpd/#comments</comments>
		<pubDate>Sun, 20 Jul 2008 16:15:46 +0000</pubDate>
		<dc:creator>Crazy Loong</dc:creator>
		
		<category><![CDATA[FTP]]></category>

		<category><![CDATA[limit]]></category>

		<category><![CDATA[ProFTPD]]></category>

		<category><![CDATA[连接数]]></category>

		<category><![CDATA[限制]]></category>

		<category><![CDATA[限速]]></category>

		<guid isPermaLink="false">http://goto8848.net/?p=176</guid>
		<description><![CDATA[版权声明：原创文章，转载请注明出处，Crazy Loong(http://goto8848.net)
ProFTPD 是一个强大的 FTP 服务端程序。那么，在实际使用中，我们如何对 FTP 进行合理的资源分配及限制呢？
1、在有限的带宽中，对 FTP 下载进行限速是大家都关心的功能。在 ProFTPD 中，我们可以方便地进行设置。
打开 /etc/proftpd.conf （ProFTPD 的配置文件），
TransferRate RETR, STOR 50表示对所有的上传下载限速为50KB
TransferRate RETR 100
TransferRate STOR 80表示对所有下载限速100KB，对所有上传限速80KB

TransferRate RETR 100:52428800表示对下载50M以下的文件不限速，超过50M了才限速。这里，52428800的单位是Byte。这个可以用来限制大文件的下载，很实用哦。^0^
注：TransferRate 指令在 ProFTPD 1.2.8rc1及以后版本有效。
2、连接数的设置也是很重要的。ProFTPD 可以进行的设置也丰富。
MaxClients 10表示FTP连接数最大为10
MaxClientsPerHost 10表示每个客户端到FTP服务器的连接数为10
MaxClientsPerUser 10表示每个Userid到FTP服务器的连接数为10
经过合理的设置，FTP就能更好地工作，不至于影响到其它依赖网页的服务。
]]></description>
			<content:encoded><![CDATA[<p><span style="color: #ff0000;">版权声明：原创文章，转载请注明出处，Crazy Loong(http://goto8848.net)</span></p>
<p>ProFTPD 是一个强大的 FTP 服务端程序。那么，在实际使用中，我们如何对 FTP 进行合理的资源分配及限制呢？</p>
<p>1、在有限的带宽中，对 FTP 下载进行限速是大家都关心的功能。在 ProFTPD 中，我们可以方便地进行设置。</p>
<p>打开 /etc/proftpd.conf （ProFTPD 的配置文件），</p>
<p><code>TransferRate RETR, STOR 50</code>表示对所有的上传下载限速为50KB</p>
<p><code>TransferRate RETR 100<br />
TransferRate STOR 80</code>表示对所有下载限速100KB，对所有上传限速80KB<br />
<span id="more-176"></span><br />
<code>TransferRate RETR 100:52428800</code>表示对下载50M以下的文件不限速，超过50M了才限速。这里，52428800的单位是Byte。这个可以用来限制大文件的下载，很实用哦。^0^</p>
<p><span style="color: #ff0000;">注：TransferRate 指令在 ProFTPD 1.2.8rc1及以后版本有效。</span></p>
<p>2、连接数的设置也是很重要的。ProFTPD 可以进行的设置也丰富。</p>
<p><code>MaxClients 10</code>表示FTP连接数最大为10</p>
<p><code>MaxClientsPerHost 10</code>表示每个客户端到FTP服务器的连接数为10</p>
<p><code>MaxClientsPerUser 10</code>表示每个Userid到FTP服务器的连接数为10</p>
<p>经过合理的设置，FTP就能更好地工作，不至于影响到其它依赖网页的服务。</p>
]]></content:encoded>
			<wfw:commentRss>http://goto8848.net/2008/07/set-limit-in-proftpd/feed/</wfw:commentRss>
		</item>
		<item>
		<title>Custom Smilies 2.0</title>
		<link>http://goto8848.net/2008/05/custom-smilies-20/</link>
		<comments>http://goto8848.net/2008/05/custom-smilies-20/#comments</comments>
		<pubDate>Fri, 30 May 2008 14:42:29 +0000</pubDate>
		<dc:creator>Crazy Loong</dc:creator>
		
		<category><![CDATA[WordPress]]></category>

		<category><![CDATA[服务器技术]]></category>

		<category><![CDATA[custom]]></category>

		<category><![CDATA[plugin]]></category>

		<category><![CDATA[smilies]]></category>

		<category><![CDATA[插件]]></category>

		<category><![CDATA[自定义]]></category>

		<category><![CDATA[表情]]></category>

		<guid isPermaLink="false">http://goto8848.net/?p=164</guid>
		<description><![CDATA[文章太长，点击进入浏览（click to see the whole post）。中文在下面。这是一个表情插件。
About It
Custom Smilies (previously named Custom Smileys) is a plugin for WordPress 2.0+. This plugin gives you a chance to personalize your posts and comments using smilies of your choice instead of default ones.
Custom Smilies (older than version  2.0) is written by QAD. Thanks for his great contribution.
The lastest version [...]]]></description>
			<content:encoded><![CDATA[<p><span style="color: #ff0000;">文章太长，<a title="custom-smilies-20" href="http://goto8848.net/2008/05/custom-smilies-20/" target="_self">点击进入浏览（click to see the whole post）</a>。中文在下面。这是一个表情插件。</span></p>
<p><strong>About It</strong></p>
<p><strong>Custom Smilies</strong> (previously named Custom Smileys) is a plugin for WordPress 2.0+. This plugin gives you a chance to personalize your posts and comments using smilies of your choice instead of default ones.</p>
<p>Custom Smilies (older than version  2.0) is written by QAD. Thanks for his great contribution.</p>
<p>The lastest version is 2.0. I have upgrade it to let it been compatible with WordPress 2.5 or greater. That&#8217;s all I do, but I will perfect it in the future. So the most is written by QAD. Thanks him again.</p>
<p>You can see <a title="custom-smilies" href="http://onetruebrace.com/2007/11/28/custom-smilies/" target="_blank">the English Readme and more here ( new window)</a> .</p>
<p><strong>Download</strong></p>
<p>You can get the latest version of Custom Smilies here.<span style="font-size: 18px;"> <a title="Custom Smilies" href="http://wpcn.googlecode.com/files/custom-smilies-2.0.zip">Get it</a></span><br />
<span id="more-164"></span><strong>How to install</strong></p>
<ol>
<li>Download and extract <em>custom-smilies.zip</em>; then, upload <em>init.php</em> and <em>custom-smilies.php</em> to the <em>/wp-content/plugins/custom-smilies</em> directory. Upload <em>smilies</em> folder to the /wp-includes/images directory..</li>
<li>Activate Custom Smilies in your Admin Panel</li>
<li>Put your smilies in smilies folder (<em>wp-includes/images/smilies/</em>)</li>
<li>Change the emoticons by navigating to <em>Manage &gt; Smilies </em>and complete the form</li>
<li>If you want to add clickable smilies to your comment form, append these lines to your current theme’s <em>comments.php </em>file, just before the form begins:<code class="php">&lt;?php if ( function_exists(cs_print_smilies) ) {cs_print_smilies();} ?&gt;</code></li>
</ol>
<p>For ‘Paged Comments’ plugin’s users: Please place that code in wp-content/plugins/paged-comments/themes/your-theme-name/comments-paged.php to enable those clickable smilies.Please note that you can customize this list by going to Options &gt; Smilies.Wanna play with the smilies yourself? A function called cs_all_smilies() has been added, which return all the smilies you’ve got in this format: Array (’Smilie’ =&gt; ‘Path to smilie’)</p>
<p><strong>How to upgrade</strong></p>
<p>For Custom Smilies 1.0 and 1.1 users, simply replace the file <em>custom-smilies.php</em> in your plugins folder with the newer one. <strong>Do NOT overwrite <em>init.php</em>, as it contains your smilies’ definitions.</strong></p>
<p>For those who are still using Custom Smileys version 2.4 (which was released more than 1 year ago!), you can upgrade it to the lastest version by following this procedure:</p>
<ol>
<li>Backup your database! (better safe than sorry - i’m not responsible for any data loss caused by this plugin)</li>
<li>Move all of your smilies to your smilies folder (<em>wp-includes/images/smilies/</em>)</li>
<li>Deactivate Custom Smileys 2.4 without uninstalling it</li>
<li>Download, extract, then upload Custom Smilies 1.0 to your blog</li>
<li>Activate Custom Smilies 1.0 in your Admin Panel</li>
<li>Delete <em>custom-smileys.php</em> if you wish</li>
</ol>
<p><strong>关于这个插件</strong></p>
<p>Custom Smilies 是一个 WordPress 插件。它可以让你自由地在你的文章和评论中使用表情来代替默认的表情。</p>
<p>Custom Smilies 最新的版本是 2.0。我修改了以前的版本，使它可以工作在 WordPress 2.5 下。</p>
<p><strong>人员名单</strong></p>
<p>Custom Smilies 2.0 是我（<a title="aboutme" href="http://goto8848.net/about">Crazy Loong</a>）更新的。2.0以前的版本是由 <a title="QAD" href="http://onetruebrace.com" target="_blank">QAD</a> 编写的。</p>
<p>安装 Custom Smilies 后，你可以把自己需要的表情添加到 WordPress 的表情文件夹里（<em>wp-includes/images/smilies/</em>），然后在 <em>Manage &gt; Smilies </em>里添加表情对应的字符。非常简单哦。</p>
<p><a href="http://goto8848.net/wordpress/wp-content/uploads/2008/05/screenshot-1.jpg"><img class="alignnone size-full wp-image-165" title="screenshot-1" src="http://goto8848.net/wordpress/wp-content/uploads/2008/05/screenshot-1.jpg" alt="" width="450" /></a></p>
<p>设置好以后，这些表情就可以在任何文章、页面和评论里使用了。例如，当你输入 :D, :), :|（你可以自己定义这些符号）时，就会在文章出现对应的表情。或者，通过在点击相应的图标来插入到文章中。</p>
<p><a href="http://goto8848.net/wordpress/wp-content/uploads/2008/05/screenshot-2.jpg"><img class="alignnone size-full wp-image-166" title="screenshot-2" src="http://goto8848.net/wordpress/wp-content/uploads/2008/05/screenshot-2.jpg" alt="" width="450" /></a></p>
<p>你还可以添加这些表情列表到你的评论框周围。这样，你就可以进行可视化操作了，并在评论中方便的使用表情。而且，这个列表可以根据你的需要进行调整，以满足你的要求：</p>
<p><img class="alignnone size-full wp-image-167" title="screenshot-3" src="http://goto8848.net/wordpress/wp-content/uploads/2008/05/screenshot-3.png" alt="" width="450" height="308" /></p>
<p><strong>下载</strong></p>
<p><span style="font-size: 18px;"><a title="Custom Smilies" href="http://wpcn.googlecode.com/files/custom-smilies-2.0.zip">点击这里下载</a></span></p>
]]></content:encoded>
			<wfw:commentRss>http://goto8848.net/2008/05/custom-smilies-20/feed/</wfw:commentRss>
		</item>
		<item>
		<title>XML-RPC</title>
		<link>http://goto8848.net/2008/04/xml-rpc/</link>
		<comments>http://goto8848.net/2008/04/xml-rpc/#comments</comments>
		<pubDate>Mon, 21 Apr 2008 13:25:37 +0000</pubDate>
		<dc:creator>Crazy Loong</dc:creator>
		
		<category><![CDATA[代码研究]]></category>

		<category><![CDATA[RPC]]></category>

		<category><![CDATA[WLW]]></category>

		<category><![CDATA[WordPress]]></category>

		<category><![CDATA[XML]]></category>

		<category><![CDATA[XML-RPC]]></category>

		<guid isPermaLink="false">http://goto8848.net/?p=161</guid>
		<description><![CDATA[XML-RPC（XML Remote Procedure Call，即 XML 远程方法调用）是一套跨平台的、基于 Internet 过程的规范和实现。XML-RPC 采用 http 作为传输协议，XML作为信息的编码格式，简单高效，能够传送、处理、返回复杂的数据结构。工作流程如下图所示（点击缩略图看大图）：

数据编码成 XML 格式，通过 http 协议传输到另一台主机，然后解码 XML 还原数据。XML-RPC 是典型的 C/S 结构，一次实现应该包括 RPC Client 和 RPC Server 两个部分。不过，从理论上讲，XML-RPC 的 Client 和 Server 可以任意搭配。
更多的文档，大家可以去 XML-RPC 官方网站查询。
XML-RPC 是一个伟大的东西，它的跨平台特性和语言无关性，让我们的远程调用更加简单。我们通过 WLW（Windows Live Writer）发表 Blog 文章就是典型的 XML-RPC 应用。
PS：下一次，我将介绍 XML-RPC 在 WordPress 上的具体应用。
]]></description>
			<content:encoded><![CDATA[<p><a title="XML-RPC" href="http://www.xmlrpc.com/" target="_blank">XML-RPC</a>（XML Remote Procedure Call，即 XML 远程方法调用）是一套跨平台的、基于 Internet 过程的规范和实现。XML-RPC 采用 http 作为传输协议，XML作为信息的编码格式，简单高效，能够传送、处理、返回复杂的数据结构。工作流程如下图所示（点击缩略图看大图）：</p>
<p><a class="thickbox" href="http://goto8848.net/wordpress/wp-content/uploads/2008/04/xml-rpc.jpg"><img class="alignnone size-medium wp-image-162" title="xml-rpc" src="http://goto8848.net/wordpress/wp-content/uploads/2008/04/xml-rpc-300x153.jpg" alt="XML-RPC" width="300" height="153" /></a></p>
<p>数据编码成 XML 格式，通过 http 协议传输到另一台主机，然后解码 XML 还原数据。XML-RPC 是典型的 C/S 结构，一次实现应该包括 RPC Client 和 RPC Server 两个部分。不过，从理论上讲，XML-RPC 的 Client 和 Server 可以任意搭配。</p>
<p>更多的文档，大家可以去 <a title="XML-RPC" href="http://www.xmlrpc.com/" target="_blank">XML-RPC 官方网站</a>查询。</p>
<p>XML-RPC 是一个伟大的东西，它的跨平台特性和语言无关性，让我们的远程调用更加简单。我们通过 <a title="Windows Live Writer" href="http://writer.live.com/" target="_blank">WLW</a><a title="Windows Live Writer" href="http://writer.live.com/" target="_blank">（Windows Live Writer）</a>发表 Blog 文章就是典型的 XML-RPC 应用。</p>
<p>PS：下一次，我将介绍 XML-RPC 在 WordPress 上的具体应用。</p>
]]></content:encoded>
			<wfw:commentRss>http://goto8848.net/2008/04/xml-rpc/feed/</wfw:commentRss>
		</item>
		<item>
		<title>让 WordPress 通过 SMTP 发送邮件</title>
		<link>http://goto8848.net/2008/04/%e8%ae%a9-wordpress-%e9%80%9a%e8%bf%87-smtp-%e5%8f%91%e9%80%81%e9%82%ae%e4%bb%b6/</link>
		<comments>http://goto8848.net/2008/04/%e8%ae%a9-wordpress-%e9%80%9a%e8%bf%87-smtp-%e5%8f%91%e9%80%81%e9%82%ae%e4%bb%b6/#comments</comments>
		<pubDate>Fri, 18 Apr 2008 03:53:13 +0000</pubDate>
		<dc:creator>Crazy Loong</dc:creator>
		
		<category><![CDATA[WordPress]]></category>

		<category><![CDATA[email]]></category>

		<category><![CDATA[SMTP]]></category>

		<category><![CDATA[不能发送]]></category>

		<category><![CDATA[邮件]]></category>

		<guid isPermaLink="false">http://goto8848.net/?p=159</guid>
		<description><![CDATA[版权声明：原创文章，转载请注明出处，Crazy Loong(http://goto8848.net)
“我怎么收不到我blog的注册邮件啊？”
&#8220;为什么我的 WordPress 发不出邮件呢？&#8221;
……
以上这些问题是 WordPress 使用者经常碰到的问题，同时也是十分棘手的问题。为什么这么说呢？因为 WordPress 在用户注册时，是通过 Email 把初始密码发给注册用户的；而且，WordPress 很多时候也是通过 Email 来发送一些信息给博主的，比如有人在你 blog 留言了。可见，WordPress 无法发送邮件，是多么可悲的一件事啊！
接下来就是重点了，为什么邮件无法发送呢？WordPress 默认的发送邮件的方式是使用 PHP 中的 mail() 函数，而mail()函数使用的确是 *nix 的Sendmail。大多数无法发送邮件的原因就在于此。可想而知，国内广大的WIN主机用户是多么的憋闷。
难道就素手无策了？当然不是了，事情总有解决的方法。感谢伟大的 PHPer 们，因为我们有 PHPMailer （介绍见这里）。更令我们高兴的事儿是 WordPress 已经集成了 PHPMailer ，有经验的 WPer 可以直接修改 wp_mail() 函数，将其发送方式修改成 SMTP 方式（具体方法请自行查阅）。对于大多数 WPer 来说，这显然不是一个好方法（废话ing）。这个时候，WordPress 丰富的插件优势又体现出来了，下面，我就介绍三个插件给大家，这也是我推荐的解决问题的方法。
1、Configure SMTP &#124; 点击下载

2、WP Mail SMTP &#124; 点击下载

3、Swift SMTP Plugin &#124; 点击下载

前两个使用的是 PHPMailer 类，而后一个使用的 Swift （另一个有名的 [...]]]></description>
			<content:encoded><![CDATA[<p><span style="color: #ff0000;">版权声明：原创文章，转载请注明出处，Crazy Loong(http://goto8848.net)</span></p>
<p>“我怎么收不到我blog的注册邮件啊？”<br />
&#8220;为什么我的 WordPress 发不出邮件呢？&#8221;<br />
……</p>
<p>以上这些问题是 WordPress 使用者经常碰到的问题，同时也是十分棘手的问题。为什么这么说呢？因为 WordPress 在用户注册时，是通过 Email 把初始密码发给注册用户的；而且，WordPress 很多时候也是通过 Email 来发送一些信息给博主的，比如有人在你 blog 留言了。可见，WordPress 无法发送邮件，是多么可悲的一件事啊！</p>
<p>接下来就是重点了，为什么邮件无法发送呢？WordPress 默认的发送邮件的方式是使用 PHP 中的 mail() 函数，而mail()函数使用的确是 *nix 的Sendmail。大多数无法发送邮件的原因就在于此。可想而知，国内广大的WIN主机用户是多么的憋闷。</p>
<p>难道就素手无策了？当然不是了，事情总有解决的方法。感谢伟大的 PHPer 们，因为我们有 PHPMailer （<a title="PHPMailer" href="http://goto8848.net/2008/04/phpmailer/">介绍见这里</a>）。更令我们高兴的事儿是 WordPress 已经集成了 PHPMailer ，有经验的 WPer 可以直接修改 wp_mail() 函数，将其发送方式修改成 SMTP 方式（具体方法请自行查阅）。对于大多数 WPer 来说，这显然不是一个好方法（废话ing）。这个时候，WordPress 丰富的插件优势又体现出来了，下面，我就介绍三个插件给大家，这也是我推荐的解决问题的方法。<span id="more-159"></span></p>
<p>1、<a title="Configure SMTP" href="http://coffee2code.com/wp-plugins/configure-smtp/" target="_blank">Configure SMTP</a> | <a title="Configure SMTP" href="http://coffee2code.com/wp-plugins/configure-smtp/">点击下载</a></p>
<p><a class="thickbox" href="http://coffee2code.com/wp-content/uploads/configure-smtp-screenshot-1.png"><img class="alignnone" src="http://coffee2code.com/wp-content/uploads/configure-smtp-screenshot-1.png" alt="configure-smtp-screenshot" width="400" /></a></p>
<p>2、<a title="WP Mail SMTP" href="http://wordpress.org/extend/plugins/wp-mail-smtp/" target="_blank">WP Mail SMTP</a> | <a title="WP Mail SMTP" href="http://downloads.wordpress.org/plugin/wp-mail-smtp.0.5.2.zip">点击下载</a></p>
<p><a class="thickbox" href="http://wordpress.org/extend/plugins/wp-mail-smtp/screenshot-1.png"><img class="alignnone" src="http://wordpress.org/extend/plugins/wp-mail-smtp/screenshot-1.png" alt="wp-mail-smtp-screenshot" width="400" /></a></p>
<p>3、<a title="Swift SMTP Plugin" href="http://www.shiftthis.net/wordpress-swift-smtp-plugin/" target="_blank">Swift SMTP Plugin</a> | <a title="Swift SMTP Plugin" href="http://www.shiftthis.net/wp-content/uploads/swift-smtp.1.0.zip">点击下载</a></p>
<p><a class="thickbox" href="http://www.shiftthis.net/wp-content/uploads/2007/06/screenshot-1.png"><img class="alignnone" src="http://www.shiftthis.net/wp-content/uploads/2007/06/screenshot-1.png" alt="swift-smtp.1.0-screenshot" width="400" /></a></p>
<p>前两个使用的是 <a title="PHPMailer" href="http://phpmailer.codeworxtech.com/" target="_blank">PHPMailer</a> 类，而后一个使用的 <a title="Swift" href="http://www.swiftmailer.org/" target="_blank">Swift</a> （另一个有名的 Mailer 类）。</p>
<p>我相信这三个插件中，无论哪一个，都足以帮助大家解决无法发送邮件的问题。有什么不明白的，可以在下面留言给我。</p>
]]></content:encoded>
			<wfw:commentRss>http://goto8848.net/2008/04/%e8%ae%a9-wordpress-%e9%80%9a%e8%bf%87-smtp-%e5%8f%91%e9%80%81%e9%82%ae%e4%bb%b6/feed/</wfw:commentRss>
		</item>
		<item>
		<title>PHPMailer</title>
		<link>http://goto8848.net/2008/04/phpmailer/</link>
		<comments>http://goto8848.net/2008/04/phpmailer/#comments</comments>
		<pubDate>Tue, 15 Apr 2008 02:18:55 +0000</pubDate>
		<dc:creator>Crazy Loong</dc:creator>
		
		<category><![CDATA[代码研究]]></category>

		<category><![CDATA[mail]]></category>

		<category><![CDATA[PHPMailer]]></category>

		<category><![CDATA[SMTP]]></category>

		<category><![CDATA[WordPress]]></category>

		<category><![CDATA[发送]]></category>

		<category><![CDATA[邮件]]></category>

		<guid isPermaLink="false">http://goto8848.net/?p=158</guid>
		<description><![CDATA[版权声明：原创文章，转载请注明出处，Crazy Loong(http://goto8848.net)
就如它的名字一样，PHPMailer 是一个使用 PHP 编写的邮件发送类，同时，PHPMailer 也是一个功能强大的类。
官方网站：http://phpmailer.codeworxtech.com/
PHPMailer 的主要特点有：
1、在邮件中包含多个 TO、CC、BCC 和 REPLY-TO。
2、平台应用广泛，支持的 SMTP 服务器包括 Sendmail、qmail、Postfix、Gmail、Imail、Exchange 等等。
3、支持嵌入图像，附件，HTML 邮件。
4、可靠的强大的调试功能。
5、支持 SMTP 认证。
6、自定义邮件头。
7、支持 8bit、base64、binary 和 quoted-printable 编码。
PHPMailer 的最新稳定版本是 2.0.0，大家可以从官方网站下载。
大家也许会问，PHP 不是已经内置了 mail() 函数了吗，为什么要用 PHPMailer 呢？确实，mail() 函数更快，但是，PHPMailer 却可以使发送邮件变得更加便捷，发送附件和 HTML 邮件也成为可能。同时，你可以使用你自己喜欢的 SMTP 服务器来发送邮件，而不是仅限于 *nix 平台（mail() 函数就有这个限制，对于广大 Win 主机用户来说，简直是噩梦）。总之，PHPMailer 能给你更加便捷的体验。
下面是使用 PHPMailer 类的简单例子。
require_once("class.phpmailer.php");

// 实例化 PHPMailer 类
$mail = new MyMailer;

// 填入最基本的参数
$mail-&#62;AddAddress("crazyloong@gmail.com", "Crazy Loong"); // 收件人
$mail-&#62;Subject = "Here [...]]]></description>
			<content:encoded><![CDATA[<p><span style="color: #ff0000;">版权声明：原创文章，转载请注明出处，Crazy Loong(http://goto8848.net)</span></p>
<p>就如它的名字一样，PHPMailer 是一个使用 PHP 编写的邮件发送类，同时，PHPMailer 也是一个功能强大的类。</p>
<p>官方网站：<a title="PHPMailer" href="http://phpmailer.codeworxtech.com/">http://phpmailer.codeworxtech.com/</a></p>
<p>PHPMailer 的主要特点有：</p>
<p>1、在邮件中包含多个 TO、CC、BCC 和 REPLY-TO。<br />
2、平台应用广泛，支持的 SMTP 服务器包括 Sendmail、qmail、Postfix、Gmail、Imail、Exchange 等等。<br />
3、支持嵌入图像，附件，HTML 邮件。<br />
4、可靠的强大的调试功能。<br />
5、支持 SMTP 认证。<br />
6、自定义邮件头。<br />
7、支持 8bit、base64、binary 和 quoted-printable 编码。</p>
<p>PHPMailer 的最新稳定版本是 2.0.0，大家可以从官方网站下载。</p>
<p>大家也许会问，PHP 不是已经内置了 mail() 函数了吗，为什么要用 PHPMailer 呢？确实，mail() 函数更快，但是，PHPMailer 却可以使发送邮件变得更加便捷，发送附件和 HTML 邮件也成为可能。同时，你可以使用你自己喜欢的 SMTP 服务器来发送邮件，而不是仅限于 *nix 平台（mail() 函数就有这个限制，对于广大 Win 主机用户来说，简直是噩梦）。总之，PHPMailer 能给你更加便捷的体验。<span id="more-158"></span></p>
<p>下面是使用 PHPMailer 类的简单例子。</p>
<pre><code class="php">require_once("class.phpmailer.php");

// 实例化 PHPMailer 类
$mail = new MyMailer;

// 填入最基本的参数
$mail-&gt;AddAddress("crazyloong@gmail.com", "Crazy Loong"); // 收件人
$mail-&gt;Subject = "Here is the subject"; // 邮件主题
$mail-&gt;Body = "This is the message body"; // 邮件内容
$mail-&gt;AddAttachment("c:/temp/11-10-00.zip", "new_name.zip");  // 附件设置，第一个参数是附件地址，第二个是附件名

if(!$mail-&gt;Send()) // 发送邮件
{
echo "There was an error sending the message";
exit;
}

echo "Message was sent successfully";</code></pre>
<p>例子很简单，但我相信足够让大家了解 PHPMailer 了。其它更高级的功能（图像嵌入、SMTP 认证等等）以后再继续介绍。</p>
<p>记住，<a title="PHPMailer 官方" href="http://phpmailer.codeworxtech.com/">官方文档</a>永远是你最好的老师，^0^。</p>
<p>PS：PHPMailer 已经集成在了 WordPress 中，我们可以很方便的使用它。</p>
]]></content:encoded>
			<wfw:commentRss>http://goto8848.net/2008/04/phpmailer/feed/</wfw:commentRss>
		</item>
		<item>
		<title>WordPress 插件 - ThickBox And LightBox for WordPress Gallery 发布</title>
		<link>http://goto8848.net/2008/04/wordpress-%e6%8f%92%e4%bb%b6-thickbox-and-lightbox-for-wordpress-gallery-%e5%8f%91%e5%b8%83/</link>
		<comments>http://goto8848.net/2008/04/wordpress-%e6%8f%92%e4%bb%b6-thickbox-and-lightbox-for-wordpress-gallery-%e5%8f%91%e5%b8%83/#comments</comments>
		<pubDate>Sat, 12 Apr 2008 19:35:55 +0000</pubDate>
		<dc:creator>Crazy Loong</dc:creator>
		
		<category><![CDATA[WordPress]]></category>

		<category><![CDATA[gallery]]></category>

		<category><![CDATA[Lightbox]]></category>

		<category><![CDATA[ThickBox]]></category>

		<category><![CDATA[插件]]></category>

		<guid isPermaLink="false">http://goto8848.net/?p=157</guid>
		<description><![CDATA[WordPress 2.5 也出来了，也自带了还算可以的相册，就是感觉缺少点显示效果。看来，我是比较喜欢给相册加效果。^0^
废话不多说了，大家直接看效果吧。点击这里看演示。下载和介绍，点击这里下载。
这个插件支持 ThickBox 和 Lightbox 两种显示效果。^o^
]]></description>
			<content:encoded><![CDATA[<p>WordPress 2.5 也出来了，也自带了还算可以的相册，就是感觉缺少点显示效果。看来，我是比较喜欢给相册加效果。^0^</p>
<p>废话不多说了，大家直接看效果吧。<a title="演示" href="http://goto8848.net/2008/04/%e5%be%88%e4%b9%85%e4%bb%a5%e5%89%8d%e7%9a%84cos%e7%85%a7/">点击这里看演示</a>。下载和介绍，<a title="介绍和下载" href="http://goto8848.net/projects/thickbox-and-lightbox-for-wordpress-gallery/">点击这里下载</a>。</p>
<p>这个插件支持 <a title="ThickBox" href="http://jquery.com/demo/thickbox/">ThickBox</a> 和 <a title="Lightbox" href="http://www.lokeshdhakar.com/projects/lightbox2/">Lightbox</a> 两种显示效果。^o^</p>
]]></content:encoded>
			<wfw:commentRss>http://goto8848.net/2008/04/wordpress-%e6%8f%92%e4%bb%b6-thickbox-and-lightbox-for-wordpress-gallery-%e5%8f%91%e5%b8%83/feed/</wfw:commentRss>
		</item>
		<item>
		<title>很久以前的COS照</title>
		<link>http://goto8848.net/2008/04/%e5%be%88%e4%b9%85%e4%bb%a5%e5%89%8d%e7%9a%84cos%e7%85%a7/</link>
		<comments>http://goto8848.net/2008/04/%e5%be%88%e4%b9%85%e4%bb%a5%e5%89%8d%e7%9a%84cos%e7%85%a7/#comments</comments>
		<pubDate>Thu, 10 Apr 2008 15:58:01 +0000</pubDate>
		<dc:creator>Crazy Loong</dc:creator>
		
		<category><![CDATA[未分类]]></category>

		<category><![CDATA[cosplay]]></category>

		<guid isPermaLink="false">http://goto8848.net/?p=152</guid>
		<description><![CDATA[
其实主要是想测试一下2.5自带的相册功能，呵呵。看来还不错，考虑加上ThickBox效果，哈哈。
Update 2008-04-15 - 0:39 am：
已使用 ThickBox And LightBox for WordPress Gallery 插件，现在已经是ThickBox效果了。
]]></description>
			<content:encoded><![CDATA[
<a href='http://goto8848.net/2008/04/%e5%be%88%e4%b9%85%e4%bb%a5%e5%89%8d%e7%9a%84cos%e7%85%a7/attachment/6/' title='6'><img src="http://goto8848.net/wordpress/wp-content/uploads/2008/04/6-150x150.jpg" width="150" height="150" class="attachment-thumbnail" alt="" /></a>
<a href='http://goto8848.net/2008/04/%e5%be%88%e4%b9%85%e4%bb%a5%e5%89%8d%e7%9a%84cos%e7%85%a7/attachment/7/' title='7'><img src="http://goto8848.net/wordpress/wp-content/uploads/2008/04/7-150x150.jpg" width="150" height="150" class="attachment-thumbnail" alt="" /></a>
<a href='http://goto8848.net/2008/04/%e5%be%88%e4%b9%85%e4%bb%a5%e5%89%8d%e7%9a%84cos%e7%85%a7/attachment/11/' title='11'><img src="http://goto8848.net/wordpress/wp-content/uploads/2008/04/11-150x150.jpg" width="150" height="150" class="attachment-thumbnail" alt="" /></a>
<a href='http://goto8848.net/2008/04/%e5%be%88%e4%b9%85%e4%bb%a5%e5%89%8d%e7%9a%84cos%e7%85%a7/attachment/12/' title='12'><img src="http://goto8848.net/wordpress/wp-content/uploads/2008/04/12-150x150.jpg" width="150" height="150" class="attachment-thumbnail" alt="" /></a>
<a href='http://goto8848.net/2008/04/%e5%be%88%e4%b9%85%e4%bb%a5%e5%89%8d%e7%9a%84cos%e7%85%a7/attachment/18/' title='18'><img src="http://goto8848.net/wordpress/wp-content/uploads/2008/04/18-150x150.jpg" width="150" height="150" class="attachment-thumbnail" alt="" /></a>
<a href='http://goto8848.net/2008/04/%e5%be%88%e4%b9%85%e4%bb%a5%e5%89%8d%e7%9a%84cos%e7%85%a7/attachment/23/' title='23'><img src="http://goto8848.net/wordpress/wp-content/uploads/2008/04/23-150x150.jpg" width="150" height="150" class="attachment-thumbnail" alt="" /></a>

<p>其实主要是想测试一下2.5自带的相册功能，呵呵。看来还不错，考虑加上ThickBox效果，哈哈。</p>
<p><span style="color: #ff0000;">Update 2008-04-15 - 0:39 am：</span></p>
<p><span style="color: #ff0000;">已使用 <a title="ThickBox And LightBox for WordPress Gallery" href="http://goto8848.net/projects/thickbox-and-lightbox-for-wordpress-gallery/">ThickBox And LightBox for WordPress Gallery</a> 插件，现在已经是ThickBox效果了。</span></p>
]]></content:encoded>
			<wfw:commentRss>http://goto8848.net/2008/04/%e5%be%88%e4%b9%85%e4%bb%a5%e5%89%8d%e7%9a%84cos%e7%85%a7/feed/</wfw:commentRss>
		</item>
		<item>
		<title>迄今为止最重要的18项开源应用</title>
		<link>http://goto8848.net/2008/04/%e8%bf%84%e4%bb%8a%e4%b8%ba%e6%ad%a2%e6%9c%80%e9%87%8d%e8%a6%81%e7%9a%8418%e9%a1%b9%e5%bc%80%e6%ba%90%e5%ba%94%e7%94%a8/</link>
		<comments>http://goto8848.net/2008/04/%e8%bf%84%e4%bb%8a%e4%b8%ba%e6%ad%a2%e6%9c%80%e9%87%8d%e8%a6%81%e7%9a%8418%e9%a1%b9%e5%bc%80%e6%ba%90%e5%ba%94%e7%94%a8/#comments</comments>
		<pubDate>Mon, 07 Apr 2008 18:26:27 +0000</pubDate>
		<dc:creator>Crazy Loong</dc:creator>
		
		<category><![CDATA[未分类]]></category>

		<category><![CDATA[应用]]></category>

		<category><![CDATA[开源]]></category>

		<category><![CDATA[重要]]></category>

		<guid isPermaLink="false">http://goto8848.net/?p=145</guid>
		<description><![CDATA[以下是《eWEEK》网站评选出来的迄今为止最重要的18项开源应用：
1 Apache
2 Linux Kernel
3 Nessus
4 Firefox
5 Perl
6 Wireshark
7 PHP
8 VNC
9 BSD
10 Webmin
11 Asterisk
12 Nmap
13 OpenOffice.org
14 MySQL
15 Nagios
16 Eclipse
17 Samba
18 OpenSSH and OpenSSL
PS：这个评选去年8月就出来，贴在这里，只是想展示一下。
]]></description>
			<content:encoded><![CDATA[<p>以下是《eWEEK》网站评选出来的迄今为止最重要的18项开源应用：</p>
<p>1 <a title="Apache" href="http://httpd.apache.org/" target="_blank">Apache</a><br />
2 <a title="Linux kernel" href="http://www.kernel.org/" target="_blank">Linux Kernel</a><br />
3 <a title="Nessus" href="http://www.nessus.org/nessus/" target="_blank">Nessus</a><br />
4 <a title="Firefox" href="http://www.mozilla.com/en-US/firefox/" target="_blank">Firefox</a><br />
5 <a title="Perl" href="http://www.perl.org/" target="_blank">Perl</a><br />
6 <a title="Wireshark" href="http://www.wireshark.org/">Wireshark</a><br />
7 <a title="PHP" href="http://www.php.net" target="_blank">PHP</a><br />
8 VNC<br />
9 BSD<br />
10 Webmin<br />
11 Asterisk<br />
12 Nmap<br />
13 OpenOffice.org<br />
14 <a title="MySQL" href="http://www.mysql.com/" target="_blank">MySQL</a><br />
15 Nagios<br />
16 Eclipse<br />
17 <a title="Samba" href="http://www.samba.org/" target="_blank">Samba</a><br />
18 OpenSSH and OpenSSL</p>
<p>PS：这个评选去年8月就出来，贴在这里，只是想展示一下。</p>
]]></content:encoded>
			<wfw:commentRss>http://goto8848.net/2008/04/%e8%bf%84%e4%bb%8a%e4%b8%ba%e6%ad%a2%e6%9c%80%e9%87%8d%e8%a6%81%e7%9a%8418%e9%a1%b9%e5%bc%80%e6%ba%90%e5%ba%94%e7%94%a8/feed/</wfw:commentRss>
		</item>
		<item>
		<title>WordPress 2.5 要拒绝IE了？</title>
		<link>http://goto8848.net/2008/03/wordpress-25-%e8%a6%81%e6%8b%92%e7%bb%9die%e4%ba%86/</link>
		<comments>http://goto8848.net/2008/03/wordpress-25-%e8%a6%81%e6%8b%92%e7%bb%9die%e4%ba%86/#comments</comments>
		<pubDate>Mon, 31 Mar 2008 00:47:13 +0000</pubDate>
		<dc:creator>Crazy Loong</dc:creator>
		
		<category><![CDATA[WordPress]]></category>

		<category><![CDATA[IE]]></category>

		<category><![CDATA[不兼容]]></category>

		<guid isPermaLink="false">http://goto8848.net/?p=143</guid>
		<description><![CDATA[在 WordPress 升级到2.5后，经过大家的试用，发现了一个严重的问题——对IE的支持完全不到位。
虽然IE不是那么标准，尤其是IE 6，但是IE毕竟是世界占有率第一的浏览器啊。但是，在2.5的后台，你会发现，使用IE是一件比较痛苦的事情。首当其冲的是，媒体添加的功能，在IE下（包括IE6,IE7在内）没法使用。其次，部分widget在添加之后无法移除。
不知道这是 WordPress 对 IE 的不满，还是由于 Browse Happy 的影响呢，更甚至于可能是2.5赶工的结果。不管如何，放弃对IE的良好支持，是不明智的，也是对广大 WPer 不负责的行为。
我想，WordPress.org 不会无视这种情况的存在。为了尽快解决这个问题，2.5.1也会很快出来的。大家又要准备升级了。^0^
]]></description>
			<content:encoded><![CDATA[<p>在 WordPress 升级到2.5后，经过大家的试用，发现了一个严重的问题——对IE的支持完全不到位。</p>
<p>虽然IE不是那么标准，尤其是IE 6，但是IE毕竟是世界占有率第一的浏览器啊。但是，在2.5的后台，你会发现，使用IE是一件比较痛苦的事情。首当其冲的是，媒体添加的功能，在IE下（包括IE6,IE7在内）没法使用。其次，部分widget在添加之后无法移除。</p>
<p>不知道这是 WordPress 对 IE 的不满，还是由于 <a title="browsehappy" href="http://browsehappy.com/" target="_blank">Browse Happy</a> 的影响呢，更甚至于可能是2.5赶工的结果。不管如何，放弃对IE的良好支持，是不明智的，也是对广大 WPer 不负责的行为。</p>
<p>我想，WordPress.org 不会无视这种情况的存在。为了尽快解决这个问题，2.5.1也会很快出来的。大家又要准备升级了。^0^</p>
]]></content:encoded>
			<wfw:commentRss>http://goto8848.net/2008/03/wordpress-25-%e8%a6%81%e6%8b%92%e7%bb%9die%e4%ba%86/feed/</wfw:commentRss>
		</item>
		<item>
		<title>很NB的话</title>
		<link>http://goto8848.net/2008/03/%e5%be%88nb%e7%9a%84%e8%af%9d/</link>
		<comments>http://goto8848.net/2008/03/%e5%be%88nb%e7%9a%84%e8%af%9d/#comments</comments>
		<pubDate>Fri, 29 Feb 2008 20:54:43 +0000</pubDate>
		<dc:creator>Crazy Loong</dc:creator>
		
		<category><![CDATA[乱七八糟]]></category>

		<category><![CDATA[nb]]></category>

		<guid isPermaLink="false">http://goto8848.net/2008/03/%e5%be%88nb%e7%9a%84%e8%af%9d/</guid>
		<description><![CDATA[鲁迅说：世上本没有路，走的了人多了，路也就来了
我说：世上本没有对错，选择对的人多了，错误也就来了
神说：我就是对的，所以反对我的都是错的
]]></description>
			<content:encoded><![CDATA[<p>鲁迅说：世上本没有路，走的了人多了，路也就来了</p>
<p>我说：世上本没有对错，选择对的人多了，错误也就来了</p>
<p>神说：我就是对的，所以反对我的都是错的</p>
]]></content:encoded>
			<wfw:commentRss>http://goto8848.net/2008/03/%e5%be%88nb%e7%9a%84%e8%af%9d/feed/</wfw:commentRss>
		</item>
	</channel>
</rss>
