﻿<?xml version="1.0" encoding="utf-8" standalone="yes"?><rss version="2.0" xmlns:dc="http://purl.org/dc/elements/1.1/" xmlns:trackback="http://madskills.com/public/xml/rss/module/trackback/" xmlns:wfw="http://wellformedweb.org/CommentAPI/" xmlns:slash="http://purl.org/rss/1.0/modules/slash/"><channel><title>博客园-深圳.NET俱乐部</title><link>http://shenzhen.cnblogs.com</link><description>深圳.NET俱乐部，致力于.NET技术传播和交流</description><language>zh-cn</language><lastBuildDate>Tue, 09 Feb 2010 22:41:59 GMT</lastBuildDate><pubDate>Tue, 09 Feb 2010 22:41:59 GMT</pubDate><ttl>60</ttl><item><title>理解依赖注入及其好处！</title><link>http://www.cnblogs.com/winsonet/archive/2010/02/09/1666204.html</link><dc:creator>w i n s o n</dc:creator><author>w i n s o n</author><pubDate>Tue, 09 Feb 2010 01:04:00 GMT</pubDate><guid>http://www.cnblogs.com/winsonet/archive/2010/02/09/1666204.html</guid><description><![CDATA[<p>阅读: 1424 评论: 19 作者: <a href="" target="_blank">w i n s o n</a> 发表于 2010-02-09 09:04 <a href="http://www.cnblogs.com/winsonet/archive/2010/02/09/1666204.html" target="_blank">原文链接</a></p><p>关于依赖注入我看园子里已早有人发过相关的文章了，只是主要都是从理论角度出发，是一些虚拟的例子，感觉要真正运用起来的话可能有些朋友还不太清楚，最近我在公司的项目中就遇到一个比较麻烦的问题，正好可以使用依赖注入来解决，所以顺便写下我的心得，也方便自己以后查阅<img src="http://www.cnblogs.com/Emoticons/qface/055242240.gif" alt="" />： <br /></p><p>&nbsp;</p><p>最近在公司的项目中，遇到的问题是：我们需要使用一个第三方写的一个的控件（open source的）来生成组织架构的Chart图，其中在chart图里需要显示员工的头像，在控件里只支持输入图片流以直接生成员工头像，而在我们项目里，只能直接引用了 webserver 后才可以调用获取头像图片的流数据，所以如果要使用此chart控件的话，就还需要在chart的项目里去引用我们自己的 webserver 以调用里面的方法，但这显然是不可行的，这个chart控件是一个完全独立的第三方控件，这样引用 webserver 的话耦合性太强了，万一以后 webserver 修改来，就必须重新编译那个控件的DLL，所以只好另想办法了 <br /></p><br />这时我就想到了一个非常适合的设计模式，就是依赖注入，它能消除组件间的直接依赖关系，让组件的开发更独立，使用更灵活。依赖注入主要有以下几种：包括接口注入、构造函数注入和属性注入。<br /><br />以下我就是使用接口注入来解决上述问题的：<br />1、先创建一个接口，实现具体需要调用的功能：<br /><div class="cnblogs_code"><div><!--<br/ /><br/ />Code highlighting produced by Actipro CodeHighlighter (freeware)<br/ />http://www.CodeHighlighter.com/<br/ /><br/ />--><span style="color: #000000;">&nbsp;</span><span style="color: #0000ff;">public</span><span style="color: #000000;">&nbsp;</span><span style="color: #0000ff;">interface</span><span style="color: #000000;">&nbsp;IGetImageProvider<br />&nbsp;{<br />&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;Stream&nbsp;ReadFileToMemoryStream(</span><span style="color: #0000ff;">string</span><span style="color: #000000;">&nbsp;empNo);&nbsp;</span><span style="color: #008000;">//</span><span style="color: #008000;">一个获取图片的方法，此方法需调用&nbsp;webserver&nbsp;里相关函数完成的，这里利用接口先创建方法的定义</span><span style="color: #008000;"><br /></span><span style="color: #000000;">&nbsp;}</span></div></div><br /><br />2、创建一个注入用的接口，实现2个控件间的依赖：<br /><div class="cnblogs_code"><div><!--<br/ /><br/ />Code highlighting produced by Actipro CodeHighlighter (freeware)<br/ />http://www.CodeHighlighter.com/<br/ /><br/ />--><span style="color: #0000ff;">public</span><span style="color: #000000;">&nbsp;</span><span style="color: #0000ff;">interface</span><span style="color: #000000;">&nbsp;IGetImageMgr<br />{<br />&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;</span><span style="color: #0000ff;">void</span><span style="color: #000000;">&nbsp;InjectImage(IGetImageProvider&nbsp;getImage);</span><span style="color: #008000;">//</span><span style="color: #008000;">依赖注入的方法，让2个控件间的联系起来了</span><span style="color: #008000;"><br /></span><span style="color: #000000;">}</span></div></div><br /><br />3、为独立的 chart 控件项目继承 IGetImageMgr 接口，然后实现 InjectImage 方法：<br /><div class="cnblogs_code" onclick="cnblogs_code_show('7b6359cc-72de-4a4d-a81c-5c9d387b93e4')"><img src="http://images.cnblogs.com/OutliningIndicators/ContractedBlock.gif" class="code_img_closed" id="code_img_closed_7b6359cc-72de-4a4d-a81c-5c9d387b93e4" style="display: none;" alt="" /><img src="http://images.cnblogs.com/OutliningIndicators/ExpandedBlockStart.gif" class="code_img_opened" id="code_img_opened_7b6359cc-72de-4a4d-a81c-5c9d387b93e4" onclick="cnblogs_code_hide('7b6359cc-72de-4a4d-a81c-5c9d387b93e4',event)"><span class="cnblogs_code_collapse">代码</span><div id="cnblogs_code_open_7b6359cc-72de-4a4d-a81c-5c9d387b93e4"><div><!--<br/ /><br/ />Code highlighting produced by Actipro CodeHighlighter (freeware)<br/ />http://www.CodeHighlighter.com/<br/ /><br/ />--><span style="color: #0000ff;">private</span><span style="color: #000000;">&nbsp;IGetImageProvider&nbsp;getImage;</span><span style="color: #008000;">//</span><span style="color: #008000;">定义&nbsp;IGetImageProvider&nbsp;接口，以实现&nbsp;webserver&nbsp;的方法</span><span style="color: #008000;"><br /></span><span style="color: #000000;"><br /></span><span style="color: #0000ff;">public</span><span style="color: #000000;">&nbsp;</span><span style="color: #0000ff;">void</span><span style="color: #000000;">&nbsp;InjectImage(IGetImageProvider&nbsp;getImage)<br />{<br />&nbsp;&nbsp;&nbsp;&nbsp;</span><span style="color: #0000ff;">this</span><span style="color: #000000;">.getImage&nbsp;</span><span style="color: #000000;">=</span><span style="color: #000000;">&nbsp;getImage;&nbsp;</span><span style="color: #008000;">//</span><span style="color: #008000;">实现&nbsp;IGetImageMgr&nbsp;接口的注入方法，这步是最主要的，有了这个从而就实现&nbsp;webserver&nbsp;里的方法了</span><span style="color: #008000;"><br /></span><span style="color: #000000;">}</span></div></div></div><p><br /></p>4、在&nbsp; chart项目里调用上而的接口方法，以获取图片信息，然后进行处理：<br /><div class="cnblogs_code"><div><!--<br/ /><br/ />Code highlighting produced by Actipro CodeHighlighter (freeware)<br/ />http://www.CodeHighlighter.com/<br/ /><br/ />--><span style="color: #000000;">Stream&nbsp;imageStream&nbsp;</span><span style="color: #000000;">=</span><span style="color: #000000;">&nbsp;getImage.ReadFileToMemoryStream(</span><span style="color: #800000;">"</span><span style="color: #800000;">0001</span><span style="color: #800000;">"</span><span style="color: #000000;">);</span><span style="color: #008000;">//</span><span style="color: #008000;">直接调用接口方法，此方法将会实现&nbsp;webserver&nbsp;里的相关函数的功能，这样就不需要引用&nbsp;webserver&nbsp;也能独立完成了。</span></div></div><br /><br />OK，完成了独立控件里的代码，现在在项目里引用此控件的DLL，然后创建一个类以实现 IGetImageProvider 接口，为2个项目间创建联系：<br />1、创建一个 GetImage 类，继承 IGetImageProvider 接口，这时就可真正实现里面的获取图片的方法了：<br /><div class="cnblogs_code"><div><!--<br/ /><br/ />Code highlighting produced by Actipro CodeHighlighter (freeware)<br/ />http://www.CodeHighlighter.com/<br/ /><br/ />--><span style="color: #0000ff;">public</span><span style="color: #000000;">&nbsp;</span><span style="color: #0000ff;">class</span><span style="color: #000000;">&nbsp;GetImage&nbsp;:&nbsp;IGetImageProvider<br />{<br />&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;</span><span style="color: #0000ff;">public</span><span style="color: #000000;">&nbsp;Stream&nbsp;ReadFileToMemoryStream(</span><span style="color: #0000ff;">string</span><span style="color: #000000;">&nbsp;empNo)<br />&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;{&nbsp;</span><span style="color: #008000;">//</span><span style="color: #008000;">do&nbsp;something....&nbsp;}</span><span style="color: #008000;"><br /></span><span style="color: #000000;">}</span></div></div><br />2、实例化 IGetImageProvider 接口和 chart 控件，完成依赖注入的调用：<br /><div class="cnblogs_code" onclick="cnblogs_code_show('612089d4-d2ca-4dd2-af89-157e9f79f2bd')"><img src="http://images.cnblogs.com/OutliningIndicators/ContractedBlock.gif" class="code_img_closed" id="code_img_closed_612089d4-d2ca-4dd2-af89-157e9f79f2bd" style="display: none;" alt="" /><img src="http://images.cnblogs.com/OutliningIndicators/ExpandedBlockStart.gif" class="code_img_opened" id="code_img_opened_612089d4-d2ca-4dd2-af89-157e9f79f2bd" onclick="cnblogs_code_hide('612089d4-d2ca-4dd2-af89-157e9f79f2bd',event)"><span class="cnblogs_code_collapse">代码</span><div id="cnblogs_code_open_612089d4-d2ca-4dd2-af89-157e9f79f2bd"><div><!--<br/ /><br/ />Code highlighting produced by Actipro CodeHighlighter (freeware)<br/ />http://www.CodeHighlighter.com/<br/ /><br/ />--><span style="color: #000000;">IGetImageProvider&nbsp;getimage&nbsp;</span><span style="color: #000000;">=</span><span style="color: #000000;">&nbsp;</span><span style="color: #0000ff;">new</span><span style="color: #000000;">&nbsp;GetImage();</span><span style="color: #008000;">//</span><span style="color: #008000;">创建接口对象</span><span style="color: #008000;"><br /></span><span style="color: #000000;"><br />OrgChart&nbsp;myOrgChart&nbsp;</span><span style="color: #000000;">=</span><span style="color: #000000;">&nbsp;</span><span style="color: #0000ff;">new</span><span style="color: #000000;">&nbsp;OrgChart();</span><span style="color: #008000;">//</span><span style="color: #008000;">创建&nbsp;chart&nbsp;控件对象</span><span style="color: #008000;"><br /></span><span style="color: #000000;"><br />myOrgChart.InjectImage(getimage);&nbsp;</span><span style="color: #008000;">//</span><span style="color: #008000;">以接口注入方式为&nbsp;chart&nbsp;控件的对象赋值以达到依赖注入的效果，这时就可直接在&nbsp;chart&nbsp;控件内部直接调用&nbsp;IGetImageProvider&nbsp;接口的实现方法了</span></div></div></div><p>&nbsp;</p><p>以过以上的调用后，就可以让2个项目之间解耦合，让开发出来的控件更加独立，而且方便扩展 <img src="http://www.cnblogs.com/Emoticons/qface/055243929.gif" alt="" /></p><img src="aggbug/1666204.html?type=0" width="1" height="1" alt=""/><p>评论: 19　<a href="http://www.cnblogs.com/winsonet/archive/2010/02/09/1666204.html#pagedcomment" target="_blank">查看评论</a>　<a href="http://www.cnblogs.com/winsonet/archive/2010/02/09/1666204.html#commentform" target="_blank">发表评论</a></p><hr/><p>最新新闻：<br/>· <a href="http://news.cnblogs.com/n/56793/" target="_blank">知名扩展 Firebug 的简化版登陆 Chrome</a><span style="color:gray">(2010-02-09 22:59)</span><br/>· <a href="http://news.cnblogs.com/n/56792/" target="_blank">Google 悄悄地启用 1e100.net，打枪地不要</a><span style="color:gray">(2010-02-09 22:57)</span><br/>· <a href="http://news.cnblogs.com/n/56791/" target="_blank">从 Google 代码库找到的好东西</a><span style="color:gray">(2010-02-09 22:46)</span><br/>· <a href="http://news.cnblogs.com/n/56789/" target="_blank">苹果在线商店临时关闭 或将推新Macbook</a><span style="color:gray">(2010-02-09 22:39)</span><br/>· <a href="http://news.cnblogs.com/n/56788/" target="_blank">豆瓣网推出豆瓣电台iPhone客户端</a><span style="color:gray">(2010-02-09 21:51)</span><br/></p><p>编辑推荐：<a href="http://news.cnblogs.com/n/56782/" target="_blank">2010年2月编程语言排行榜</a><br/></p><p>网站导航：<a href="http://www.cnblogs.com" target="_blank">博客园首页</a>&nbsp;&nbsp;<a href="http://home.cnblogs.com/" target="_blank">个人主页</a>&nbsp;&nbsp;<a href="http://news.cnblogs.com" target="_blank">新闻</a>&nbsp;&nbsp;<a href="http://home.cnblogs.com/ing/" target="_blank">闪存</a>&nbsp;&nbsp;<a href="http://home.cnblogs.com/group/" target="_blank">小组</a>&nbsp;&nbsp;<a href="http://space.cnblogs.com/q/" target="_blank">博问</a>&nbsp;&nbsp;<a href="http://space.cnblogs.com" target="_blank">社区</a>&nbsp;&nbsp;<a href="http://kb.cnblogs.com" target="_blank">知识库</a></p>]]></description></item><item><title>依赖注入容器Autofac</title><link>http://www.cnblogs.com/shanyou/archive/2010/02/07/1665451.html</link><dc:creator>geff zhang</dc:creator><author>geff zhang</author><pubDate>Sun, 07 Feb 2010 09:03:00 GMT</pubDate><guid>http://www.cnblogs.com/shanyou/archive/2010/02/07/1665451.html</guid><description><![CDATA[<p>阅读: 277 评论: 2 作者: <a href="" target="_blank">geff zhang</a> 发表于 2010-02-07 17:03 <a href="http://www.cnblogs.com/shanyou/archive/2010/02/07/1665451.html" target="_blank">原文链接</a></p><p>在.NET上现在存在许多的<a href="http://www.hanselman.com/blog/ListOfNETDependencyInjectionContainersIOC.aspx" target="_blank">依赖注入容器</a>, 我也在实践中使用过<a href="http://www.castleproject.org/container/index.html" target="_blank"><strong>Castle Windsor</strong></a>、<a href="http://structuremap.sourceforge.net/" target="_blank"><strong>StructureMap</strong></a><strong>、</strong><a href="http://code.google.com/p/autofac/" target="_blank"><strong>Autofac</strong></a><strong> 、</strong><a href="http://codeplex.com/unity" target="_blank"><strong>Unity</strong></a><strong>。</strong>这些容器的简要介绍可以参看：</p>
<h4><a href="http://geekswithblogs.net/Sharpoverride/archive/2009/08/15/ioc-in-.net-part-1-autofac.aspx" target="_blank">IoC in .NET part 1: Autofac</a></h4>
<h4><a href="http://geekswithblogs.net/Sharpoverride/archive/2009/08/16/ioc-in-.net-part2-structuremap.aspx" target="_blank">IoC in .NET part2: StructureMap</a></h4>
<p><a href="http://geekswithblogs.net/Sharpoverride/archive/2009/08/17/ioc-in-.net-part-3-ninject-2-beta.aspx" target="_blank">IoC in .NET part 3: Ninject 2 beta</a></p>
<p><a href="http://geekswithblogs.net/Sharpoverride/archive/2009/08/18/ioc-in-.net-part4-spring.net.aspx" target="_blank">IoC in .NET part4: Spring.NET</a></p>
<h4><a href="http://geekswithblogs.net/Sharpoverride/archive/2009/08/17/ioc-in-.net-part-5-using-castlewindsor-container.aspx" target="_blank">IoC in .NET part 5: Using CastleWindsor container</a></h4>
<h4><a href="http://geekswithblogs.net/Sharpoverride/archive/2009/08/20/ioc-containers-in-.net-part-6-unity-container.aspx" target="_blank">IoC Containers in .NET part 6: Unity Container</a></h4>
<p>这里主要介绍一下Autofac，Autofac和其他容器的不同之处是它和C#语言的结合非常紧密，在使用过程中对你的应用的侵入性几乎为零，更容易与第三方的组件集成。Autofac的主要特性如下：</p>
<ol><li>灵活的组件实例化：Autofac支持自动装配，给定的组件类型Autofac自动选择使用构造函数注入或者属性注入，Autofac还可以基于lambda表达式创建实例，这使得容器非常灵活，很容易和其他的组件集成。 <code>var defaultLog = new ConsoleLog();&nbsp; builder.Register(c =&gt; new Connection(){ Log = c.ResolveOptional&lt;ILog&gt;() ?? defaultLog });</code>大家知道lambda表达式并不是在声明的时候的执行的，只有等到容器的Resolve()方法调用的时候，表达式才执行。表达式还有一个好处是不需要使用反射或者是使用XML语法来表达。</li><li>资源管理的可视性：基于依赖注入容器构建的应用程序的动态性，意味着什么时候应该处理那些资源有点困难。Autofac通过跟踪特定作用域内的实例和依赖来解决这个问题（<a title="http://code.google.com/p/autofac/wiki/DeterministicDisposal" href="http://code.google.com/p/autofac/wiki/DeterministicDisposal" target="_blank">DeterministicDisposal</a>）。IDisposable接口接口是把双刃剑，既是一个老孙手上的金箍棒，也是老孙头上的魔咒，有一种明确的方式告诉那一部分应该被清理，但是一个组件要何时处理并不是很容易确定的事情，比如说一个服务可以有多个实现的时候就变得很糟糕，组件的创建上（GOF的创建型设计模式）有的是通过工厂方式创建的，有的是单件方式创建的，有些需要被清理，有些却不需要清理。组件的使用者无法知道是否把转换为IDisposable接口调用它的Disposal方法。Autofac通过容器来跟踪组件的资源管理。对于不需要清理的对象，例如Console.Out，我们调用ExternallyOwned()方法告诉容器不用清理。细粒度的组件生命周期管理：应用程序中通常可以存在一个应用程序范围的容器实例，在应用程序中还存在大量的一个请求的范围的对象，例如一个HTTP请求，一个IIS工作者线程或者用户的会话结束时结束。通过嵌套的容器实例和对象的作用域使得资源的可视化。</li><li>Autofac的设计上非常务实，这方面更多是为我们这些容器的使用者考虑： </li></ol>
<ul><li>组件侵入性为零：组件不需要去引用Autofac。</li><li>灵活的模块化系统：通过模块化组织你的程序，应用程序不用纠缠于复杂的XML配置系统或者是配置参数。</li><li>自动装配：可以是用lambda表达式注册你的组件，autofac会根据需要选择构造函数或者属性注入</li><li>XML配置文件的支持：XML配置文件过度使用时很丑陋，但是在发布的时候通常非常有用</li><li>组件的多服务支持：许多设计师喜欢使用细粒度的接口来控制依赖 ， autofac允许一个组件提供多个服务。 </li></ul>
<p>Autofac的目前稳定版本是1.4，支持.NET和Silverlight应用程序。2.1版本目前处于Beta状态，2.1版本相对于1.4版本做了些调整，可以参照<a title="http://code.google.com/p/autofac/wiki/NewInV2" href="http://code.google.com/p/autofac/wiki/NewInV2" target="_blank">http://code.google.com/p/autofac/wiki/NewInV2</a>，如果你对Autofac感兴趣，尽快开始Autofac之旅吧，可以给你不一样的思路。</p><img src="aggbug/1665451.html?type=0" width="1" height="1" alt=""/><p>评论: 2　<a href="http://www.cnblogs.com/shanyou/archive/2010/02/07/1665451.html#pagedcomment" target="_blank">查看评论</a>　<a href="http://www.cnblogs.com/shanyou/archive/2010/02/07/1665451.html#commentform" target="_blank">发表评论</a></p><hr/><p>最新新闻：<br/>· <a href="http://news.cnblogs.com/n/56793/" target="_blank">知名扩展 Firebug 的简化版登陆 Chrome</a><span style="color:gray">(2010-02-09 22:59)</span><br/>· <a href="http://news.cnblogs.com/n/56792/" target="_blank">Google 悄悄地启用 1e100.net，打枪地不要</a><span style="color:gray">(2010-02-09 22:57)</span><br/>· <a href="http://news.cnblogs.com/n/56791/" target="_blank">从 Google 代码库找到的好东西</a><span style="color:gray">(2010-02-09 22:46)</span><br/>· <a href="http://news.cnblogs.com/n/56789/" target="_blank">苹果在线商店临时关闭 或将推新Macbook</a><span style="color:gray">(2010-02-09 22:39)</span><br/>· <a href="http://news.cnblogs.com/n/56788/" target="_blank">豆瓣网推出豆瓣电台iPhone客户端</a><span style="color:gray">(2010-02-09 21:51)</span><br/></p><p>编辑推荐：<a href="http://news.cnblogs.com/n/56782/" target="_blank">2010年2月编程语言排行榜</a><br/></p><p>网站导航：<a href="http://www.cnblogs.com" target="_blank">博客园首页</a>&nbsp;&nbsp;<a href="http://home.cnblogs.com/" target="_blank">个人主页</a>&nbsp;&nbsp;<a href="http://news.cnblogs.com" target="_blank">新闻</a>&nbsp;&nbsp;<a href="http://home.cnblogs.com/ing/" target="_blank">闪存</a>&nbsp;&nbsp;<a href="http://home.cnblogs.com/group/" target="_blank">小组</a>&nbsp;&nbsp;<a href="http://space.cnblogs.com/q/" target="_blank">博问</a>&nbsp;&nbsp;<a href="http://space.cnblogs.com" target="_blank">社区</a>&nbsp;&nbsp;<a href="http://kb.cnblogs.com" target="_blank">知识库</a></p>]]></description></item><item><title>0205 牧场分析数据</title><link>http://www.cnblogs.com/szyicol/archive/2010/02/05/1664594.html</link><dc:creator>小隐任行</dc:creator><author>小隐任行</author><pubDate>Fri, 05 Feb 2010 10:09:00 GMT</pubDate><guid>http://www.cnblogs.com/szyicol/archive/2010/02/05/1664594.html</guid><description><![CDATA[<p>阅读: 62 评论: 0 作者: <a href="" target="_blank">小隐任行</a> 发表于 2010-02-05 18:09 <a href="http://www.cnblogs.com/szyicol/archive/2010/02/05/1664594.html" target="_blank">原文链接</a></p><div>一、自己的进入</div><div>http://mc.qzone.qq.com/cgi-bin/cgi_enter?</div><div><br /></div><div>Post</div><div><br /></div><div>farmKey<span class="Apple-tab-span" style="white-space:pre">	</span>c68ca12be7f6212652e8722297bfbc37</div><div>farmTime<span class="Apple-tab-span" style="white-space:pre">	</span>1265182523</div><div>flag<span class="Apple-tab-span" style="white-space:pre">	</span>1</div><div>newitem<span class="Apple-tab-span" style="white-space:pre">	</span>1</div><div>uId<span class="Apple-tab-span" style="white-space:pre">	</span>0</div><div>uIdx<span class="Apple-tab-span" style="white-space:pre">	</span>88549293</div><div><br /></div><div>Data</div><div><br /></div><div>{"a":1,"animal":[{"buyTime":1264810641,"cId":1010,"growTime":371882,"growTimeNext":18362,"hungry":0,"serial":1,"status":5,"statusNext":3,"totalCome":0},{"buyTime":1264810641,"cId":1010,"growTime":371882,"growTimeNext":18345,"hungry":0,"serial":2,"status":5,"statusNext":3,"totalCome":0},{"buyTime":1265039516,"cId":1010,"growTime":143007,"growTimeNext":40601,"hungry":0,"serial":3,"status":5,"statusNext":3,"totalCome":9},{"buyTime":1264810641,"cId":1010,"growTime":371882,"growTimeNext":18376,"hungry":0,"serial":4,"status":5,"statusNext":3,"totalCome":0},{"buyTime":1264810641,"cId":1010,"growTime":371882,"growTimeNext":18355,"hungry":0,"serial":5,"status":5,"statusNext":3,"totalCome":0},{"buyTime":1264810648,"cId":1510,"growTime":371875,"growTimeNext":10761,"hungry":0,"serial":6,"status":5,"statusNext":3,"totalCome":0},{"buyTime":1264810648,"cId":1510,"growTime":371875,"growTimeNext":10763,"hungry":0,"serial":7,"status":5,"statusNext":3,"totalCome":0},{"buyTime":1264911127,"cId":1510,"growTime":271396,"growTimeNext":9468,"hungry":0,"serial":8,"status":5,"statusNext":3,"totalCome":0},{"buyTime":1264810663,"cId":1510,"growTime":371860,"growTimeNext":10757,"hungry":0,"serial":9,"status":5,"statusNext":3,"totalCome":0},{"buyTime":1265114376,"cId":1508,"growTime":68147,"growTimeNext":18253,"hungry":0,"serial":10,"status":2,"statusNext":3,"totalCome":0},{"buyTime":1264841269,"cId":1010,"growTime":341254,"growTimeNext":45050,"hungry":0,"serial":11,"status":5,"statusNext":3,"totalCome":9},{"buyTime":1264723619,"cId":1010,"growTime":458904,"growTimeNext":27096,"hungry":0,"serial":12,"status":5,"statusNext":6,"totalCome":0},{"buyTime":1264911127,"cId":1510,"growTime":271396,"growTimeNext":9468,"hungry":0,"serial":13,"status":5,"statusNext":3,"totalCome":0},{"buyTime":1264911127,"cId":1510,"growTime":271396,"growTimeNext":9468,"hungry":0,"serial":14,"status":5,"statusNext":3,"totalCome":0},{"buyTime":1264911155,"cId":1010,"growTime":271368,"growTimeNext":18338,"hungry":0,"serial":15,"status":5,"statusNext":3,"totalCome":0}],"animalFood":364,"badinfo":[{"mynum":0,"num":0,"type":1},{"mynum":0,"num":0,"type":2}],"c":0,"items":{"1":{"id":101,"lv":1},"2":{"id":102,"lv":6},"3":{"id":103,"lv":5},"4":{"id":104,"lv":1}},"parade":{"i":"谁动了我的小鸟？","p":3,"v":1},"stealflag":{"1010":3,"1508":3,"1510":3},"task":{"taskFlag":0,"taskId":10},"user":{"exp":40239,"money":123103,"uId":88549293},"wp":{"bq":0,"f":2,"lp":2,"lq":420000,"lv":15,"lw":2,"xp":4,"xq":498000,"xw":5}}</div><div><br /></div><div><br /></div><div><br /></div><div>二、收自己的</div><div>http://mc.qzone.qq.com/cgi-bin/cgi_harvest_product</div><div><br /></div><div>Post</div><div>farmKey<span class="Apple-tab-span" style="white-space:pre">	</span>1823d4afa24588fb78aae2c84b82dfcd</div><div>farmTime<span class="Apple-tab-span" style="white-space:pre">	</span>1265169770</div><div>harvesttype<span class="Apple-tab-span" style="white-space:pre">	</span>1</div><div>type<span class="Apple-tab-span" style="white-space:pre">	</span>1010</div><div>uIdx<span class="Apple-tab-span" style="white-space:pre">	</span>88549293</div><div><br /></div><div>Data</div><div>{"addExp":20,"cId":1010,"code":0,"harvestnum":9,"msg":"success","serial":-1}</div><div><br /></div><div>给自己加草</div><div>http://mc.qzone.qq.com/cgi-bin/cgi_feed_food</div><div><br /></div><div>Post</div><div>farmKey<span class="Apple-tab-span" style="white-space:pre">	</span>b3f5d47eba6bfa6c3838c378003d5424</div><div>farmTime<span class="Apple-tab-span" style="white-space:pre">	</span>1265185542</div><div>foodnum<span class="Apple-tab-span" style="white-space:pre">	</span>68</div><div>type<span class="Apple-tab-span" style="white-space:pre">	</span>0</div><div>uIdx<span class="Apple-tab-span" style="white-space:pre">	</span>88549293</div><div><br /></div><div>返回</div><div>{"addExp":0,"added":68,"animal":[{"buyTime":1264810641,"cId":1010,"growTime":374901,"growTimeNext":15343,"hungry":0,"serial":1,"status":5,"statusNext":3,"totalCome":0},{"buyTime":1264810641,"cId":1010,"growTime":374901,"growTimeNext":15326,"hungry":0,"serial":2,"status":5,"statusNext":3,"totalCome":0},{"buyTime":1265039516,"cId":1010,"growTime":146026,"growTimeNext":37582,"hungry":0,"serial":3,"status":5,"statusNext":3,"totalCome":0},{"buyTime":1264810641,"cId":1010,"growTime":374901,"growTimeNext":15357,"hungry":0,"serial":4,"status":5,"statusNext":3,"totalCome":0},{"buyTime":1264810641,"cId":1010,"growTime":374901,"growTimeNext":15336,"hungry":0,"serial":5,"status":5,"statusNext":3,"totalCome":0},{"buyTime":1264810648,"cId":1510,"growTime":374894,"growTimeNext":7742,"hungry":0,"serial":6,"status":5,"statusNext":3,"totalCome":0},{"buyTime":1264810648,"cId":1510,"growTime":374894,"growTimeNext":7744,"hungry":0,"serial":7,"status":5,"statusNext":3,"totalCome":0},{"buyTime":1264911127,"cId":1510,"growTime":274415,"growTimeNext":6449,"hungry":0,"serial":8,"status":5,"statusNext":3,"totalCome":0},{"buyTime":1264810663,"cId":1510,"growTime":374879,"growTimeNext":7738,"hungry":0,"serial":9,"status":5,"statusNext":3,"totalCome":0},{"buyTime":1265114376,"cId":1508,"growTime":71166,"growTimeNext":15234,"hungry":0,"serial":10,"status":2,"statusNext":3,"totalCome":0},{"buyTime":1264841269,"cId":1010,"growTime":344273,"growTimeNext":42031,"hungry":0,"serial":11,"status":5,"statusNext":3,"totalCome":0},{"buyTime":1264723619,"cId":1010,"growTime":461923,"growTimeNext":24077,"hungry":0,"serial":12,"status":5,"statusNext":6,"totalCome":0},{"buyTime":1264911127,"cId":1510,"growTime":274415,"growTimeNext":6449,"hungry":0,"serial":13,"status":5,"statusNext":3,"totalCome":0},{"buyTime":1264911127,"cId":1510,"growTime":274415,"growTimeNext":6449,"hungry":0,"serial":14,"status":5,"statusNext":3,"totalCome":0},{"buyTime":1264911155,"cId":1010,"growTime":274387,"growTimeNext":15319,"hungry":0,"serial":15,"status":5,"statusNext":3,"totalCome":0}],"direction":"成功添加68棵牧草","money":0,"total":400,"type":0,"uId":88549293}</div><div><br /></div><div><br /></div><div>三、获取好友列表</div><div><br /></div><div>http://nc.qzone.qq.com/cgi-bin/cgi_farm_getFriendList?mod=friend</div><div><br /></div><div>Post</div><div>farmKey<span class="Apple-tab-span" style="white-space:pre">	</span>9f767a52d7dd23ac8fcce46fa1b28646</div><div>farmTime<span class="Apple-tab-span" style="white-space:pre">	</span>1265182638</div><div>uIdx<span class="Apple-tab-span" style="white-space:pre">	</span>88549293</div><div>user<span class="Apple-tab-span" style="white-space:pre">	</span>true</div><div><br /></div><div>Data (pf为1则开)</div><div><br /></div><div>[{"exp":6691,"headPic":"http://qlogo1.store.qq.com/qzonelogo/79916/1/1258586050","money":490437,"pf":1,"uId":631534,"uin":79916,"userName":" ","yellowlevel":7,"yellowstatus":1},{"exp":67392,"headPic":"http://imgcache.qq.com/qzone_v4/client/userinfo_icon/3001.gif","money":69034,"pf":1,"uId":437851,"uin":217164,"userName":"紫独","yellowlevel":0,"yellowstatus":0},{"exp":19953,"headPic":"http://imgcache.qq.com/qzone_v4/client/userinfo_icon/5001.gif","money":117324,"pf":0,"uId":902579,"uin":404178,"userName":"Allen","yellowlevel":0,"yellowstatus":0},{"exp":37221,"headPic":"http://imgcache.qq.com/qzone_v4/client/userinfo_icon/5001.gif","money":470170,"pf":1,"uId":446373,"uin":567421,"userName":"玩滴就是心","yellowlevel":4,"yellowstatus":1},{"exp":38000,"headPic":"http://qlogo4.store.qq.com/qzonelogo/568751/1/1249770856","money":14221,"pf":1,"uId":367749,"uin":568751,"userName":"王 尛 飛。","yellowlevel":1,"yellowstatus":0},{"exp":3719,"headPic":"http://imgcache.qq.com/qzone_v4/client/userinfo_icon/4005.gif","money":20656,"pf":0,"uId":231377,"uin":619468,"userName":"若寒","yellowlevel":0,"yellowstatus":0},{"exp":0,"headPic":"http://qlogo3.store.qq.com/qzonelogo/707046/1/1248586041","money":500,"pf":0,"uId":89024,"uin":707046,"userName":"浩海","yellowlevel":4,"yellowstatus":0},{"exp":119943,"headPic":"http://imgcache.qq.com/qzone_v4/client/userinfo_icon/4014.gif","money":106070,"pf":1,"uId":594569,"uin":764352,"userName":"小Q","yellowlevel":0,"yellowstatus":0},{"exp":22876,"headPic":"http://qlogo2.store.qq.com/qzonelogo/927129/1/0","money":13116,"pf":1,"uId":619279,"uin":927129,"userName":"Eddy","yellowlevel":0,"yellowstatus":0},{"exp":33908,"headPic":"http://qlogo4.store.qq.com/qzonelogo/1627211/1/1262353476","money":2438163,"pf":1,"uId":1857368,"uin":1627211,"userName":"呂易","yellowlevel":0,"yellowstatus":0},{"exp":51448,"headPic":"http://qlogo4.store.qq.com/qzonelogo/2096851/1/0","money":1388594,"pf":1,"uId":2177417,"uin":2096851,"userName":"+月光十字","yellowlevel":7,"yellowstatus":1},{"exp":73650,"headPic":"http://imgcache.qq.com/qzone_v4/client/userinfo_icon/5001.gif","money":58,"pf":0,"uId":3254740,"uin":3189323,"userName":"凝望之风","yellowlevel":0,"yellowstatus":0},{"exp":11565,"headPic":"http://qlogo4.store.qq.com/qzonelogo/3453567/1/1253971759","money":54518,"pf":1,"uId":3260808,"uin":3453567,"userName":"他 ：大舅","yellowlevel":0,"yellowstatus":0},{"exp":70761,"headPic":"http://qlogo4.store.qq.com/qzonelogo/3817503/1/1246291853","money":855721,"pf":0,"uId":3797195,"uin":3817503,"userName":"MC技术支持","yellowlevel":0,"yellowstatus":0},{"exp":1060,"headPic":"http://imgcache.qq.com/qzone_v4/client/userinfo_icon/3011.gif","money":6545,"pf":0,"uId":4679520,"uin":4218035,"userName":"奥博技术","yellowlevel":0,"yellowstatus":0},{"exp":55200,"headPic":"http://imgcache.qq.com/qzone_v4/client/userinfo_icon/2003.gif","money":733690,"pf":1,"uId":5526005,"uin":5774745,"userName":"H1N1","yellowlevel":0,"yellowstatus":0},{"exp":37502,"headPic":"http://imgcache.qq.com/qzone_v4/client/userinfo_icon/4008.gif","money":78816,"pf":1,"uId":5391124,"uin":5995842,"userName":"根号九","yellowlevel":0,"yellowstatus":0},{"exp":12370,"headPic":"http://imgcache.qq.com/qzone_v4/client/userinfo_icon/3003.gif","money":72991,"pf":1,"uId":6987332,"uin":6102855,"userName":"two","yellowlevel":5,"yellowstatus":0},{"exp":7697,"headPic":"http://qlogo1.store.qq.com/qzonelogo/6370480/1/1264843472","money":8463,"pf":0,"uId":6735467,"uin":6370480,"userName":"风落秋潭","yellowlevel":0,"yellowstatus":0},{"exp":56627,"headPic":"http://imgcache.qq.com/qzone_v4/client/userinfo_icon/1007.gif","money":20751,"pf":1,"uId":6817912,"uin":6936446,"userName":"牛牛更牛","yellowlevel":0,"yellowstatus":0},{"exp":431971,"headPic":"http://qlogo3.store.qq.com/qzonelogo/9432322/1/1265046886","money":2556752,"pf":1,"uId":9657232,"uin":9432322,"userName":"枫︱珍︱妖","yellowlevel":7,"yellowstatus":1},{"exp":58730,"headPic":"http://qlogo4.store.qq.com/qzonelogo/9635711/1/0","money":138122,"pf":1,"uId":9850508,"uin":9635711,"userName":"零","yellowlevel":0,"yellowstatus":0},{"exp":121484,"headPic":"http://qlogo4.store.qq.com/qzonelogo/9797071/1/1243754872","money":716644,"pf":1,"uId":9017833,"uin":9797071,"userName":"潴潴潴潴潴","yellowlevel":4,"yellowstatus":0},{"exp":49739,"headPic":"http://imgcache.qq.com/qzone_v4/client/userinfo_icon/5001.gif","money":389974,"pf":1,"uId":10642928,"uin":10991119,"userName":"无名-别问","yellowlevel":0,"yellowstatus":0},{"exp":800,"headPic":"http://imgcache.qq.com/qzone_v4/client/userinfo_icon/5001.gif","money":625,"pf":0,"uId":12445872,"uin":12195844,"userName":"&amp;【深蓝】&amp;","yellowlevel":0,"yellowstatus":0},{"exp":83419,"headPic":"http://qlogo1.store.qq.com/qzonelogo/15158100/1/1254190505","money":421363,"pf":1,"uId":15474201,"uin":15158100,"userName":"__嚒嚒嗏__","yellowlevel":7,"yellowstatus":1},{"exp":8539,"headPic":"http://imgcache.qq.com/qzone_v4/client/userinfo_icon/5001.gif","money":35,"pf":1,"uId":18661038,"uin":18000339,"userName":"","yellowlevel":0,"yellowstatus":0},{"exp":856,"headPic":"http://imgcache.qq.com/qzone_v4/client/userinfo_icon/3011.gif","money":3014,"pf":0,"uId":18159516,"uin":18046418,"userName":"西门无雪/qs","yellowlevel":0,"yellowstatus":0},{"exp":0,"headPic":"http://imgcache.qq.com/qzone_v4/client/userinfo_icon/5001.gif","money":500,"pf":0,"uId":18395039,"uin":18795736,"userName":"周海","yellowlevel":0,"yellowstatus":0},{"exp":1432,"headPic":"http://imgcache.qq.com/qzone_v4/client/userinfo_icon/5001.gif","money":19151,"pf":0,"uId":22021100,"uin":22598875,"userName":"凡尘世界","yellowlevel":0,"yellowstatus":0},{"exp":24063,"headPic":"http://qlogo2.store.qq.com/qzonelogo/24427505/1/0","money":764089,"pf":1,"uId":24053357,"uin":24427505,"userName":"天黑请闭眼","yellowlevel":0,"yellowstatus":0},{"exp":711,"headPic":"http://imgcache.qq.com/qzone_v4/client/userinfo_icon/5001.gif","money":8250,"pf":0,"uId":24963348,"uin":24558887,"userName":"深圳世纪华","yellowlevel":0,"yellowstatus":0},{"exp":1122,"headPic":"http://imgcache.qq.com/qzone_v4/client/userinfo_icon/4014.gif","money":2237,"pf":0,"uId":25583091,"uin":25750441,"userName":"Leon.Ken","yellowlevel":0,"yellowstatus":0},{"exp":87125,"headPic":"http://qlogo2.store.qq.com/qzonelogo/26126249/1/1258102913","money":469083,"pf":1,"uId":26702809,"uin":26126249,"userName":" 无影追风","yellowlevel":0,"yellowstatus":0},{"exp":52890,"headPic":"http://imgcache.qq.com/qzone_v4/client/userinfo_icon/5001.gif","money":85580,"pf":0,"uId":27820712,"uin":27166590,"userName":"天堂猎人","yellowlevel":0,"yellowstatus":0},{"exp":15414,"headPic":"http://imgcache.qq.com/qzone_v4/client/userinfo_icon/4005.gif","money":215564,"pf":0,"uId":29049687,"uin":29036896,"userName":"果果熊","yellowlevel":0,"yellowstatus":0},{"exp":230,"headPic":"http://imgcache.qq.com/qzone_v4/client/userinfo_icon/3011.gif","money":17,"pf":0,"uId":29306608,"uin":29224677,"userName":"昕","yellowlevel":0,"yellowstatus":0},{"exp":62726,"headPic":"http://qlogo1.store.qq.com/qzonelogo/32675308/1/0","money":116911,"pf":0,"uId":32389519,"uin":32675308,"userName":"易晴(EBT)","yellowlevel":0,"yellowstatus":0},{"exp":98873,"headPic":"http://imgcache.qq.com/qzone_v4/client/userinfo_icon/5001.gif","money":1292933,"pf":1,"uId":33363108,"uin":33606088,"userName":"似水骄阳oO","yellowlevel":4,"yellowstatus":1},{"exp":44178,"headPic":"http://imgcache.qq.com/qzone_v4/client/userinfo_icon/3011.gif","money":5560,"pf":1,"uId":36719486,"uin":36532014,"userName":"三哥","yellowlevel":0,"yellowstatus":0},{"exp":6734,"headPic":"http://imgcache.qq.com/qzone_v4/client/userinfo_icon/3012.gif","money":19504,"pf":0,"uId":36521746,"uin":36717557,"userName":"青鸟的翅膀","yellowlevel":0,"yellowstatus":0},{"exp":28173,"headPic":"http://qlogo2.store.qq.com/qzonelogo/39307993/1/1252851194","money":165171,"pf":0,"uId":39608010,"uin":39307993,"userName":" &nbsp;沉默是金","yellowlevel":0,"yellowstatus":0},{"exp":532,"headPic":"http://qlogo2.store.qq.com/qzonelogo/40236737/1/1239202414","money":1272,"pf":0,"uId":40514815,"uin":40236737,"userName":"&#9734;细雨飘扬","yellowlevel":0,"yellowstatus":0},{"exp":1102,"headPic":"http://imgcache.qq.com/qzone_v4/client/userinfo_icon/4014.gif","money":3146,"pf":0,"uId":40114530,"uin":40700507,"userName":"残月","yellowlevel":1,"yellowstatus":0},{"exp":69429,"headPic":"http://imgcache.qq.com/qzone_v4/client/userinfo_icon/5001.gif","money":283228,"pf":1,"uId":41157953,"uin":41566406,"userName":"放開果個阿","yellowlevel":0,"yellowstatus":0},{"exp":43687,"headPic":"http://imgcache.qq.com/qzone_v4/client/userinfo_icon/5001.gif","money":153364,"pf":0,"uId":43157842,"uin":43631700,"userName":"绿洲","yellowlevel":0,"yellowstatus":0},{"exp":77698,"headPic":"http://imgcache.qq.com/qzone_v4/client/userinfo_icon/2019.gif","money":51285,"pf":1,"uId":43717052,"uin":43632640,"userName":"尘世菱花梦","yellowlevel":4,"yellowstatus":1},{"exp":143971,"headPic":"http://qlogo1.store.qq.com/qzonelogo/44661624/1/1259146246","money":661944,"pf":1,"uId":44984197,"uin":44661624,"userName":"315","yellowlevel":1,"yellowstatus":0},{"exp":78987,"headPic":"http://imgcache.qq.com/qzone_v4/client/userinfo_icon/2018.gif","money":536938,"pf":0,"uId":47530514,"uin":47182144,"userName":"！悠悠*草","yellowlevel":0,"yellowstatus":0},{"exp":66120,"headPic":"http://qlogo2.store.qq.com/qzonelogo/49515517/1/1261502932","money":40078,"pf":1,"uId":49025093,"uin":49515517,"userName":"〆﹏專屬&#9582;","yellowlevel":1,"yellowstatus":0},{"exp":65901,"headPic":"http://imgcache.qq.com/qzone_v4/client/userinfo_icon/4010.gif","money":139871,"pf":1,"uId":49321056,"uin":49735374,"userName":"0与1的距离","yellowlevel":0,"yellowstatus":0},{"exp":22313,"headPic":"http://imgcache.qq.com/qzone_v4/client/userinfo_icon/1003.gif","money":38887,"pf":1,"uId":51346556,"uin":51255777,"userName":"馒头","yellowlevel":0,"yellowstatus":0},{"exp":16538,"headPic":"http://imgcache.qq.com/qzone_v4/client/userinfo_icon/3011.gif","money":181687,"pf":0,"uId":52316828,"uin":52235175,"userName":"乐儿飞","yellowlevel":0,"yellowstatus":0},{"exp":1420,"headPic":"http://imgcache.qq.com/qzone_v4/client/userinfo_icon/3011.gif","money":8374,"pf":0,"uId":52788983,"uin":52526485,"userName":"Q王","yellowlevel":0,"yellowstatus":0},{"exp":14222,"headPic":"http://imgcache.qq.com/qzone_v4/client/userinfo_icon/2005.gif","money":67862,"pf":0,"uId":54088570,"uin":54231850,"userName":"Cheer~ゞ靈&#8481;","yellowlevel":0,"yellowstatus":0},{"exp":23120,"headPic":"http://imgcache.qq.com/qzone_v4/client/userinfo_icon/5001.gif","money":37640,"pf":0,"uId":54391363,"uin":54546979,"userName":"凡卓","yellowlevel":0,"yellowstatus":0},{"exp":55171,"headPic":"http://imgcache.qq.com/qzone_v4/client/userinfo_icon/5001.gif","money":40074,"pf":1,"uId":54892798,"uin":54989875,"userName":"公木子","yellowlevel":0,"yellowstatus":0},{"exp":34544,"headPic":"http://qlogo4.store.qq.com/qzonelogo/56436287/1/1236325030","money":130975,"pf":1,"uId":56592512,"uin":56436287,"userName":".︷信o","yellowlevel":0,"yellowstatus":0},{"exp":40414,"headPic":"http://imgcache.qq.com/qzone_v4/client/userinfo_icon/5001.gif","money":56,"pf":0,"uId":56789581,"uin":56796171,"userName":"一鸣惊人","yellowlevel":0,"yellowstatus":0},{"exp":42339,"headPic":"http://imgcache.qq.com/qzone_v4/client/userinfo_icon/5001.gif","money":265989,"pf":1,"uId":57650889,"uin":57104417,"userName":"奋斗10.17/ka","yellowlevel":0,"yellowstatus":0},{"exp":27284,"headPic":"http://imgcache.qq.com/qzone_v4/client/userinfo_icon/3011.gif","money":130,"pf":0,"uId":57941681,"uin":57456486,"userName":"红帽子蓝巨","yellowlevel":0,"yellowstatus":0},{"exp":334,"headPic":"http://qlogo2.store.qq.com/qzonelogo/58950785/1/1251247548","money":1437,"pf":0,"uId":58171919,"uin":58950785,"userName":"げ絕戀げ玲","yellowlevel":0,"yellowstatus":0},{"exp":28798,"headPic":"http://imgcache.qq.com/qzone_v4/client/userinfo_icon/5001.gif","money":15180,"pf":1,"uId":59045457,"uin":59471200,"userName":"追梦人","yellowlevel":0,"yellowstatus":0},{"exp":16715,"headPic":"http://imgcache.qq.com/qzone_v4/client/userinfo_icon/5001.gif","money":108090,"pf":0,"uId":59636787,"uin":59773333,"userName":"福.....丰","yellowlevel":0,"yellowstatus":0},{"exp":30230,"headPic":"http://imgcache.qq.com/qzone_v4/client/userinfo_icon/1012.gif","money":531039,"pf":1,"uId":63225139,"uin":63606905,"userName":"﹎簡簡僤僤","yellowlevel":0,"yellowstatus":0},{"exp":35696,"headPic":"http://qlogo2.store.qq.com/qzonelogo/65927321/1/1260110685","money":78180,"pf":0,"uId":65246936,"uin":65927321,"userName":"喵喵~~/ka","yellowlevel":0,"yellowstatus":0},{"exp":30603,"headPic":"http://imgcache.qq.com/qzone_v4/client/userinfo_icon/1015.gif","money":167032,"pf":1,"uId":66772258,"uin":66046980,"userName":"一生一葡萄","yellowlevel":1,"yellowstatus":0},{"exp":8549,"headPic":"http://qlogo3.store.qq.com/qzonelogo/66229746/1/0","money":86735,"pf":1,"uId":66367364,"uin":66229746,"userName":"恒","yellowlevel":0,"yellowstatus":0},{"exp":15841,"headPic":"http://imgcache.qq.com/qzone_v4/client/userinfo_icon/3011.gif","money":126065,"pf":0,"uId":66566035,"uin":66705087,"userName":"吸引力","yellowlevel":0,"yellowstatus":0},{"exp":51404,"headPic":"http://imgcache.qq.com/qzone_v4/client/userinfo_icon/5001.gif","money":492485,"pf":1,"uId":66936906,"uin":66822613,"userName":" &nbsp; 滴月","yellowlevel":1,"yellowstatus":1},{"exp":74172,"headPic":"http://imgcache.qq.com/qzone_v4/client/userinfo_icon/5001.gif","money":912829,"pf":1,"uId":68787953,"uin":68861957,"userName":"坏格格","yellowlevel":0,"yellowstatus":0},{"exp":46404,"headPic":"http://imgcache.qq.com/qzone_v4/client/userinfo_icon/4014.gif","money":542724,"pf":1,"uId":75778037,"uin":75990781,"userName":"佑川","yellowlevel":5,"yellowstatus":0},{"exp":14569,"headPic":"http://imgcache.qq.com/qzone_v4/client/userinfo_icon/3011.gif","money":69728,"pf":0,"uId":78408505,"uin":78200539,"userName":"偶然","yellowlevel":0,"yellowstatus":0},{"exp":40759,"headPic":"http://qlogo1.store.qq.com/qzonelogo/78426292/1/1264665062","money":434116,"pf":1,"uId":78420481,"uin":78426292,"userName":"『七日晴』","yellowlevel":0,"yellowstatus":0},{"exp":1245,"headPic":"http://imgcache.qq.com/qzone_v4/client/userinfo_icon/2005.gif","money":5459,"pf":0,"uId":79935382,"uin":79457917,"userName":"小火柴","yellowlevel":0,"yellowstatus":0},{"exp":35138,"headPic":"http://imgcache.qq.com/qzone_v4/client/userinfo_icon/5001.gif","money":90985,"pf":0,"uId":80583276,"uin":80104419,"userName":"M.J","yellowlevel":0,"yellowstatus":0},{"exp":31438,"headPic":"http://qlogo4.store.qq.com/qzonelogo/80236951/1/1257132307","money":8908,"pf":0,"uId":80412860,"uin":80236951,"userName":"J azz pub","yellowlevel":1,"yellowstatus":1},{"exp":62282,"headPic":"http://qlogo1.store.qq.com/qzonelogo/82767136/1/1245803898","money":38407,"pf":1,"uId":82017360,"uin":82767136,"userName":"浪子の无悔","yellowlevel":0,"yellowstatus":0},{"exp":6287,"headPic":"http://qlogo3.store.qq.com/qzonelogo/82942250/1/1252975511","money":204833,"pf":1,"uId":82232933,"uin":82942250,"userName":"&#9584;&#9734;Angelの","yellowlevel":0,"yellowstatus":0},{"exp":46244,"headPic":"http://imgcache.qq.com/qzone_v4/client/userinfo_icon/3001.gif","money":192933,"pf":1,"uId":84511504,"uin":84331702,"userName":"ご炫っ枫に","yellowlevel":0,"yellowstatus":0},{"exp":806,"headPic":"http://qlogo2.store.qq.com/qzonelogo/84858257/1/1262918436","money":2377,"pf":0,"uId":84417767,"uin":84858257,"userName":"崂山尘星","yellowlevel":0,"yellowstatus":0},{"exp":123334,"headPic":"http://qlogo4.store.qq.com/qzonelogo/86129295/1/1264850930","money":28598,"pf":1,"uId":86826399,"uin":86129295,"userName":"__胤跡.!：","yellowlevel":5,"yellowstatus":1},{"exp":18523,"headPic":"http://qlogo4.store.qq.com/qzonelogo/86825075/1/1264482120","money":154762,"pf":0,"uId":86945550,"uin":86825075,"userName":"Sylar","yellowlevel":0,"yellowstatus":0},{"exp":7725,"headPic":"http://imgcache.qq.com/qzone_v4/client/userinfo_icon/5001.gif","money":290,"pf":1,"uId":93627615,"uin":93125316,"userName":"叶子","yellowlevel":0,"yellowstatus":0},{"exp":45400,"headPic":"http://imgcache.qq.com/qzone_v4/client/userinfo_icon/2019.gif","money":511279,"pf":1,"uId":93173287,"uin":93346685,"userName":"Bear!sTaR{R}","yellowlevel":0,"yellowstatus":0},{"exp":24697,"headPic":"http://qlogo1.store.qq.com/qzonelogo/94496408/1/1254919375","money":30722,"pf":0,"uId":94761340,"uin":94496408,"userName":"Yellow.\"","yellowlevel":0,"yellowstatus":0},{"exp":37250,"headPic":"http://qlogo2.store.qq.com/qzonelogo/101059161/1/1241854801","money":296081,"pf":1,"uId":101606953,"uin":101059161,"userName":"小凡","yellowlevel":7,"yellowstatus":1},{"exp":171691,"headPic":"http://qlogo3.store.qq.com/qzonelogo/106608206/1/1239365419","money":847829,"pf":1,"uId":106839657,"uin":106608206,"userName":"ぁ鈊ヤ疼&#958;","yellowlevel":0,"yellowstatus":0},{"exp":35997,"headPic":"http://imgcache.qq.com/qzone_v4/client/userinfo_icon/5001.gif","money":12,"pf":1,"uId":112663787,"uin":112016528,"userName":"琐窗寒","yellowlevel":0,"yellowstatus":0},{"exp":4547,"headPic":"http://imgcache.qq.com/qzone_v4/client/userinfo_icon/2016.gif","money":36291,"pf":0,"uId":113601240,"uin":113241493,"userName":"剑xin /惊讶 ","yellowlevel":0,"yellowstatus":0},{"exp":1561,"headPic":"http://qlogo1.store.qq.com/qzonelogo/115974228/1/1257949718","money":3636,"pf":0,"uId":115318661,"uin":115974228,"userName":" 钱峰","yellowlevel":0,"yellowstatus":0},{"exp":37743,"headPic":"http://imgcache.qq.com/qzone_v4/client/userinfo_icon/1004.gif","money":135126,"pf":0,"uId":116506300,"uin":116873134,"userName":"『不明去路","yellowlevel":0,"yellowstatus":0},{"exp":141925,"headPic":"http://imgcache.qq.com/qzone_v4/client/userinfo_icon/1003.gif","money":136214,"pf":1,"uId":118862903,"uin":118047648,"userName":"︷在缐&#9352;方","yellowlevel":2,"yellowstatus":0},{"exp":40105,"headPic":"http://qlogo3.store.qq.com/qzonelogo/119214590/1/1264567455","money":145866,"pf":0,"uId":119058729,"uin":119214590,"userName":"明天会更好","yellowlevel":0,"yellowstatus":0},{"exp":88576,"headPic":"http://qlogo3.store.qq.com/qzonelogo/120342782/1/0","money":2790862,"pf":1,"uId":120948887,"uin":120342782,"userName":" &nbsp; &nbsp; 薛林杰,","yellowlevel":4,"yellowstatus":1},{"exp":8537,"headPic":"http://qlogo1.store.qq.com/qzonelogo/121581652/1/1237686823","money":11978,"pf":1,"uId":121057126,"uin":121581652,"userName":"2010年蚯蚓","yellowlevel":2,"yellowstatus":1},{"exp":105155,"headPic":"http://qlogo4.store.qq.com/qzonelogo/139198679/1/1241728206","money":7777777,"pf":1,"uId":139155210,"uin":139198679,"userName":"伤感守护神","yellowlevel":0,"yellowstatus":0},{"exp":1042,"headPic":"http://qlogo3.store.qq.com/qzonelogo/147991766/1/1252850552","money":7124,"pf":0,"uId":147293518,"uin":147991766,"userName":"幸福/hanx","yellowlevel":0,"yellowstatus":0},{"exp":100685,"headPic":"http://qlogo1.store.qq.com/qzonelogo/150196412/1/1247406424","money":663243,"pf":1,"uId":150287863,"uin":150196412,"userName":"简单","yellowlevel":5,"yellowstatus":0},{"exp":40896,"headPic":"http://imgcache.qq.com/qzone_v4/client/userinfo_icon/2008.gif","money":50427,"pf":1,"uId":151309828,"uin":151329565,"userName":"Zero","yellowlevel":0,"yellowstatus":0},{"exp":33864,"headPic":"http://qlogo3.store.qq.com/qzonelogo/154246626/1/1254294683","money":706,"pf":0,"uId":154216061,"uin":154246626,"userName":"笑看風雲","yellowlevel":0,"yellowstatus":0},{"exp":996,"headPic":"http://imgcache.qq.com/qzone_v4/client/userinfo_icon/4004.gif","money":6647,"pf":0,"uId":156579501,"uin":156931991,"userName":"紫燕","yellowlevel":0,"yellowstatus":0},{"exp":99811,"headPic":"http://imgcache.qq.com/qzone_v4/client/userinfo_icon/1001.gif","money":83337,"pf":1,"uId":157229217,"uin":157227354,"userName":"奈何","yellowlevel":0,"yellowstatus":0},{"exp":7118,"headPic":"http://qlogo1.store.qq.com/qzonelogo/160909624/1/1236312014","money":11952,"pf":0,"uId":160669987,"uin":160909624,"userName":"零下100&#8451;","yellowlevel":0,"yellowstatus":0},{"exp":293056,"headPic":"http://qlogo3.store.qq.com/qzonelogo/164763734/1/1246008144","money":2109663,"pf":1,"uId":164247686,"uin":164763734,"userName":"順&#9338;zi嘫","yellowlevel":0,"yellowstatus":0},{"exp":1009,"headPic":"http://imgcache.qq.com/qzone_v4/client/userinfo_icon/5001.gif","money":1253,"pf":0,"uId":166791005,"uin":166156888,"userName":"轻入凡尘","yellowlevel":0,"yellowstatus":0},{"exp":16528,"headPic":"http://imgcache.qq.com/qzone_v4/client/userinfo_icon/1002.gif","money":13681,"pf":0,"uId":171037139,"uin":171369429,"userName":"wo々嗳de&#9794;","yellowlevel":0,"yellowstatus":0},{"exp":89132,"headPic":"http://qlogo3.store.qq.com/qzonelogo/173810850/1/1250351210","money":8870,"pf":0,"uId":173746766,"uin":173810850,"userName":"绝情谷","yellowlevel":0,"yellowstatus":0},{"exp":20782,"headPic":"http://imgcache.qq.com/qzone_v4/client/userinfo_icon/5001.gif","money":15243,"pf":1,"uId":175557205,"uin":175524495,"userName":"winton","yellowlevel":0,"yellowstatus":0},{"exp":64696,"headPic":"http://imgcache.qq.com/qzone_v4/client/userinfo_icon/1002.gif","money":32,"pf":0,"uId":178991446,"uin":178852134,"userName":"苦","yellowlevel":0,"yellowstatus":0},{"exp":115256,"headPic":"http://qlogo1.store.qq.com/qzonelogo/183925496/1/1253287598","money":452460,"pf":1,"uId":183392456,"uin":183925496,"userName":"做回自己","yellowlevel":4,"yellowstatus":1},{"exp":21547,"headPic":"http://imgcache.qq.com/qzone_v4/client/userinfo_icon/1002.gif","money":133225,"pf":0,"uId":184684764,"uin":184112225,"userName":"天使","yellowlevel":0,"yellowstatus":0},{"exp":21612,"headPic":"http://imgcache.qq.com/qzone_v4/client/userinfo_icon/3011.gif","money":50450,"pf":0,"uId":184700172,"uin":184112228,"userName":"小隐任行","yellowlevel":0,"yellowstatus":0},{"exp":30862,"headPic":"http://imgcache.qq.com/qzone_v4/client/userinfo_icon/1006.gif","money":40552,"pf":0,"uId":184631386,"uin":184951634,"userName":"浪冥小蜘蛛","yellowlevel":0,"yellowstatus":0},{"exp":90215,"headPic":"http://imgcache.qq.com/qzone_v4/client/userinfo_icon/2005.gif","money":755935,"pf":1,"uId":185245844,"uin":185859634,"userName":"ゃ.訫不變","yellowlevel":0,"yellowstatus":0},{"exp":6442,"headPic":"http://imgcache.qq.com/qzone_v4/client/userinfo_icon/1003.gif","money":24569,"pf":0,"uId":190382367,"uin":190475474,"userName":"＿天&#183;好黑","yellowlevel":0,"yellowstatus":0},{"exp":48755,"headPic":"http://qlogo4.store.qq.com/qzonelogo/190671679/1/1261929172","money":30577,"pf":0,"uId":190843718,"uin":190671679,"userName":"&#9733;杨亮&#9733;","yellowlevel":0,"yellowstatus":0},{"exp":23739,"headPic":"http://imgcache.qq.com/qzone_v4/client/userinfo_icon/1002.gif","money":10177,"pf":0,"uId":191129794,"uin":191528665,"userName":"我在深圳","yellowlevel":0,"yellowstatus":0},{"exp":64957,"headPic":"http://qlogo3.store.qq.com/qzonelogo/196936990/1/1235451512","money":172171,"pf":1,"uId":196362202,"uin":196936990,"userName":"0o点点oO","yellowlevel":0,"yellowstatus":0},{"exp":26117,"headPic":"http://qlogo2.store.qq.com/qzonelogo/197748925/1/1259518043","money":75780,"pf":1,"uId":197982120,"uin":197748925,"userName":"职业欠钱","yellowlevel":0,"yellowstatus":0},{"exp":30700,"headPic":"http://qlogo1.store.qq.com/qzonelogo/214931896/1/1265029082","money":394558,"pf":1,"uId":214518950,"uin":214931896,"userName":"3Q","yellowlevel":0,"yellowstatus":0},{"exp":9025,"headPic":"http://qlogo2.store.qq.com/qzonelogo/215340325/1/1248356138","money":30695,"pf":0,"uId":215194029,"uin":215340325,"userName":"收放自如/tp","yellowlevel":0,"yellowstatus":0},{"exp":48454,"headPic":"http://qlogo2.store.qq.com/qzonelogo/215563181/1/1255935395","money":146303,"pf":1,"uId":215056022,"uin":215563181,"userName":"猫公主","yellowlevel":0,"yellowstatus":0},{"exp":97889,"headPic":"http://imgcache.qq.com/qzone_v4/client/userinfo_icon/1009.gif","money":85725,"pf":1,"uId":223849554,"uin":223294667,"userName":" 季候風","yellowlevel":0,"yellowstatus":0},{"exp":0,"headPic":"http://imgcache.qq.com/qzone_v4/client/userinfo_icon/2016.gif","money":27541,"pf":1,"uId":223632747,"uin":223781992,"userName":"新华人寿","yellowlevel":0,"yellowstatus":0},{"exp":28045,"headPic":"http://imgcache.qq.com/qzone_v4/client/userinfo_icon/4004.gif","money":41342,"pf":1,"uId":228252094,"uin":228810239,"userName":"/ka四叶草","yellowlevel":0,"yellowstatus":0},{"exp":31838,"headPic":"http://imgcache.qq.com/qzone_v4/client/userinfo_icon/1003.gif","money":24544,"pf":0,"uId":229949124,"uin":229540415,"userName":"&#8251;我是谁&#8251;","yellowlevel":0,"yellowstatus":0},{"exp":3079,"headPic":"http://imgcache.qq.com/qzone_v4/client/userinfo_icon/3011.gif","money":1095,"pf":0,"uId":232252811,"uin":232211308,"userName":"刘翔","yellowlevel":0,"yellowstatus":0},{"exp":77313,"headPic":"http://qlogo1.store.qq.com/qzonelogo/234536824/1/1248923946","money":165174,"pf":0,"uId":234033122,"uin":234536824,"userName":"筱蕾","yellowlevel":0,"yellowstatus":0},{"exp":1618,"headPic":"http://qlogo1.store.qq.com/qzonelogo/245768972/1/1242365972","money":6649,"pf":0,"uId":245565848,"uin":245768972,"userName":"木青雨","yellowlevel":0,"yellowstatus":0},{"exp":655,"headPic":"http://imgcache.qq.com/qzone_v4/client/userinfo_icon/5001.gif","money":6280,"pf":0,"uId":248069124,"uin":248526153,"userName":"山水晨光","yellowlevel":0,"yellowstatus":0},{"exp":1303,"headPic":"http://imgcache.qq.com/qzone_v4/client/userinfo_icon/5001.gif","money":880,"pf":0,"uId":249439035,"uin":249860470,"userName":"平凡","yellowlevel":0,"yellowstatus":0},{"exp":0,"headPic":"http://imgcache.qq.com/qzone_v4/client/userinfo_icon/1005.gif","money":500,"pf":0,"uId":251940703,"uin":251435119,"userName":"孟婆、来碗","yellowlevel":0,"yellowstatus":0},{"exp":11388,"headPic":"http://imgcache.qq.com/qzone_v4/client/userinfo_icon/4014.gif","money":21210,"pf":0,"uId":251124802,"uin":251476606,"userName":"徐徐","yellowlevel":0,"yellowstatus":0},{"exp":52642,"headPic":"http://qlogo2.store.qq.com/qzonelogo/252531645/1/1228480816","money":1829042,"pf":1,"uId":252081733,"uin":252531645,"userName":"、 &nbsp;小贼","yellowlevel":1,"yellowstatus":0},{"exp":2003,"headPic":"http://qlogo2.store.qq.com/qzonelogo/252598321/1/0","money":16232,"pf":0,"uId":252531122,"uin":252598321,"userName":"︶ㄣ︶ㄣ鹏","yellowlevel":0,"yellowstatus":0},{"exp":4931,"headPic":"http://imgcache.qq.com/qzone_v4/client/userinfo_icon/3011.gif","money":51048,"pf":0,"uId":253043251,"uin":253122633,"userName":"深圳宇","yellowlevel":0,"yellowstatus":0},{"exp":1476,"headPic":"http://imgcache.qq.com/qzone_v4/client/userinfo_icon/2010.gif","money":23610,"pf":0,"uId":253592203,"uin":253506140,"userName":"上帝的宠儿","yellowlevel":0,"yellowstatus":0},{"exp":63787,"headPic":"http://qlogo2.store.qq.com/qzonelogo/253789417/1/1254808052","money":0,"pf":1,"uId":253487011,"uin":253789417,"userName":"4224。5。","yellowlevel":0,"yellowstatus":0},{"exp":21330,"headPic":"http://qlogo2.store.qq.com/qzonelogo/270118897/1/1241851054","money":374776,"pf":0,"uId":270986103,"uin":270118897,"userName":"&#9733; F1ona","yellowlevel":1,"yellowstatus":1},{"exp":73866,"headPic":"http://qlogo1.store.qq.com/qzonelogo/274103592/1/1241659414","money":192147,"pf":1,"uId":274703191,"uin":274103592,"userName":"老羽","yellowlevel":0,"yellowstatus":0},{"exp":68510,"headPic":"http://qlogo2.store.qq.com/qzonelogo/274300645/1/0","money":517338,"pf":1,"uId":274963292,"uin":274300645,"userName":"Say.NoОо ","yellowlevel":0,"yellowstatus":0},{"exp":37029,"headPic":"http://imgcache.qq.com/qzone_v4/client/userinfo_icon/5001.gif","money":247232,"pf":1,"uId":274258589,"uin":274784607,"userName":"HeadWait","yellowlevel":0,"yellowstatus":0},{"exp":28575,"headPic":"http://imgcache.qq.com/qzone_v4/client/userinfo_icon/5001.gif","money":691,"pf":0,"uId":275909114,"uin":275942023,"userName":"disanny","yellowlevel":0,"yellowstatus":0},{"exp":81068,"headPic":"http://imgcache.qq.com/qzone_v4/client/userinfo_icon/3011.gif","money":46655,"pf":1,"uId":276916333,"uin":276741389,"userName":"孟子","yellowlevel":0,"yellowstatus":0},{"exp":10212,"headPic":"http://qlogo4.store.qq.com/qzonelogo/277311555/1/1252848675","money":70922,"pf":0,"uId":277223345,"uin":277311555,"userName":"一米阳光","yellowlevel":0,"yellowstatus":0},{"exp":4588,"headPic":"http://imgcache.qq.com/qzone_v4/client/userinfo_icon/5001.gif","money":29742,"pf":0,"uId":277392194,"uin":277458465,"userName":"尹翔","yellowlevel":0,"yellowstatus":0},{"exp":18684,"headPic":"http://qlogo2.store.qq.com/qzonelogo/280905365/1/1259647848","money":1186,"pf":0,"uId":280027637,"uin":280905365,"userName":"s","yellowlevel":0,"yellowstatus":0},{"exp":42454,"headPic":"http://qlogo3.store.qq.com/qzonelogo/282732662/1/1260247893","money":340656,"pf":1,"uId":282086504,"uin":282732662,"userName":"五月天","yellowlevel":0,"yellowstatus":0},{"exp":38129,"headPic":"http://imgcache.qq.com/qzone_v4/client/userinfo_icon/2009.gif","money":112646,"pf":0,"uId":283485499,"uin":283262753,"userName":"柚子","yellowlevel":0,"yellowstatus":0},{"exp":96958,"headPic":"http://qlogo2.store.qq.com/qzonelogo/283418541/1/1228042427","money":1092488,"pf":1,"uId":283933722,"uin":283418541,"userName":"ら 向ㄖ 葵","yellowlevel":0,"yellowstatus":0},{"exp":33622,"headPic":"http://imgcache.qq.com/qzone_v4/client/userinfo_icon/5001.gif","money":32972,"pf":0,"uId":283128696,"uin":283598522,"userName":"麦子","yellowlevel":0,"yellowstatus":0},{"exp":3932,"headPic":"http://qlogo1.store.qq.com/qzonelogo/287357856/1/1260372952","money":3009,"pf":0,"uId":287582313,"uin":287357856,"userName":"-Mebel","yellowlevel":0,"yellowstatus":0},{"exp":4767,"headPic":"http://qlogo4.store.qq.com/qzonelogo/296779279/1/1258618966","money":45284,"pf":0,"uId":296344164,"uin":296779279,"userName":"\\(^o^)/~(&#8857;o","yellowlevel":0,"yellowstatus":0},{"exp":100831,"headPic":"http://qlogo1.store.qq.com/qzonelogo/297123412/1/1232540684","money":318136,"pf":1,"uId":297268666,"uin":297123412,"userName":" ゛廸﹎廸","yellowlevel":6,"yellowstatus":1},{"exp":31219,"headPic":"http://qlogo1.store.qq.com/qzonelogo/303239140/1/1227016702","money":64717,"pf":1,"uId":303727504,"uin":303239140,"userName":"幸福的糊涂","yellowlevel":2,"yellowstatus":1},{"exp":2478,"headPic":"http://imgcache.qq.com/qzone_v4/client/userinfo_icon/2005.gif","money":36773,"pf":0,"uId":304123688,"uin":304093283,"userName":"小懒","yellowlevel":0,"yellowstatus":0},{"exp":84045,"headPic":"http://qlogo2.store.qq.com/qzonelogo/304562069/1/1253973395","money":655138,"pf":1,"uId":304618226,"uin":304562069,"userName":" &nbsp; &nbsp;、秀秀","yellowlevel":4,"yellowstatus":0},{"exp":56242,"headPic":"http://qlogo3.store.qq.com/qzonelogo/305747042/1/1264308597","money":78113,"pf":0,"uId":305982052,"uin":305747042,"userName":"冰之泪","yellowlevel":0,"yellowstatus":0},{"exp":272,"headPic":"http://qlogo3.store.qq.com/qzonelogo/309300050/1/1261036418","money":3352,"pf":0,"uId":309449255,"uin":309300050,"userName":" &nbsp;Jinho","yellowlevel":0,"yellowstatus":0},{"exp":693,"headPic":"http://qlogo2.store.qq.com/qzonelogo/309957517/1/0","money":7321,"pf":0,"uId":309648716,"uin":309957517,"userName":"&#8743;ir","yellowlevel":0,"yellowstatus":0},{"exp":726,"headPic":"http://imgcache.qq.com/qzone_v4/client/userinfo_icon/5001.gif","money":9435,"pf":0,"uId":312129171,"uin":312143194,"userName":"天天天蓝","yellowlevel":0,"yellowstatus":0},{"exp":73534,"headPic":"http://qlogo1.store.qq.com/qzonelogo/313216300/1/1240127895","money":26012,"pf":1,"uId":313788419,"uin":313216300,"userName":" an @_@ &nbsp;","yellowlevel":0,"yellowstatus":0},{"exp":27664,"headPic":"http://qlogo1.store.qq.com/qzonelogo/314399336/1/1233258649","money":156114,"pf":0,"uId":314123401,"uin":314399336,"userName":"天府浪子","yellowlevel":0,"yellowstatus":0},{"exp":1549,"headPic":"http://imgcache.qq.com/qzone_v4/client/userinfo_icon/4013.gif","money":11687,"pf":0,"uId":317681008,"uin":317609340,"userName":"马汉","yellowlevel":0,"yellowstatus":0},{"exp":124180,"headPic":"http://qlogo4.store.qq.com/qzonelogo/330215247/1/0","money":68151,"pf":1,"uId":330230708,"uin":330215247,"userName":"/:P紫丁香","yellowlevel":0,"yellowstatus":0},{"exp":35611,"headPic":"http://qlogo1.store.qq.com/qzonelogo/331925684/1/1234149289","money":55660,"pf":0,"uId":331474443,"uin":331925684,"userName":"畅畅","yellowlevel":0,"yellowstatus":0},{"exp":30239,"headPic":"http://qlogo4.store.qq.com/qzonelogo/332645671/1/1246669045","money":91375,"pf":0,"uId":332926094,"uin":332645671,"userName":"青皮桔子","yellowlevel":0,"yellowstatus":0},{"exp":35813,"headPic":"http://imgcache.qq.com/qzone_v4/client/userinfo_icon/2016.gif","money":170248,"pf":1,"uId":340800984,"uin":340200618,"userName":"&#8214;&#9679;圆`","yellowlevel":0,"yellowstatus":0},{"exp":9631,"headPic":"http://imgcache.qq.com/qzone_v4/client/userinfo_icon/5001.gif","money":4206,"pf":0,"uId":341059149,"uin":341788246,"userName":"Emma","yellowlevel":0,"yellowstatus":0},{"exp":75146,"headPic":"http://qlogo1.store.qq.com/qzonelogo/343610908/1/0","money":66291,"pf":1,"uId":343369590,"uin":343610908,"userName":"郝南仁","yellowlevel":7,"yellowstatus":1},{"exp":14152,"headPic":"http://imgcache.qq.com/qzone_v4/client/userinfo_icon/5001.gif","money":23719,"pf":0,"uId":343543676,"uin":343773520,"userName":"子木","yellowlevel":0,"yellowstatus":0},{"exp":50903,"headPic":"http://qlogo1.store.qq.com/qzonelogo/346349728/1/1244108563","money":206873,"pf":1,"uId":346569434,"uin":346349728,"userName":"HaHaHaHa/:D","yellowlevel":0,"yellowstatus":0},{"exp":1126,"headPic":"http://imgcache.qq.com/qzone_v4/client/userinfo_icon/3001.gif","money":6027,"pf":0,"uId":346052073,"uin":346627581,"userName":"/aiq青の栗","yellowlevel":0,"yellowstatus":0},{"exp":31138,"headPic":"http://imgcache.qq.com/qzone_v4/client/userinfo_icon/1005.gif","money":1067,"pf":0,"uId":348117783,"uin":348261490,"userName":"四海一家","yellowlevel":0,"yellowstatus":0},{"exp":10988,"headPic":"http://qlogo1.store.qq.com/qzonelogo/353324980/1/1250147829","money":20473,"pf":0,"uId":353705277,"uin":353324980,"userName":"唯一","yellowlevel":0,"yellowstatus":0},{"exp":58087,"headPic":"http://imgcache.qq.com/qzone_v4/client/userinfo_icon/5001.gif","money":69508,"pf":1,"uId":354107477,"uin":354085459,"userName":"咱、/疼你","yellowlevel":0,"yellowstatus":0},{"exp":1524,"headPic":"http://qlogo2.store.qq.com/qzonelogo/360213021/1/0","money":10744,"pf":0,"uId":360573208,"uin":360213021,"userName":"想想小七","yellowlevel":0,"yellowstatus":0},{"exp":101843,"headPic":"http://imgcache.qq.com/qzone_v4/client/userinfo_icon/4013.gif","money":52083,"pf":1,"uId":361229347,"uin":361094080,"userName":"旭日东升","yellowlevel":0,"yellowstatus":0},{"exp":82395,"headPic":"http://qlogo1.store.qq.com/qzonelogo/361474308/1/1255679289","money":603545,"pf":0,"uId":361330943,"uin":361474308,"userName":"开心就好","yellowlevel":0,"yellowstatus":0},{"exp":52990,"headPic":"http://qlogo3.store.qq.com/qzonelogo/362523706/1/1249113968","money":1001146,"pf":1,"uId":362254808,"uin":362523706,"userName":"じ&#9734;ve怺嘸","yellowlevel":6,"yellowstatus":1},{"exp":40649,"headPic":"http://qlogo1.store.qq.com/qzonelogo/362876972/1/1261805053","money":202,"pf":0,"uId":362063017,"uin":362876972,"userName":"伴我纵横","yellowlevel":0,"yellowstatus":0},{"exp":10718,"headPic":"http://qlogo3.store.qq.com/qzonelogo/363668190/1/1248261028","money":101104,"pf":0,"uId":363476523,"uin":363668190,"userName":"飞非妃","yellowlevel":0,"yellowstatus":0},{"exp":45530,"headPic":"http://qlogo3.store.qq.com/qzonelogo/364774646/1/1256313172","money":716213,"pf":0,"uId":364487312,"uin":364774646,"userName":"竹林沨","yellowlevel":0,"yellowstatus":0},{"exp":51103,"headPic":"http://imgcache.qq.com/qzone_v4/client/userinfo_icon/5001.gif","money":130591,"pf":1,"uId":369126297,"uin":369028799,"userName":"恩缘","yellowlevel":0,"yellowstatus":0},{"exp":4721,"headPic":"http://imgcache.qq.com/qzone_v4/client/userinfo_icon/5001.gif","money":28415,"pf":0,"uId":369935128,"uin":369823808,"userName":"远 &nbsp;方","yellowlevel":0,"yellowstatus":0},{"exp":3439,"headPic":"http://qlogo4.store.qq.com/qzonelogo/371631111/1/1258120264","money":8566,"pf":1,"uId":371240998,"uin":371631111,"userName":"&#9507;&#9608;一生有","yellowlevel":0,"yellowstatus":0},{"exp":28339,"headPic":"http://imgcache.qq.com/qzone_v4/client/userinfo_icon/5001.gif","money":44826,"pf":0,"uId":373182722,"uin":373676634,"userName":"李刚","yellowlevel":0,"yellowstatus":0},{"exp":2001,"headPic":"http://imgcache.qq.com/qzone_v4/client/userinfo_icon/5001.gif","money":3718,"pf":0,"uId":373298539,"uin":373692270,"userName":"Juno","yellowlevel":0,"yellowstatus":0},{"exp":29369,"headPic":"http://imgcache.qq.com/qzone_v4/client/userinfo_icon/5001.gif","money":339918,"pf":1,"uId":375503951,"uin":375590793,"userName":"kitty","yellowlevel":0,"yellowstatus":0},{"exp":8993,"headPic":"http://qlogo2.store.qq.com/qzonelogo/375855985/1/1248509715","money":28677,"pf":0,"uId":375061638,"uin":375855985,"userName":"调皮贝*]_[*","yellowlevel":0,"yellowstatus":0},{"exp":41624,"headPic":"http://imgcache.qq.com/qzone_v4/client/userinfo_icon/4014.gif","money":78639,"pf":0,"uId":376311104,"uin":376666570,"userName":"自由風","yellowlevel":0,"yellowstatus":0},{"exp":43918,"headPic":"http://qlogo4.store.qq.com/qzonelogo/376898031/1/1260935941","money":3631,"pf":0,"uId":376649356,"uin":376898031,"userName":"新竹有点远","yellowlevel":0,"yellowstatus":0},{"exp":30400,"headPic":"http://qlogo2.store.qq.com/qzonelogo/378111777/1/1236383071","money":59864,"pf":0,"uId":378479008,"uin":378111777,"userName":"硕航俄语学","yellowlevel":0,"yellowstatus":0},{"exp":2302,"headPic":"http://imgcache.qq.com/qzone_v4/client/userinfo_icon/5001.gif","money":29399,"pf":0,"uId":379991084,"uin":379271898,"userName":"〖蓝色幽灵","yellowlevel":0,"yellowstatus":0},{"exp":26654,"headPic":"http://imgcache.qq.com/qzone_v4/client/userinfo_icon/5001.gif","money":68106,"pf":0,"uId":379638525,"uin":379772357,"userName":"bolin","yellowlevel":0,"yellowstatus":0},{"exp":8407,"headPic":"http://imgcache.qq.com/qzone_v4/client/userinfo_icon/5001.gif","money":44753,"pf":0,"uId":380292104,"uin":380859428,"userName":"明天会更好","yellowlevel":0,"yellowstatus":0},{"exp":5545,"headPic":"http://qlogo4.store.qq.com/qzonelogo/381121719/1/1252836647","money":54466,"pf":0,"uId":381547586,"uin":381121719,"userName":" &nbsp; &nbsp;Na 夜 。","yellowlevel":0,"yellowstatus":0},{"exp":101636,"headPic":"http://qlogo1.store.qq.com/qzonelogo/382257996/1/1255019938","money":120811,"pf":1,"uId":382094692,"uin":382257996,"userName":"&#9679;\"幸福佑","yellowlevel":0,"yellowstatus":0},{"exp":640,"headPic":"http://qlogo3.store.qq.com/qzonelogo/383177598/1/0","money":35,"pf":0,"uId":383837740,"uin":383177598,"userName":"忧扬颖枫","yellowlevel":0,"yellowstatus":0},{"exp":210643,"headPic":"http://qlogo1.store.qq.com/qzonelogo/383630860/1/1261745143","money":5767638,"pf":1,"uId":383398053,"uin":383630860,"userName":"寶寶の貝貝","yellowlevel":4,"yellowstatus":1},{"exp":34788,"headPic":"http://qlogo2.store.qq.com/qzonelogo/383638361/1/1264444972","money":720157,"pf":1,"uId":383750053,"uin":383638361,"userName":"じ&#242;ぴ&#233;聼","yellowlevel":3,"yellowstatus":1},{"exp":2910,"headPic":"http://imgcache.qq.com/qzone_v4/client/userinfo_icon/5001.gif","money":13769,"pf":0,"uId":393363161,"uin":393271267,"userName":"哈佛的秋天","yellowlevel":0,"yellowstatus":0},{"exp":3885,"headPic":"http://imgcache.qq.com/qzone_v4/client/userinfo_icon/5001.gif","money":9009,"pf":0,"uId":393236354,"uin":393909470,"userName":"Jason","yellowlevel":0,"yellowstatus":0},{"exp":228,"headPic":"http://qlogo1.store.qq.com/qzonelogo/394001664/1/0","money":650,"pf":0,"uId":394654878,"uin":394001664,"userName":"樑 &nbsp; &nbsp;铣牲.o","yellowlevel":0,"yellowstatus":0},{"exp":10479,"headPic":"http://imgcache.qq.com/qzone_v4/client/userinfo_icon/3011.gif","money":71131,"pf":0,"uId":401796617,"uin":401120554,"userName":"天天天蓝","yellowlevel":0,"yellowstatus":0},{"exp":2494,"headPic":"http://imgcache.qq.com/qzone_v4/client/userinfo_icon/2005.gif","money":30047,"pf":0,"uId":409406043,"uin":409700504,"userName":"Zero","yellowlevel":1,"yellowstatus":1},{"exp":8505,"headPic":"http://qlogo1.store.qq.com/qzonelogo/413563452/1/1255776143","money":1009669,"pf":1,"uId":413955873,"uin":413563452,"userName":"家和万事兴","yellowlevel":0,"yellowstatus":0},{"exp":15550,"headPic":"http://imgcache.qq.com/qzone_v4/client/userinfo_icon/5001.gif","money":33444,"pf":0,"uId":415509442,"uin":415877582,"userName":"゛默默等待","yellowlevel":0,"yellowstatus":0},{"exp":65320,"headPic":"http://imgcache.qq.com/qzone_v4/client/userinfo_icon/5001.gif","money":1898932,"pf":1,"uId":416169482,"uin":416351656,"userName":"じ&#9734;lo安宁v","yellowlevel":0,"yellowstatus":0},{"exp":79710,"headPic":"http://qlogo3.store.qq.com/qzonelogo/417870454/1/1264377389","money":87288,"pf":1,"uId":417032323,"uin":417870454,"userName":"冷傲cI-1&#9582;","yellowlevel":4,"yellowstatus":1},{"exp":50864,"headPic":"http://qlogo2.store.qq.com/qzonelogo/418866505/1/1252459240","money":511127,"pf":1,"uId":418380741,"uin":418866505,"userName":"朦胧爱","yellowlevel":0,"yellowstatus":0},{"exp":13144,"headPic":"http://qlogo4.store.qq.com/qzonelogo/419960323/1/0","money":14518,"pf":0,"uId":419997182,"uin":419960323,"userName":"成功--在路","yellowlevel":0,"yellowstatus":0},{"exp":1712,"headPic":"http://qlogo1.store.qq.com/qzonelogo/421598044/1/0","money":9068,"pf":0,"uId":421285945,"uin":421598044,"userName":"吴春一","yellowlevel":0,"yellowstatus":0},{"exp":32847,"headPic":"http://imgcache.qq.com/qzone_v4/client/userinfo_icon/5001.gif","money":6085,"pf":1,"uId":422053954,"uin":422583962,"userName":"","yellowlevel":0,"yellowstatus":0},{"exp":65080,"headPic":"http://qlogo3.store.qq.com/qzonelogo/422852586/1/1254564977","money":205978,"pf":1,"uId":422455203,"uin":422852586,"userName":"怡佳广告","yellowlevel":0,"yellowstatus":0},{"exp":35669,"headPic":"http://qlogo2.store.qq.com/qzonelogo/448500165/1/0","money":120463,"pf":0,"uId":448271311,"uin":448500165,"userName":"ぷ有心人ぷ","yellowlevel":0,"yellowstatus":0},{"exp":61655,"headPic":"http://imgcache.qq.com/qzone_v4/client/userinfo_icon/3011.gif","money":187849,"pf":1,"uId":448605436,"uin":448540602,"userName":"心在飞","yellowlevel":0,"yellowstatus":0},{"exp":84915,"headPic":"http://qlogo2.store.qq.com/qzonelogo/448776213/1/1246801597","money":88916,"pf":1,"uId":448158468,"uin":448776213,"userName":"ミ風流六少","yellowlevel":0,"yellowstatus":0},{"exp":59090,"headPic":"http://imgcache.qq.com/qzone_v4/client/userinfo_icon/5001.gif","money":196789,"pf":0,"uId":450724665,"uin":450865065,"userName":"&#9608;&#9608;&#9608;&#9608;&#9608;","yellowlevel":0,"yellowstatus":0},{"exp":34135,"headPic":"http://imgcache.qq.com/qzone_v4/client/userinfo_icon/3011.gif","money":84127,"pf":0,"uId":457277203,"uin":457303646,"userName":"＊﹏宠、雪","yellowlevel":0,"yellowstatus":0},{"exp":18464,"headPic":"http://qlogo3.store.qq.com/qzonelogo/457865938/1/1251727786","money":195156,"pf":1,"uId":457917379,"uin":457865938,"userName":"阿剑","yellowlevel":0,"yellowstatus":0},{"exp":939,"headPic":"http://imgcache.qq.com/qzone_v4/client/userinfo_icon/5001.gif","money":4354,"pf":0,"uId":472671840,"uin":472997686,"userName":"飘泊者","yellowlevel":0,"yellowstatus":0},{"exp":22950,"headPic":"http://imgcache.qq.com/qzone_v4/client/userinfo_icon/4002.gif","money":238322,"pf":1,"uId":476350629,"uin":476163057,"userName":"敏*_*/zt","yellowlevel":0,"yellowstatus":0},{"exp":41054,"headPic":"http://imgcache.qq.com/qzone_v4/client/userinfo_icon/3011.gif","money":12802,"pf":0,"uId":476096866,"uin":476409720,"userName":"诚诚ERP顾问","yellowlevel":0,"yellowstatus":0},{"exp":11576,"headPic":"http://qlogo3.store.qq.com/qzonelogo/490560886/1/1264798252","money":77965,"pf":0,"uId":490697564,"uin":490560886,"userName":"篠殤@時桄","yellowlevel":0,"yellowstatus":0},{"exp":9279,"headPic":"http://qlogo3.store.qq.com/qzonelogo/498692770/1/1261630321","money":96151,"pf":0,"uId":498824761,"uin":498692770,"userName":" &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;憶","yellowlevel":0,"yellowstatus":0},{"exp":20679,"headPic":"http://imgcache.qq.com/qzone_v4/client/userinfo_icon/5001.gif","money":70571,"pf":0,"uId":503828790,"uin":503593276,"userName":"珍","yellowlevel":0,"yellowstatus":0},{"exp":67615,"headPic":"http://qlogo4.store.qq.com/qzonelogo/504032191/1/1241709887","money":683060,"pf":1,"uId":504944732,"uin":504032191,"userName":"１9９0＇","yellowlevel":5,"yellowstatus":0},{"exp":1289,"headPic":"http://imgcache.qq.com/qzone_v4/client/userinfo_icon/2019.gif","money":3648,"pf":0,"uId":514117948,"uin":514391480,"userName":"Clare","yellowlevel":0,"yellowstatus":0},{"exp":18247,"headPic":"http://qlogo2.store.qq.com/qzonelogo/519771597/1/0","money":240987,"pf":1,"uId":519370135,"uin":519771597,"userName":"龙头老大","yellowlevel":0,"yellowstatus":0},{"exp":30995,"headPic":"http://imgcache.qq.com/qzone_v4/client/userinfo_icon/1013.gif","money":557445,"pf":0,"uId":523357200,"uin":523802965,"userName":"程彩荣","yellowlevel":0,"yellowstatus":0},{"exp":66175,"headPic":"http://qlogo4.store.qq.com/qzonelogo/527883283/1/1248399211","money":152718,"pf":0,"uId":527690375,"uin":527883283,"userName":"Rince","yellowlevel":0,"yellowstatus":0},{"exp":43474,"headPic":"http://qlogo1.store.qq.com/qzonelogo/527908420/1/1258542092","money":463024,"pf":1,"uId":527109372,"uin":527908420,"userName":"蛟龙","yellowlevel":0,"yellowstatus":0},{"exp":69,"headPic":"http://qlogo3.store.qq.com/qzonelogo/530986830/1/1250352929","money":3675,"pf":1,"uId":530160290,"uin":530986830,"userName":"龙行天下","yellowlevel":4,"yellowstatus":1},{"exp":6701,"headPic":"http://qlogo2.store.qq.com/qzonelogo/531087289/1/1236253183","money":133920,"pf":0,"uId":531331895,"uin":531087289,"userName":"爱永恒","yellowlevel":0,"yellowstatus":0},{"exp":12864,"headPic":"http://qlogo1.store.qq.com/qzonelogo/532044324/1/1241964136","money":45732,"pf":0,"uId":532884732,"uin":532044324,"userName":"蓝冰","yellowlevel":0,"yellowstatus":0},{"exp":16945,"headPic":"http://imgcache.qq.com/qzone_v4/client/userinfo_icon/5001.gif","money":27951,"pf":0,"uId":532697603,"uin":532234475,"userName":"乐飘飘","yellowlevel":0,"yellowstatus":0},{"exp":87686,"headPic":"http://qlogo1.store.qq.com/qzonelogo/532582284/1/1235548896","money":180639,"pf":1,"uId":532029670,"uin":532582284,"userName":"墨涵","yellowlevel":0,"yellowstatus":0},{"exp":15393,"headPic":"http://qlogo2.store.qq.com/qzonelogo/534183537/1/1236313728","money":19365,"pf":0,"uId":534913979,"uin":534183537,"userName":"珍惜现在","yellowlevel":0,"yellowstatus":0},{"exp":53935,"headPic":"http://imgcache.qq.com/qzone_v4/client/userinfo_icon/1005.gif","money":917536,"pf":0,"uId":543670194,"uin":543317116,"userName":"自私鬼","yellowlevel":0,"yellowstatus":0},{"exp":49164,"headPic":"http://qlogo1.store.qq.com/qzonelogo/544821008/1/1240436078","money":253356,"pf":1,"uId":544711993,"uin":544821008,"userName":" ","yellowlevel":0,"yellowstatus":0},{"exp":3474,"headPic":"http://qlogo2.store.qq.com/qzonelogo/546443197/1/1264488154","money":20880,"pf":0,"uId":546334206,"uin":546443197,"userName":"Beautiful ","yellowlevel":0,"yellowstatus":0},{"exp":1614,"headPic":"http://imgcache.qq.com/qzone_v4/client/userinfo_icon/1011.gif","money":15450,"pf":0,"uId":553962287,"uin":553577036,"userName":"伊,浅浔","yellowlevel":0,"yellowstatus":0},{"exp":23131,"headPic":"http://imgcache.qq.com/qzone_v4/client/userinfo_icon/1010.gif","money":151099,"pf":0,"uId":563905940,"uin":563339191,"userName":"Helen　Ekai","yellowlevel":0,"yellowstatus":0},{"exp":59171,"headPic":"http://qlogo2.store.qq.com/qzonelogo/568131537/1/1260780435","money":769067,"pf":1,"uId":568564335,"uin":568131537,"userName":"月下之樱","yellowlevel":0,"yellowstatus":0},{"exp":0,"headPic":"http://imgcache.qq.com/qzone_v4/client/userinfo_icon/5001.gif","money":500,"pf":0,"uId":573643938,"uin":573567355,"userName":"开创新生之","yellowlevel":0,"yellowstatus":0},{"exp":22355,"headPic":"http://imgcache.qq.com/qzone_v4/client/userinfo_icon/3012.gif","money":21150,"pf":0,"uId":574696979,"uin":574708717,"userName":" &nbsp;东","yellowlevel":0,"yellowstatus":0},{"exp":70033,"headPic":"http://qlogo4.store.qq.com/qzonelogo/574894975/1/1261213312","money":392575,"pf":1,"uId":574002571,"uin":574894975,"userName":" よ天注定/m","yellowlevel":0,"yellowstatus":0},{"exp":68077,"headPic":"http://qlogo2.store.qq.com/qzonelogo/575817297/1/1227009380","money":144449,"pf":1,"uId":575152453,"uin":575817297,"userName":"四叶幸运草","yellowlevel":0,"yellowstatus":0},{"exp":36728,"headPic":"http://imgcache.qq.com/qzone_v4/client/userinfo_icon/2005.gif","money":4978,"pf":0,"uId":578108745,"uin":578617339,"userName":"冰域剑客","yellowlevel":0,"yellowstatus":0},{"exp":503,"headPic":"http://qlogo3.store.qq.com/qzonelogo/594735606/1/1239325470","money":2091,"pf":0,"uId":594156759,"uin":594735606,"userName":"Etta ","yellowlevel":0,"yellowstatus":0},{"exp":52445,"headPic":"http://imgcache.qq.com/qzone_v4/client/userinfo_icon/4006.gif","money":69506,"pf":0,"uId":595210706,"uin":595725484,"userName":"jane","yellowlevel":0,"yellowstatus":0},{"exp":122177,"headPic":"http://qlogo1.store.qq.com/qzonelogo/597207112/1/1235574190","money":738544,"pf":1,"uId":597283590,"uin":597207112,"userName":"Ж孤独骑Ж","yellowlevel":0,"yellowstatus":0},{"exp":27200,"headPic":"http://imgcache.qq.com/qzone_v4/client/userinfo_icon/5001.gif","money":118536,"pf":0,"uId":604821333,"uin":604070489,"userName":"霸占.伱の","yellowlevel":0,"yellowstatus":0},{"exp":944,"headPic":"http://imgcache.qq.com/qzone_v4/client/userinfo_icon/3011.gif","money":3129,"pf":0,"uId":605130875,"uin":605809198,"userName":"南方飞龙","yellowlevel":0,"yellowstatus":0},{"exp":49611,"headPic":"http://imgcache.qq.com/qzone_v4/client/userinfo_icon/5001.gif","money":518458,"pf":0,"uId":609097079,"uin":609854781,"userName":"源园印刷厂","yellowlevel":0,"yellowstatus":0},{"exp":63310,"headPic":"http://qlogo3.store.qq.com/qzonelogo/610457682/1/1244645226","money":110778,"pf":0,"uId":610142412,"uin":610457682,"userName":"笑死。那回","yellowlevel":0,"yellowstatus":0},{"exp":0,"headPic":"http://qlogo1.store.qq.com/qzonelogo/615050000/1/1236613444","money":500,"pf":0,"uId":615913969,"uin":615050000,"userName":"小Q","yellowlevel":5,"yellowstatus":1},{"exp":15055,"headPic":"http://qlogo4.store.qq.com/qzonelogo/617223295/1/1261660256","money":47338,"pf":0,"uId":617593626,"uin":617223295,"userName":"摩羯座","yellowlevel":0,"yellowstatus":0},{"exp":100569,"headPic":"http://qlogo4.store.qq.com/qzonelogo/624550579/1/1241377149","money":124154,"pf":1,"uId":624526927,"uin":624550579,"userName":"时光飞流","yellowlevel":1,"yellowstatus":0},{"exp":38800,"headPic":"http://imgcache.qq.com/qzone_v4/client/userinfo_icon/1006.gif","money":101641,"pf":1,"uId":632097485,"uin":632353292,"userName":"慧子","yellowlevel":0,"yellowstatus":0},{"exp":30989,"headPic":"http://imgcache.qq.com/qzone_v4/client/userinfo_icon/2019.gif","money":61096,"pf":0,"uId":645708410,"uin":645014379,"userName":"寒冰；冷雪","yellowlevel":0,"yellowstatus":0},{"exp":4688,"headPic":"http://qlogo3.store.qq.com/qzonelogo/645382178/1/1248761067","money":27144,"pf":0,"uId":645740333,"uin":645382178,"userName":"哈宝&#183;&#8212;设","yellowlevel":0,"yellowstatus":0},{"exp":14856,"headPic":"http://imgcache.qq.com/qzone_v4/client/userinfo_icon/5001.gif","money":44097,"pf":0,"uId":651937554,"uin":651825679,"userName":"子荷","yellowlevel":0,"yellowstatus":0},{"exp":27919,"headPic":"http://qlogo2.store.qq.com/qzonelogo/654028541/1/1264683150","money":70509,"pf":0,"uId":654146302,"uin":654028541,"userName":"流泪手心","yellowlevel":1,"yellowstatus":1},{"exp":51128,"headPic":"http://imgcache.qq.com/qzone_v4/client/userinfo_icon/2016.gif","money":106800,"pf":1,"uId":670156600,"uin":670265297,"userName":"红枫叶","yellowlevel":0,"yellowstatus":0},{"exp":54165,"headPic":"http://imgcache.qq.com/qzone_v4/client/userinfo_icon/3012.gif","money":18493,"pf":0,"uId":670401970,"uin":670511618,"userName":"琼","yellowlevel":0,"yellowstatus":0},{"exp":554,"headPic":"http://qlogo1.store.qq.com/qzonelogo/675520816/1/1233903971","money":961,"pf":0,"uId":675627846,"uin":675520816,"userName":" 瀟湘婉一","yellowlevel":0,"yellowstatus":0},{"exp":81766,"headPic":"http://qlogo2.store.qq.com/qzonelogo/693114173/1/1263291169","money":111920,"pf":1,"uId":693389805,"uin":693114173,"userName":"小米.","yellowlevel":0,"yellowstatus":0},{"exp":47220,"headPic":"http://qlogo4.store.qq.com/qzonelogo/729037207/1/1257662838","money":45107,"pf":1,"uId":729300282,"uin":729037207,"userName":"~~小傻瓜~~","yellowlevel":0,"yellowstatus":0},{"exp":15998,"headPic":"http://qlogo1.store.qq.com/qzonelogo/737127980/1/1242138076","money":44747,"pf":0,"uId":737827333,"uin":737127980,"userName":"~~软心糖~~","yellowlevel":0,"yellowstatus":0},{"exp":21928,"headPic":"http://qlogo4.store.qq.com/qzonelogo/740065739/1/1253242231","money":88901,"pf":1,"uId":740880520,"uin":740065739,"userName":"婞諨ｄё眼","yellowlevel":0,"yellowstatus":0},{"exp":77311,"headPic":"http://qlogo1.store.qq.com/qzonelogo/741172996/1/1256543559","money":270815,"pf":0,"uId":741395094,"uin":741172996,"userName":"&#9792;&#8594;&#9733;慧兒","yellowlevel":0,"yellowstatus":0},{"exp":16059,"headPic":"http://imgcache.qq.com/qzone_v4/client/userinfo_icon/3011.gif","money":62597,"pf":0,"uId":744420418,"uin":744313334,"userName":"马兵","yellowlevel":0,"yellowstatus":0},{"exp":72062,"headPic":"http://imgcache.qq.com/qzone_v4/client/userinfo_icon/3012.gif","money":127325,"pf":0,"uId":769908244,"uin":769105130,"userName":"中思-胡晓","yellowlevel":0,"yellowstatus":0},{"exp":318,"headPic":"http://imgcache.qq.com/qzone_v4/client/userinfo_icon/2005.gif","money":1072,"pf":0,"uId":772123154,"uin":772114534,"userName":"自己看看吧","yellowlevel":0,"yellowstatus":0},{"exp":16220,"headPic":"http://imgcache.qq.com/qzone_v4/client/userinfo_icon/3011.gif","money":50412,"pf":0,"uId":784323141,"uin":784569233,"userName":"&#969;ǒ征哥&#951;ǐ","yellowlevel":0,"yellowstatus":0},{"exp":8249,"headPic":"http://qlogo4.store.qq.com/qzonelogo/785102031/1/1257951054","money":104471,"pf":1,"uId":785901266,"uin":785102031,"userName":"Ｂｙ'Tears..","yellowlevel":0,"yellowstatus":0},{"exp":36449,"headPic":"http://qlogo1.store.qq.com/qzonelogo/790027720/1/1262009148","money":44210,"pf":1,"uId":790064396,"uin":790027720,"userName":"小巧","yellowlevel":0,"yellowstatus":0},{"exp":27132,"headPic":"http://qlogo2.store.qq.com/qzonelogo/791525673/1/1264270768","money":133040,"pf":0,"uId":791374493,"uin":791525673,"userName":"得意","yellowlevel":0,"yellowstatus":0},{"exp":17045,"headPic":"http://imgcache.qq.com/qzone_v4/client/userinfo_icon/3011.gif","money":185776,"pf":0,"uId":805221711,"uin":805066700,"userName":"非我莫属","yellowlevel":0,"yellowstatus":0},{"exp":42431,"headPic":"http://qlogo4.store.qq.com/qzonelogo/806239503/1/1250835871","money":143392,"pf":1,"uId":806238606,"uin":806239503,"userName":" &nbsp; 臭 &nbsp;、狗","yellowlevel":0,"yellowstatus":0},{"exp":8667,"headPic":"http://qlogo1.store.qq.com/qzonelogo/836879348/1/1253322726","money":10814,"pf":0,"uId":836350584,"uin":836879348,"userName":"我是傻瓜","yellowlevel":0,"yellowstatus":0},{"exp":637,"headPic":"http://imgcache.qq.com/qzone_v4/client/userinfo_icon/1016.gif","money":673,"pf":0,"uId":840299588,"uin":840210098,"userName":"夏夜星辰","yellowlevel":0,"yellowstatus":0},{"exp":58839,"headPic":"http://imgcache.qq.com/qzone_v4/client/userinfo_icon/5001.gif","money":171842,"pf":1,"uId":845174300,"uin":845293144,"userName":"ご&#9734;媛","yellowlevel":2,"yellowstatus":0},{"exp":24076,"headPic":"http://qlogo2.store.qq.com/qzonelogo/847495901/1/1250836701","money":128953,"pf":1,"uId":847836436,"uin":847495901,"userName":" 綾薍d&#233;絗","yellowlevel":0,"yellowstatus":0},{"exp":6706,"headPic":"http://qlogo3.store.qq.com/qzonelogo/849511794/1/1255231126","money":19818,"pf":0,"uId":849437978,"uin":849511794,"userName":"&#8221;几点，几","yellowlevel":0,"yellowstatus":0},{"exp":33272,"headPic":"http://qlogo4.store.qq.com/qzonelogo/854409763/1/1262950301","money":96724,"pf":1,"uId":854752257,"uin":854409763,"userName":"殺獁特の星","yellowlevel":0,"yellowstatus":0},{"exp":234,"headPic":"http://imgcache.qq.com/qzone_v4/client/userinfo_icon/3012.gif","money":26,"pf":1,"uId":854870977,"uin":854453941,"userName":"昵昵","yellowlevel":4,"yellowstatus":0},{"exp":20702,"headPic":"http://qlogo4.store.qq.com/qzonelogo/858513383/1/1247365503","money":43687,"pf":0,"uId":858576535,"uin":858513383,"userName":"刘小","yellowlevel":0,"yellowstatus":0},{"exp":16403,"headPic":"http://imgcache.qq.com/qzone_v4/client/userinfo_icon/3011.gif","money":216880,"pf":0,"uId":859333376,"uin":859522852,"userName":"小刘","yellowlevel":0,"yellowstatus":0},{"exp":5952,"headPic":"http://imgcache.qq.com/qzone_v4/client/userinfo_icon/3012.gif","money":55724,"pf":0,"uId":859377886,"uin":859702247,"userName":"落花行","yellowlevel":0,"yellowstatus":0},{"exp":16431,"headPic":"http://qlogo3.store.qq.com/qzonelogo/862878862/1/1251017641","money":44425,"pf":0,"uId":862597472,"uin":862878862,"userName":"半支烟&#9602;,","yellowlevel":0,"yellowstatus":0},{"exp":3128,"headPic":"http://imgcache.qq.com/qzone_v4/client/userinfo_icon/3011.gif","money":3576,"pf":0,"uId":867140741,"uin":867558188,"userName":"宝宝","yellowlevel":0,"yellowstatus":0},{"exp":8810,"headPic":"http://qlogo1.store.qq.com/qzonelogo/870317032/1/1258556898","money":77954,"pf":0,"uId":870249383,"uin":870317032,"userName":".","yellowlevel":0,"yellowstatus":0},{"exp":56244,"headPic":"http://qlogo2.store.qq.com/qzonelogo/903775753/1/1234258448","money":139333,"pf":0,"uId":903732122,"uin":903775753,"userName":"ˇ富贵命ˇ","yellowlevel":0,"yellowstatus":0},{"exp":15914,"headPic":"http://imgcache.qq.com/qzone_v4/client/userinfo_icon/3011.gif","money":62955,"pf":0,"uId":908739589,"uin":908836444,"userName":"尹伟","yellowlevel":0,"yellowstatus":0},{"exp":16947,"headPic":"http://imgcache.qq.com/qzone_v4/client/userinfo_icon/3011.gif","money":69663,"pf":0,"uId":909889245,"uin":909938088,"userName":"易阳","yellowlevel":0,"yellowstatus":0},{"exp":734,"headPic":"http://imgcache.qq.com/qzone_v4/client/userinfo_icon/3011.gif","money":1764,"pf":0,"uId":909371976,"uin":909980883,"userName":"威客专用","yellowlevel":0,"yellowstatus":0},{"exp":31416,"headPic":"http://qlogo1.store.qq.com/qzonelogo/921479104/1/1249048556","money":1038,"pf":0,"uId":921340386,"uin":921479104,"userName":"天生一对","yellowlevel":0,"yellowstatus":0},{"exp":5401,"headPic":"http://imgcache.qq.com/qzone_v4/client/userinfo_icon/1002.gif","money":34002,"pf":0,"uId":923198896,"uin":923546014,"userName":"NEW贰&#9734;&#9733;&#8552;","yellowlevel":0,"yellowstatus":0},{"exp":11127,"headPic":"http://imgcache.qq.com/qzone_v4/client/userinfo_icon/3011.gif","money":168884,"pf":1,"uId":931231387,"uin":931298187,"userName":"风花雪月","yellowlevel":0,"yellowstatus":0},{"exp":5027,"headPic":"http://qlogo3.store.qq.com/qzonelogo/936223222/1/1250081769","money":10977,"pf":0,"uId":936624317,"uin":936223222,"userName":"FASHION秀","yellowlevel":0,"yellowstatus":0},{"exp":6038,"headPic":"http://qlogo1.store.qq.com/qzonelogo/942900192/1/1260858501","money":14596,"pf":0,"uId":942625031,"uin":942900192,"userName":"dearzhu","yellowlevel":0,"yellowstatus":0},{"exp":125204,"headPic":"http://imgcache.qq.com/qzone_v4/client/userinfo_icon/3011.gif","money":813582,"pf":0,"uId":949772821,"uin":949111171,"userName":"风之物语","yellowlevel":0,"yellowstatus":0},{"exp":416,"headPic":"http://qlogo3.store.qq.com/qzonelogo/951750650/1/1259241632","money":74,"pf":0,"uId":951425728,"uin":951750650,"userName":"靓仔仔","yellowlevel":0,"yellowstatus":0},{"exp":14885,"headPic":"http://imgcache.qq.com/qzone_v4/client/userinfo_icon/3011.gif","money":89654,"pf":0,"uId":959455232,"uin":959764965,"userName":"毅&#183;&#183;","yellowlevel":0,"yellowstatus":0},{"exp":4537,"headPic":"http://imgcache.qq.com/qzone_v4/client/userinfo_icon/3011.gif","money":53799,"pf":0,"uId":969495871,"uin":969026169,"userName":"幽灵在线","yellowlevel":0,"yellowstatus":0},{"exp":111899,"headPic":"http://imgcache.qq.com/qzone_v4/client/userinfo_icon/1002.gif","money":299689,"pf":1,"uId":983671874,"uin":983219907,"userName":"{}瓕誷過詬{","yellowlevel":0,"yellowstatus":0},{"exp":22722,"headPic":"http://qlogo3.store.qq.com/qzonelogo/990594878/1/1242286325","money":57611,"pf":0,"uId":990672287,"uin":990594878,"userName":"sunny","yellowlevel":0,"yellowstatus":0},{"exp":14891,"headPic":"http://qlogo1.store.qq.com/qzonelogo/994486628/1/1262170805","money":22860,"pf":0,"uId":994647966,"uin":994486628,"userName":"&#9312;/yl","yellowlevel":1,"yellowstatus":0},{"exp":28100,"headPic":"http://qlogo3.store.qq.com/qzonelogo/995907350/1/1259738007","money":30852,"pf":1,"uId":995915933,"uin":995907350,"userName":"舎/不舎得","yellowlevel":0,"yellowstatus":0},{"exp":8365,"headPic":"http://qlogo1.store.qq.com/qzonelogo/1016639504/1/1242738402","money":29608,"pf":0,"uId":1016489120,"uin":1016639504,"userName":"","yellowlevel":0,"yellowstatus":0},{"exp":37934,"headPic":"http://imgcache.qq.com/qzone_v4/client/userinfo_icon/3012.gif","money":145858,"pf":1,"uId":1020627237,"uin":1020436199,"userName":"い 168 ^ ","yellowlevel":0,"yellowstatus":0},{"exp":0,"headPic":"http://qlogo3.store.qq.com/qzonelogo/1061080714/1/1245675603","money":883,"pf":1,"uId":1061107622,"uin":1061080714,"userName":" ","yellowlevel":5,"yellowstatus":1},{"exp":7733,"headPic":"http://imgcache.qq.com/qzone_v4/client/userinfo_icon/3012.gif","money":55230,"pf":0,"uId":1062019206,"uin":1062133408,"userName":"jane","yellowlevel":0,"yellowstatus":0},{"exp":34768,"headPic":"http://imgcache.qq.com/qzone_v4/client/userinfo_icon/3011.gif","money":93964,"pf":0,"uId":1135926916,"uin":1135321579,"userName":"烟花鞭炮批","yellowlevel":0,"yellowstatus":0},{"exp":32332,"headPic":"http://qlogo3.store.qq.com/qzonelogo/1164636434/1/1248395315","money":91201,"pf":1,"uId":1164180302,"uin":1164636434,"userName":"小明","yellowlevel":0,"yellowstatus":0},{"exp":21841,"headPic":"http://qlogo4.store.qq.com/qzonelogo/1250514415/1/1260617808","money":209079,"pf":0,"uId":1250080273,"uin":1250514415,"userName":"健康是福","yellowlevel":0,"yellowstatus":0},{"exp":2614,"headPic":"http://imgcache.qq.com/qzone_v4/client/userinfo_icon/5001.gif","money":27816,"pf":0,"uId":1299164211,"uin":1299910400,"userName":"安千风","yellowlevel":0,"yellowstatus":0},{"exp":8838,"headPic":"http://qlogo1.store.qq.com/qzonelogo/1374063956/1/1263643660","money":88881,"pf":1,"uId":1374594472,"uin":1374063956,"userName":"^!_黑铒耵&#9485;","yellowlevel":0,"yellowstatus":0},{"exp":4011,"headPic":"http://imgcache.qq.com/qzone_v4/client/userinfo_icon/3012.gif","money":38096,"pf":0,"uId":1409048040,"uin":1409098668,"userName":"无语","yellowlevel":0,"yellowstatus":0},{"exp":3872,"headPic":"http://imgcache.qq.com/qzone_v4/client/userinfo_icon/5001.gif","money":18883,"pf":0,"uId":1409261564,"uin":1409955644,"userName":"小米农夫","yellowlevel":0,"yellowstatus":0},{"exp":949,"headPic":"http://imgcache.qq.com/qzone_v4/client/userinfo_icon/5001.gif","money":3207,"pf":0,"uId":1416059765,"uin":1416814168,"userName":"1416814168","yellowlevel":0,"yellowstatus":0}]</div><div><br /></div><div><br /></div><div>四、获取处理好友</div><div>http://mc.qzone.qq.com/cgi-bin/cgi_get_Exp</div><div><br /></div><div>expflag<span class="Apple-tab-span" style="white-space:pre">	</span>0</div><div>farmKey<span class="Apple-tab-span" style="white-space:pre">	</span>c64f90f533b37764e7d87848537d6635</div><div>farmTime<span class="Apple-tab-span" style="white-space:pre">	</span>1265182922</div><div>optflag<span class="Apple-tab-span" style="white-space:pre">	</span>1</div><div>uidlist<span class="Apple-tab-span" style="white-space:pre">	</span>9657232|26702809|9017833|2177417|118862903|49025093|530160290|150287863|15474201|1061107622|416169482|183392456|597283590|33363108|44984197|297268666|343369590|383398053|43717052|88549293|504944732|86826399|78420481|346569434|574002571|304618226|41157953|383750053|806238606|693389805|437851|354107477|417032323|120948887|112663787|283933722|75778037|164247686|446373|24053357|49321056|84511504|362254808|10642928|274963292|9850508|282086504|63225139|532029670|223632747|66772258|252081733|66936906|5391124|1857368|594569|223849554|56592512|375503951|6817912|575152453|448158468|448605436|185245844|413955873|847836436|93173287|670156600|68787953|313788419|382094692|54892798|931231387|5526005|845174300|983671874|422053954|57650889|790064396|361229347|418380741|59045457|215056022|330230708|729300282|157229217|121057126|519370135|544711993|422455203|624526927|527109372|93627615|274258589|101606953|369126297|340800984|476350629|1374594472|36719486|276916333|151309828|568564335|274703191|175557205|1164180302|303727504|1020627237|854752257|82232933|371240998|619279|253487011|51346556|740880520|367749|139155210|214518950|457917379|197982120|18661038|228252094|196362202|106839657|66367364|995915933|82017360|3260808|785901266|6987332|632097485|854870977|631534|331474443|47530514|252531122|253043251|253592203|52316828|270986103|178991446|43157842|173746766|275909114|171037139|277223345|277392194|280027637|40114530|283485499|40514815|283128696|287582313|296344164|39608010|166791005|304123688|36521746|305982052|309449255|309648716|312129171|54391363|251940703|317681008|160669987|251124802|332926094|156579501|341059149|32389519|343543676|29306608|346052073|348117783|353705277|29049687|249439035|154216061|361330943|27820712|362063017|363476523|248069124|147293518|369935128|54088570|245565848|373298539|56789581|375061638|215194029|119058729|234033122|232252811|115318661|380292104|66566035|191129794|229949124|360573208|22021100|393363161|393236354|394654878|401796617|184684764|18395039|415509442|18159516|190382367|57941681|419997182|421285945|52788983|94761340|448271311|12445872|6735467|450724665|457277203|184631386|472671840|58171919|476096866|490697564|498824761|503828790|364487312|514117948|86945550|523357200|527690375|84417767|59636787|531331895|532884732|532697603|4679520|534913979|543670194|373182722|546334206|553962287|563905940|80412860|573643938|574696979|3797195|378479008|578108745|594156759|595210706|3254740|604821333|605130875|609097079|610142412|615913969|617593626|80583276|190843718|645708410|645740333|651937554|654146302|184700172|670401970|675627846|89024|79935382|737827333|116506300|741395094|744420418|769908244|772123154|784323141|113601240|65246936|791374493|805221711|231377|836350584|840299588|78408505|383837740|849437978|24963348|409406043|858576535|859333376|859377886|862597472|867140741|870249383|903732122|908739589|909889245|909371976|921340386|923198896|25583091|936624317|942625031|949772821|951425728|959455232|969495871|376311104|990672287|994647966|376649356|1016489120|379991084|902579|1062019206|1135926916|379638525|1250080273|1299164211|381547586|1409048040|1409261564|1416059765|314123401|undefined|</div><div>uIdx<span class="Apple-tab-span" style="white-space:pre">	</span>88549293</div><div><br /></div><div>Data</div><div>{"msg":"success","result":0,"serverTime":1265182923,"userFlag":{"101606953":{"b":0,"g":0,"p":0,"t":0},"1020627237":{"b":1265179877,"g":1265174529,"p":1265179877,"t":0},"1061107622":{"b":0,"g":0,"p":0,"t":0},"10642928":{"b":0,"g":0,"p":0,"t":0},"106839657":{"b":0,"g":1265190650,"p":0,"t":0},"112663787":{"b":0,"g":1265206495,"p":0,"t":0},"1164180302":{"b":0,"g":0,"p":0,"t":0},"118862903":{"b":0,"g":1265200840,"p":0,"t":1265183028},"120948887":{"b":0,"g":1265185040,"p":0,"t":0},"121057126":{"b":0,"g":1265190693,"p":0,"t":0},"1374594472":{"b":0,"g":0,"p":0,"t":0},"139155210":{"b":0,"g":0,"p":0,"t":0},"150287863":{"b":0,"g":1265193991,"p":0,"t":0},"151309828":{"b":0,"g":1265189365,"p":0,"t":0},"15474201":{"b":0,"g":1265183657,"p":0,"t":0},"157229217":{"b":0,"g":1265184336,"p":1265182860,"t":0},"164247686":{"b":0,"g":1265192881,"p":0,"t":0},"175557205":{"b":0,"g":1265220272,"p":0,"t":1265177250},"183392456":{"b":0,"g":1265185059,"p":0,"t":0},"185245844":{"b":0,"g":1265186784,"p":0,"t":0},"1857368":{"b":0,"g":1265195635,"p":1265181850,"t":0},"18661038":{"b":0,"g":0,"p":0,"t":0},"196362202":{"b":0,"g":0,"p":0,"t":0},"197982120":{"b":0,"g":0,"p":0,"t":0},"214518950":{"b":0,"g":0,"p":0,"t":0},"215056022":{"b":0,"g":1265211966,"p":0,"t":0},"2177417":{"b":0,"g":0,"p":0,"t":0},"223632747":{"b":0,"g":0,"p":0,"t":0},"223849554":{"b":0,"g":1265199134,"p":0,"t":0},"228252094":{"b":0,"g":0,"p":0,"t":0},"24053357":{"b":0,"g":1265196895,"p":0,"t":0},"252081733":{"b":0,"g":1265190616,"p":0,"t":0},"253487011":{"b":0,"g":0,"p":0,"t":0},"26702809":{"b":0,"g":1265188940,"p":0,"t":0},"274258589":{"b":0,"g":0,"p":0,"t":0},"274703191":{"b":0,"g":1265192581,"p":0,"t":0},"274963292":{"b":0,"g":1265190112,"p":0,"t":0},"276916333":{"b":0,"g":1265185289,"p":0,"t":0},"282086504":{"b":0,"g":1265190002,"p":0,"t":0},"283933722":{"b":0,"g":1265190547,"p":0,"t":0},"297268666":{"b":0,"g":1265183212,"p":0,"t":0},"303727504":{"b":0,"g":1265242901,"p":0,"t":0},"304618226":{"b":0,"g":1265206251,"p":0,"t":0},"313788419":{"b":0,"g":1265186057,"p":0,"t":0},"3260808":{"b":0,"g":0,"p":0,"t":0},"330230708":{"b":0,"g":0,"p":0,"t":0},"33363108":{"b":0,"g":1265198069,"p":0,"t":0},"340800984":{"b":0,"g":1265231551,"p":0,"t":0},"343369590":{"b":0,"g":1265201169,"p":0,"t":0},"346569434":{"b":0,"g":1265190735,"p":0,"t":1265180572},"354107477":{"b":0,"g":1265187879,"p":0,"t":0},"361229347":{"b":0,"g":1265183595,"p":0,"t":1265180532},"362254808":{"b":0,"g":0,"p":0,"t":0},"36719486":{"b":0,"g":0,"p":0,"t":0},"367749":{"b":0,"g":0,"p":0,"t":0},"369126297":{"b":0,"g":1265188300,"p":0,"t":0},"371240998":{"b":0,"g":0,"p":0,"t":0},"375503951":{"b":0,"g":1265186485,"p":0,"t":0},"382094692":{"b":0,"g":1265187796,"p":0,"t":0},"383398053":{"b":0,"g":1265198921,"p":0,"t":0},"383750053":{"b":0,"g":1265184092,"p":0,"t":0},"41157953":{"b":0,"g":1265186977,"p":0,"t":0},"413955873":{"b":0,"g":1265197967,"p":0,"t":0},"416169482":{"b":0,"g":1265196478,"p":0,"t":0},"417032323":{"b":0,"g":1265182677,"p":0,"t":0},"418380741":{"b":0,"g":1265194963,"p":0,"t":0},"422053954":{"b":0,"g":0,"p":0,"t":0},"422455203":{"b":0,"g":1265179884,"p":0,"t":0},"43717052":{"b":0,"g":1265184401,"p":0,"t":0},"437851":{"b":0,"g":0,"p":0,"t":0},"446373":{"b":0,"g":0,"p":0,"t":0},"448158468":{"b":0,"g":0,"p":0,"t":0},"448605436":{"b":0,"g":1265212446,"p":0,"t":0},"44984197":{"b":0,"g":1265189238,"p":0,"t":0},"457917379":{"b":0,"g":0,"p":0,"t":0},"476350629":{"b":0,"g":1265193789,"p":0,"t":0},"49025093":{"b":0,"g":1265183515,"p":0,"t":0},"49321056":{"b":0,"g":1265192746,"p":0,"t":0},"504944732":{"b":0,"g":0,"p":0,"t":0},"51346556":{"b":0,"g":0,"p":0,"t":0},"519370135":{"b":1265182446,"g":1265200551,"p":0,"t":0},"527109372":{"b":0,"g":0,"p":0,"t":0},"530160290":{"b":0,"g":0,"p":0,"t":0},"532029670":{"b":0,"g":1265196665,"p":0,"t":1265182794},"5391124":{"b":0,"g":0,"p":0,"t":0},"544711993":{"b":1265182915,"g":0,"p":0,"t":0},"54892798":{"b":0,"g":1265201389,"p":0,"t":1265179948},"5526005":{"b":0,"g":0,"p":0,"t":0},"56592512":{"b":0,"g":0,"p":1265182734,"t":1265181856},"568564335":{"b":0,"g":1265192734,"p":0,"t":0},"574002571":{"b":0,"g":1265193112,"p":0,"t":0},"575152453":{"b":0,"g":0,"p":0,"t":0},"57650889":{"b":0,"g":1265204792,"p":0,"t":0},"59045457":{"b":0,"g":0,"p":0,"t":0},"594569":{"b":0,"g":1265184830,"p":0,"t":0},"597283590":{"b":0,"g":1265198310,"p":0,"t":0},"619279":{"b":0,"g":0,"p":0,"t":0},"624526927":{"b":0,"g":0,"p":0,"t":0},"631534":{"b":0,"g":0,"p":0,"t":0},"632097485":{"b":0,"g":0,"p":1265178866,"t":1265171749},"63225139":{"b":0,"g":1265193106,"p":0,"t":0},"66367364":{"b":0,"g":0,"p":0,"t":0},"66772258":{"b":0,"g":0,"p":0,"t":0},"66936906":{"b":0,"g":1265194535,"p":0,"t":0},"670156600":{"b":0,"g":1265184565,"p":0,"t":0},"6817912":{"b":0,"g":1265186145,"p":0,"t":0},"68787953":{"b":0,"g":1265187346,"p":0,"t":0},"693389805":{"b":0,"g":1265192072,"p":0,"t":0},"6987332":{"b":0,"g":0,"p":0,"t":0},"729300282":{"b":1265181837,"g":1265206922,"p":0,"t":0},"740880520":{"b":0,"g":0,"p":0,"t":0},"75778037":{"b":0,"g":0,"p":0,"t":0},"78420481":{"b":0,"g":1265183001,"p":0,"t":1265182158},"785901266":{"b":0,"g":0,"p":0,"t":0},"790064396":{"b":0,"g":0,"p":0,"t":0},"806238606":{"b":0,"g":1265195710,"p":0,"t":1265175307},"82017360":{"b":0,"g":1265193411,"p":0,"t":0},"82232933":{"b":0,"g":1265141375,"p":0,"t":0},"84511504":{"b":0,"g":1265194177,"p":0,"t":0},"845174300":{"b":0,"g":1265190074,"p":0,"t":0},"847836436":{"b":0,"g":1265187044,"p":0,"t":0},"854752257":{"b":0,"g":0,"p":0,"t":0},"854870977":{"b":0,"g":0,"p":0,"t":0},"86826399":{"b":0,"g":1265206117,"p":0,"t":0},"88549293":{"b":0,"g":1265191991,"p":0,"t":0},"9017833":{"b":0,"g":1265185409,"p":0,"t":0},"931231387":{"b":0,"g":0,"p":1265182907,"t":0},"93173287":{"b":0,"g":1265200344,"p":0,"t":0},"93627615":{"b":0,"g":1265194930,"p":0,"t":0},"9657232":{"b":0,"g":1265194925,"p":0,"t":0},"983671874":{"b":0,"g":1265189310,"p":0,"t":0},"9850508":{"b":0,"g":1265186726,"p":0,"t":0},"995915933":{"b":0,"g":0,"p":0,"t":0}}}</div><div><br /></div><div><br /></div><div>好友进入</div><div>http://mc.qzone.qq.com/cgi-bin/cgi_enter?</div><div><br /></div><div>Post</div><div>farmKey<span class="Apple-tab-span" style="white-space:pre">	</span>674cfc10602722acf6866c04b8fea20a</div><div>farmTime<span class="Apple-tab-span" style="white-space:pre">	</span>1265183078</div><div>flag<span class="Apple-tab-span" style="white-space:pre">	</span>1</div><div>newitem<span class="Apple-tab-span" style="white-space:pre">	</span>1</div><div>uId<span class="Apple-tab-span" style="white-space:pre">	</span>78420481</div><div>uIdx<span class="Apple-tab-span" style="white-space:pre">	</span>88549293</div><div><br /></div><div>Data</div><div>{"a":1,"animal":[{"buyTime":1263797845,"cId":1004,"growTime":201600,"growTimeNext":82800,"hungry":1,"serial":1,"status":3,"statusNext":6,"totalCome":0},{"buyTime":1263995217,"cId":1501,"growTime":43200,"growTimeNext":10800,"hungry":1,"serial":2,"status":2,"statusNext":3,"totalCome":0},{"buyTime":1263995228,"cId":1502,"growTime":43200,"growTimeNext":21600,"hungry":1,"serial":3,"status":2,"statusNext":3,"totalCome":0},{"buyTime":1264768485,"cId":1004,"growTime":14400,"growTimeNext":19800,"hungry":1,"serial":4,"status":1,"statusNext":2,"totalCome":0},{"buyTime":1264768493,"cId":1502,"growTime":0,"growTimeNext":32400,"hungry":1,"serial":5,"status":1,"statusNext":2,"totalCome":0},{"buyTime":1264768502,"cId":1001,"growTime":0,"growTimeNext":14400,"hungry":1,"serial":6,"status":1,"statusNext":2,"totalCome":0}],"animalFood":0,"badinfo":[{"mynum":0,"num":3,"type":1},{"mynum":0,"num":3,"type":2}],"c":0,"items":{"1":{"id":101,"lv":1},"2":{"id":102,"lv":2},"3":{"id":103,"lv":1},"4":{"id":104,"lv":1}},"parade":{"i":"","p":0,"v":1},"stealflag":{"1001":0,"1004":0,"1501":0,"1502":0},"task":{"taskFlag":0,"taskId":10},"user":{"exp":4172,"money":10000,"uId":740880520},"wp":{"bq":12000,"f":0,"lp":1,"lq":20000,"lv":3,"lw":1,"xp":1,"xq":8000,"xw":2}}</div><div><br /></div><div><br /></div><div>收取好友的</div><div>http://mc.qzone.qq.com/cgi-bin/cgi_steal_product</div><div><br /></div><div>Post</div><div>farmKey<span class="Apple-tab-span" style="white-space:pre">	</span>ed15871c88747e186fcf8643acdc7fe2</div><div>farmTime<span class="Apple-tab-span" style="white-space:pre">	</span>1265183175</div><div>nick<span class="Apple-tab-span" style="white-space:pre">	</span>小隐</div><div>type<span class="Apple-tab-span" style="white-space:pre">	</span>1510</div><div>uId<span class="Apple-tab-span" style="white-space:pre">	</span>78420481</div><div>uIdx<span class="Apple-tab-span" style="white-space:pre">	</span>88549293</div><div><br /></div><div>Data</div><div>{"cId":1510,"harvestnum":1}</div><div><br /></div><div><br /></div><div>帮好友打蚊子</div><div>http://mc.qzone.qq.com/cgi-bin/cgi_help_pasture</div><div><br /></div><div>Post</div><div>farmKey<span class="Apple-tab-span" style="white-space:pre">	</span>7435f5f382b030573565b48ca029f31a</div><div>farmTime<span class="Apple-tab-span" style="white-space:pre">	</span>1265184136</div><div>num<span class="Apple-tab-span" style="white-space:pre">	</span>2</div><div>pos<span class="Apple-tab-span" style="white-space:pre">	</span>1</div><div>type<span class="Apple-tab-span" style="white-space:pre">	</span>1</div><div>uId<span class="Apple-tab-span" style="white-space:pre">	</span>1857368</div><div>uIdx<span class="Apple-tab-span" style="white-space:pre">	</span>88549293</div><div><br /></div><div>Data</div><div>{"addExp":0,"cId":1,"num":2,"pos":1}</div><div><br /></div><div>帮好友加草</div><div>http://mc.qzone.qq.com/cgi-bin/cgi_feed_food</div><div><br /></div><div>Post</div><div>farmKey<span class="Apple-tab-span" style="white-space:pre">	</span>b7258c264d8902e01269475bd6ebb626</div><div>farmTime<span class="Apple-tab-span" style="white-space:pre">	</span>1265184253</div><div>foodnum<span class="Apple-tab-span" style="white-space:pre">	</span>10</div><div>nick<span class="Apple-tab-span" style="white-space:pre">	</span>小隐</div><div>type<span class="Apple-tab-span" style="white-space:pre">	</span>0</div><div>uId<span class="Apple-tab-span" style="white-space:pre">	</span>422455203</div><div>uIdx<span class="Apple-tab-span" style="white-space:pre">	</span>88549293</div><div><br /></div><div>Data</div><div>{"addExp":-1,"added":10,"animal":[{"buyTime":1265116379,"cId":1006,"growTime":67934,"growTimeNext":14866,"hungry":0,"serial":1,"status":2,"statusNext":3,"totalCome":0},{"buyTime":1265116401,"cId":1002,"growTime":69412,"growTimeNext":96188,"hungry":0,"serial":2,"status":3,"statusNext":6,"totalCome":0},{"buyTime":1265116451,"cId":1004,"growTime":67862,"growTimeNext":538,"hungry":0,"serial":3,"status":2,"statusNext":3,"totalCome":0},{"buyTime":1265116471,"cId":1503,"growTime":67842,"growTimeNext":4158,"hungry":0,"serial":4,"status":2,"statusNext":3,"totalCome":0},{"buyTime":1265116476,"cId":1005,"growTime":67837,"growTimeNext":7763,"hungry":0,"serial":5,"status":2,"statusNext":3,"totalCome":0},{"buyTime":1265116481,"cId":1504,"growTime":57660,"growTimeNext":21540,"hungry":0,"serial":6,"status":2,"statusNext":3,"totalCome":0},{"buyTime":1265116488,"cId":1003,"growTime":57660,"growTimeNext":125940,"hungry":0,"serial":7,"status":3,"statusNext":6,"totalCome":0},{"buyTime":1265169311,"cId":1006,"growTime":14460,"growTimeNext":26940,"hungry":0,"serial":8,"status":1,"statusNext":2,"totalCome":0},{"buyTime":1265169319,"cId":1504,"growTime":14400,"growTimeNext":25200,"hungry":0,"serial":9,"status":1,"statusNext":2,"totalCome":0},{"buyTime":1265169319,"cId":1504,"growTime":14400,"growTimeNext":25200,"hungry":0,"serial":10,"status":1,"statusNext":2,"totalCome":0}],"direction":"成功添加10棵牧草","money":0,"total":4,"type":0,"uId":422455203}</div><div><br /></div><div><br /></div><div>帮好友的赶去生产</div><div><br /></div><div>http://mc.qzone.qq.com/cgi-bin/cgi_post_product</div><div><br /></div><div>Post</div><div>farmKey<span class="Apple-tab-span" style="white-space:pre">	</span>532f830ac2c41e75f9e105284b918bd6</div><div>farmTime<span class="Apple-tab-span" style="white-space:pre">	</span>1265184386</div><div>nick<span class="Apple-tab-span" style="white-space:pre">	</span>小隐</div><div>serial<span class="Apple-tab-span" style="white-space:pre">	</span>7</div><div>uId<span class="Apple-tab-span" style="white-space:pre">	</span>422455203</div><div>uIdx<span class="Apple-tab-span" style="white-space:pre">	</span>88549293</div><div><br /></div><div><br /></div><div>Data</div><div><br /></div><div>{"addExp":0,"animal":{"buyTime":1265116488,"cId":1003,"createTime":0,"feedTime":1265198653,"growTime":57733,"growTimeNext":180,"postTime":1265184386,"productNum":1,"serial":7,"status":4,"statusNext":5,"totalCome":0}}</div><div><br /></div><div>帮好友除便</div><div>http://mc.qzone.qq.com/cgi-bin/cgi_help_pasture</div><div><br /></div><div>Post</div><div>farmKey<span class="Apple-tab-span" style="white-space:pre">	</span>44dcea996880f948ee296cb37b536f78</div><div>farmTime<span class="Apple-tab-span" style="white-space:pre">	</span>1265185231</div><div>num<span class="Apple-tab-span" style="white-space:pre">	</span>1</div><div>pos<span class="Apple-tab-span" style="white-space:pre">	</span>0</div><div>type<span class="Apple-tab-span" style="white-space:pre">	</span>2</div><div>uId<span class="Apple-tab-span" style="white-space:pre">	</span>383398053</div><div>uIdx<span class="Apple-tab-span" style="white-space:pre">	</span>88549293</div><div><br /></div><div>Data</div><div>{"num":1,"pos":0,"repNum":1,"type":2}</div><div><br /></div><div>获取自己的仓库</div><div>http://mc.qzone.qq.com/cgi-bin/cgi_get_repertory?target=animal</div><div><br /></div><div>Post</div><div>farmKey<span class="Apple-tab-span" style="white-space:pre">	</span>7448d1261978a740642ad5003f2fe4da</div><div>farmTime<span class="Apple-tab-span" style="white-space:pre">	</span>1265188454</div><div>uIdx<span class="Apple-tab-span" style="white-space:pre">	</span>88549293</div><div><br /></div><div>Data</div><div>[{"amount":23,"cId":1002,"cName":"小兔崽","price":39},{"amount":151,"cId":1001,"cName":"鸡蛋","price":17},{"amount":19,"cId":1006,"cName":"小企鹅","price":68},{"amount":28,"cId":1505,"cName":"梅花鹿崽","price":70},{"amount":18,"cId":1007,"cName":"小乌龟","price":69},{"amount":20,"cId":1504,"cName":"小袋鼠","price":64},{"amount":32,"cId":1004,"cName":"小猫崽","price":56},{"amount":31,"cId":1005,"cName":"孔雀毛","price":35},{"amount":68,"cId":1501,"cName":"羊毛","price":29},{"amount":17,"cId":1003,"cName":"鹅蛋","price":19},{"amount":13,"cId":1503,"cName":"小猴崽","price":58},{"amount":17,"cId":1008,"cName":"松鼠崽","price":71},{"amount":6,"cId":1502,"cName":"牛奶","price":55},{"amount":60,"cId":1506,"cName":"便便","price":30},{"amount":3,"cId":1009,"cName":"波斯猫崽","price":72},{"amount":7,"cId":1507,"cName":"羚羊崽","price":77},{"amount":402,"cId":1010,"cName":"仓鼠崽","price":78},{"amount":16,"cId":1508,"cName":"鸵鸟崽","price":79},{"amount":1,"cId":11010,"cName":"仓鼠","price":16940},{"amount":308,"cId":1510,"cName":"长颈鹿崽","price":77},{"amount":44,"cId":1012,"cName":"鸭蛋","price":73},{"amount":1,"cId":11510,"cName":"长颈鹿","price":15110},{"amount":13,"cId":1011,"cName":"刺猬崽","price":72}]</div><div><br /></div><div>全部卖出</div><div>http://mc.qzone.qq.com/cgi-bin/cgi_sale_product</div><div><br /></div><div>Post</div><div>farmKey<span class="Apple-tab-span" style="white-space:pre">	</span>18bbea9e5c044c82efb7fd7631092d6a</div><div>farmTime<span class="Apple-tab-span" style="white-space:pre">	</span>1265188582</div><div>saleAll<span class="Apple-tab-span" style="white-space:pre">	</span>1</div><div>uIdx<span class="Apple-tab-span" style="white-space:pre">	</span>88549293</div><div><br /></div><div>Data</div><div><br /></div><div>{"direction":"操作成功，共获得收入和感谢金&lt;font color=\"#FF6600\"&gt; &lt;b&gt;111790&lt;/b&gt; &lt;/font&gt;金币","money":111790}</div><div><br /></div><div><br /></div><div>获取商店信息</div><div>http://mc.qzone.qq.com/cgi-bin/cgi_get_animals</div><div><br /></div><div>Post</div><div>farmKey<span class="Apple-tab-span" style="white-space:pre">	</span>3ab8cb44be3dd5d85a270fbb67385ea7</div><div>farmTime<span class="Apple-tab-span" style="white-space:pre">	</span>1265188806</div><div>uIdx<span class="Apple-tab-span" style="white-space:pre">	</span>88549293</div><div><br /></div><div>Data</div><div><br /></div><div>[{"byproductprice":17,"cId":1001,"cLevel":0,"cName":"鸡","consum":1,"cub":14400,"cycle":21600,"expect":0,"growing":"14400,14400,129600,180","growthCycle":0,"harvestbExp":6,"harvestpExp":26,"maturingTime":28800,"output":20,"price":700,"procreation":129600,"productime":180,"productprice":860,"sinfo":""},{"byproductprice":39,"cId":1002,"cLevel":1,"cName":"兔子","consum":2,"cub":18000,"cycle":28800,"expect":0,"growing":"18000,18000,129600,180","growthCycle":0,"harvestbExp":8,"harvestpExp":28,"maturingTime":36000,"output":12,"price":1200,"procreation":129600,"productime":180,"productprice":1460,"sinfo":"喂食胡萝卜可以减少5分钟生长时间"},{"byproductprice":29,"cId":1501,"cLevel":2,"cName":"羊","consum":3,"cub":27000,"cycle":43200,"expect":0,"growing":"27000,27000,172800,180","growthCycle":0,"harvestbExp":16,"harvestpExp":38,"maturingTime":54000,"output":24,"price":2000,"procreation":172800,"productime":180,"productprice":2860,"sinfo":""},{"byproductprice":19,"cId":1003,"cLevel":3,"cName":"鹅","consum":3,"cub":16200,"cycle":25200,"expect":0,"growing":"16200,16200,151200,180","growthCycle":0,"harvestbExp":11,"harvestpExp":36,"maturingTime":32400,"output":20,"price":900,"procreation":151200,"productime":180,"productprice":1060,"sinfo":""},{"byproductprice":55,"cId":1502,"cLevel":4,"cName":"牛","consum":4,"cub":32400,"cycle":43200,"expect":0,"growing":"32400,32400,216000,180","growthCycle":0,"harvestbExp":17,"harvestpExp":40,"maturingTime":64800,"output":12,"price":3000,"procreation":216000,"productime":180,"productprice":4260,"sinfo":""},{"byproductprice":56,"cId":1004,"cLevel":5,"cName":"猫","consum":2,"cub":34200,"cycle":32400,"expect":0,"growing":"34200,34200,216000,180","growthCycle":0,"harvestbExp":14,"harvestpExp":37,"maturingTime":68400,"output":12,"price":3200,"procreation":216000,"productime":180,"productprice":4060,"sinfo":""},{"byproductprice":58,"cId":1503,"cLevel":6,"cName":"猴子","consum":3,"cub":36000,"cycle":36000,"expect":0,"growing":"36000,36000,216000,180","growthCycle":0,"harvestbExp":14,"harvestpExp":38,"maturingTime":72000,"output":12,"price":4000,"procreation":216000,"productime":180,"productprice":5260,"sinfo":""},{"byproductprice":35,"cId":1005,"cLevel":7,"cName":"孔雀","consum":3,"cub":37800,"cycle":43200,"expect":0,"growing":"37800,37800,237600,180","growthCycle":0,"harvestbExp":16,"harvestpExp":39,"maturingTime":75600,"output":24,"price":5000,"procreation":237600,"productime":180,"productprice":6060,"sinfo":""},{"byproductprice":64,"cId":1504,"cLevel":8,"cName":"袋鼠","consum":4,"cub":39600,"cycle":43200,"expect":0,"growing":"39600,39600,237600,180","growthCycle":0,"harvestbExp":16,"harvestpExp":40,"maturingTime":79200,"output":12,"price":8000,"procreation":237600,"productime":180,"productprice":9860,"sinfo":""},{"byproductprice":68,"cId":1006,"cLevel":9,"cName":"企鹅","consum":3,"cub":41400,"cycle":54000,"expect":0,"growing":"41400,41400,259200,180","growthCycle":0,"harvestbExp":22,"harvestpExp":44,"maturingTime":82800,"output":16,"price":10000,"procreation":259200,"productime":180,"productprice":11860,"sinfo":""},{"byproductprice":69,"cId":1007,"cLevel":10,"cName":"乌龟","consum":3,"cub":27000,"cycle":36000,"expect":0,"growing":"27000,27000,216000,180","growthCycle":0,"harvestbExp":14,"harvestpExp":26,"maturingTime":54000,"output":12,"price":11000,"procreation":216000,"productime":180,"productprice":12000,"sinfo":""},{"byproductprice":70,"cId":1505,"cLevel":11,"cName":"梅花鹿","consum":3,"cub":32400,"cycle":36000,"expect":0,"growing":"32400,32400,216000,180","growthCycle":0,"harvestbExp":14,"harvestpExp":27,"maturingTime":64800,"output":12,"price":12000,"procreation":216000,"productime":180,"productprice":13330,"sinfo":""},{"byproductprice":71,"cId":1008,"cLevel":12,"cName":"松鼠","consum":4,"cub":36000,"cycle":39600,"expect":0,"growing":"36000,36000,288000,180","growthCycle":0,"harvestbExp":16,"harvestpExp":29,"maturingTime":72000,"output":13,"price":12640,"procreation":288000,"productime":180,"productprice":14570,"sinfo":""},{"byproductprice":72,"cId":1009,"cLevel":13,"cName":"波斯猫","consum":4,"cub":37800,"cycle":43200,"expect":0,"growing":"37800,37800,302400,180","growthCycle":0,"harvestbExp":17,"harvestpExp":30,"maturingTime":75600,"output":14,"price":13000,"procreation":302400,"productime":180,"productprice":14790,"sinfo":""},{"byproductprice":73,"cId":1012,"cLevel":14,"cName":"鸭","consum":3,"cub":37800,"cycle":43200,"expect":0,"growing":"37800,37800,302400,180","growthCycle":0,"harvestbExp":17,"harvestpExp":29,"maturingTime":75600,"output":14,"price":13200,"procreation":302400,"productime":180,"productprice":14910,"sinfo":""},{"byproductprice":77,"cId":1507,"cLevel":15,"cName":"羚羊","consum":2,"cub":39600,"cycle":46800,"expect":0,"growing":"39600,39600,331200,180","growthCycle":0,"harvestbExp":19,"harvestpExp":31,"maturingTime":79200,"output":15,"price":13470,"procreation":331200,"productime":180,"productprice":15020,"sinfo":""},{"byproductprice":77,"cId":1510,"cLevel":16,"cName":"长颈鹿","consum":3,"cub":39600,"cycle":50400,"expect":0,"growing":"39600,39600,327600,180","growthCycle":0,"harvestbExp":18,"harvestpExp":33,"maturingTime":79200,"output":16,"price":13630,"procreation":327600,"productime":180,"productprice":15110,"sinfo":""},{"byproductprice":78,"cId":1010,"cLevel":17,"cName":"仓鼠","consum":2,"cub":41400,"cycle":50400,"expect":0,"growing":"41400,41400,403200,180","growthCycle":0,"harvestbExp":20,"harvestpExp":32,"maturingTime":82800,"output":16,"price":14100,"procreation":403200,"productime":180,"productprice":16940,"sinfo":""},{"byproductprice":78,"cId":1013,"cLevel":18,"cName":"鼹鼠","consum":3,"cub":37800,"cycle":50400,"expect":0,"growing":"37800,37800,403200,180","growthCycle":0,"harvestbExp":19,"harvestpExp":31,"maturingTime":75600,"output":16,"price":14200,"procreation":403200,"productime":180,"productprice":17030,"sinfo":""},{"byproductprice":79,"cId":1508,"cLevel":19,"cName":"鸵鸟","consum":2,"cub":43200,"cycle":54000,"expect":0,"growing":"43200,43200,432000,180","growthCycle":0,"harvestbExp":21,"harvestpExp":33,"maturingTime":86400,"output":17,"price":14430,"procreation":432000,"productime":180,"productprice":17610,"sinfo":""},{"byproductprice":72,"cId":1011,"cLevel":21,"cName":"刺猬","consum":2,"cub":36000,"cycle":43200,"expect":0,"growing":"36000,36000,345600,180","growthCycle":0,"harvestbExp":14,"harvestpExp":34,"maturingTime":72000,"output":15,"price":15230,"procreation":345600,"productime":180,"productprice":18000,"sinfo":""},{"byproductprice":73,"cId":1014,"cLevel":22,"cName":"挪威森林猫","consum":3,"cub":43200,"cycle":43200,"expect":0,"growing":"43200,43200,345600,180","growthCycle":0,"harvestbExp":14,"harvestpExp":34,"maturingTime":86400,"output":16,"price":15550,"procreation":345600,"productime":180,"productprice":18100,"sinfo":""},{"byproductprice":73,"cId":1509,"cLevel":23,"cName":"浣熊","consum":2,"cub":36000,"cycle":43200,"expect":0,"growing":"36000,36000,345600,180","growthCycle":0,"harvestbExp":13,"harvestpExp":35,"maturingTime":72000,"output":16,"price":15940,"procreation":345600,"productime":180,"productprice":18120,"sinfo":""},{"byproductprice":75,"cId":1511,"cLevel":25,"cName":"丹顶鹤","consum":3,"cub":37800,"cycle":50400,"expect":0,"growing":"37800,37800,334800,180","growthCycle":0,"harvestbExp":13,"harvestpExp":30,"maturingTime":75600,"output":16,"price":16430,"procreation":334800,"productime":180,"productprice":18350,"sinfo":""}]</div><div><br /></div><div>背包</div><div>http://mc.qzone.qq.com/cgi-bin/cgi_get_repertory?target=package</div><div><br /></div><div>Post</div><div>farmKey<span class="Apple-tab-span" style="white-space:pre">	</span>d9dc79a8f521365ff7f1c20af40d8797</div><div>farmTime<span class="Apple-tab-span" style="white-space:pre">	</span>1265188928</div><div>uIdx<span class="Apple-tab-span" style="white-space:pre">	</span>88549293</div><div><br /></div><div>Data</div><div>[{"amount":5007,"tId":40,"tName":"牧草","type":4},{"aidlist":[1002],"amount":10,"tDesc":"特殊作物，供兔子使用可减少生长时间5分钟。","tId":3,"tName":"胡萝卜","type":4}]</div><div><br /></div><div><br /></div><div>收</div><div>http://mc.qzone.qq.com/cgi-bin/cgi_harvest_product</div><div><br /></div><div>farmKey 4391085250d771354393153851673cf3</div><div>farmTime 1265211215</div><div>harvesttype 2</div><div>serial 12</div><div>uIdx 88549293</div><div><br /></div><div>DAta</div><div>{"addExp":32,"cId":1010,"code":0,"harvestnum":0,"msg":"success","serial":12}</div><div><br /></div><div><br /></div><div>买</div><div>http://mc.qzone.qq.com/cgi-bin/cgi_buy_animal</div><div><br /></div><div>cId 1010</div><div>farmKey 41bf486d3997c78570568fb336e85db7</div><div>farmTime 1265211256</div><div>number 1</div><div>uIdx 88549293</div><div><br /></div><div>Data</div><div>{"addExp":5,"animal": [{"buyTime":1265211256,"cId":1010,"growTime":0,"growTimeNext":41400,"hungry":0,"serial":12,"status":1,"statusNext":2,"totalCome":0}],"animalFood":358,"code":0," money":14100,"msg":"success","num":1}</div><div><br /></div><img src="aggbug/1664594.html?type=0" width="1" height="1" alt=""/><p>评论: 0　<a href="http://www.cnblogs.com/szyicol/archive/2010/02/05/1664594.html#pagedcomment" target="_blank">查看评论</a>　<a href="http://www.cnblogs.com/szyicol/archive/2010/02/05/1664594.html#commentform" target="_blank">发表评论</a></p><hr/><p>最新新闻：<br/>· <a href="http://news.cnblogs.com/n/56793/" target="_blank">知名扩展 Firebug 的简化版登陆 Chrome</a><span style="color:gray">(2010-02-09 22:59)</span><br/>· <a href="http://news.cnblogs.com/n/56792/" target="_blank">Google 悄悄地启用 1e100.net，打枪地不要</a><span style="color:gray">(2010-02-09 22:57)</span><br/>· <a href="http://news.cnblogs.com/n/56791/" target="_blank">从 Google 代码库找到的好东西</a><span style="color:gray">(2010-02-09 22:46)</span><br/>· <a href="http://news.cnblogs.com/n/56789/" target="_blank">苹果在线商店临时关闭 或将推新Macbook</a><span style="color:gray">(2010-02-09 22:39)</span><br/>· <a href="http://news.cnblogs.com/n/56788/" target="_blank">豆瓣网推出豆瓣电台iPhone客户端</a><span style="color:gray">(2010-02-09 21:51)</span><br/></p><p>编辑推荐：<a href="http://news.cnblogs.com/n/56782/" target="_blank">2010年2月编程语言排行榜</a><br/></p><p>网站导航：<a href="http://www.cnblogs.com" target="_blank">博客园首页</a>&nbsp;&nbsp;<a href="http://home.cnblogs.com/" target="_blank">个人主页</a>&nbsp;&nbsp;<a href="http://news.cnblogs.com" target="_blank">新闻</a>&nbsp;&nbsp;<a href="http://home.cnblogs.com/ing/" target="_blank">闪存</a>&nbsp;&nbsp;<a href="http://home.cnblogs.com/group/" target="_blank">小组</a>&nbsp;&nbsp;<a href="http://space.cnblogs.com/q/" target="_blank">博问</a>&nbsp;&nbsp;<a href="http://space.cnblogs.com" target="_blank">社区</a>&nbsp;&nbsp;<a href="http://kb.cnblogs.com" target="_blank">知识库</a></p>]]></description></item><item><title>各种浏览器的userAgent</title><link>http://www.cnblogs.com/shanyou/archive/2010/02/03/1662704.html</link><dc:creator>geff zhang</dc:creator><author>geff zhang</author><pubDate>Wed, 03 Feb 2010 07:40:00 GMT</pubDate><guid>http://www.cnblogs.com/shanyou/archive/2010/02/03/1662704.html</guid><description><![CDATA[<p>阅读: 273 评论: 1 作者: <a href="" target="_blank">geff zhang</a> 发表于 2010-02-03 15:40 <a href="http://www.cnblogs.com/shanyou/archive/2010/02/03/1662704.html" target="_blank">原文链接</a></p><p><strong>各浏览器的userAgent很乱，具体可参看cnbeta上文章<a href="http://www.cnbeta.com/articles/71532.htm" target="_blank">译稿:UserAgent的历史变迁</a>。</strong></p>  <p><strong>IE</strong>    <br />&#160; 而IE各个版本典型的userAgent如下：     <br />Mozilla/4.0 (compatible; MSIE 8.0; Windows NT 6.0)     <br />&#160; Mozilla/4.0 (compatible; MSIE 7.0; Windows NT 5.2)     <br />&#160; Mozilla/4.0 (compatible; MSIE 6.0; Windows NT 5.1)     <br />&#160; Mozilla/4.0 (compatible; MSIE 5.0; Windows NT)    <br />&#160; 其中，版本号是MSIE之后的数字。     <br /><strong>Firefox</strong>    <br />&#160; Firefox几个版本的userAgent大致如下：     <br />Mozilla/5.0 (Windows; U; Windows NT 5.2) Gecko/2008070208 Firefox/3.0.1     <br />&#160; Mozilla/5.0 (Windows; U; Windows NT 5.1) Gecko/20070309 Firefox/2.0.0.3     <br />&#160; Mozilla/5.0 (Windows; U; Windows NT 5.1) Gecko/20070803 Firefox/1.5.0.12&#160; 其中，版本号是Firefox之后的数字。     <br /><strong>Opera</strong>    <br />&#160; Opera典型的userAgent如下：     <br />Opera/9.27 (Windows NT 5.2; U; zh-cn)     <br />&#160; Opera/8.0 (Macintosh; PPC Mac OS X; U; en)     <br />&#160; Mozilla/5.0 (Macintosh; PPC Mac OS X; U; en) Opera 8.0    <br />&#160; 其中，版本号是靠近Opera的数字。     <br /><strong>Safari</strong>    <br />&#160; Safari典型的userAgent如下：     <br />Mozilla/5.0 (Windows; U; Windows NT 5.2) AppleWebKit/525.13 (KHTML, like Gecko) Version/3.1 Safari/525.13     <br />&#160; Mozilla/5.0 (iPhone; U; CPU like Mac OS X) AppleWebKit/420.1 (KHTML, like Gecko) Version/3.0 Mobile/4A93 Safari/419.3     <br />&#160; 其版本号是Version之后的数字。     <br /><strong>Chrome</strong>    <br />&#160; Chrome的userAgent是：     <br />Mozilla/5.0 (Windows; U; Windows NT 5.2) AppleWebKit/525.13 (KHTML, like Gecko) Chrome/0.2.149.27 Safari/525.13    <br />&#160; 其中，版本号在Chrome之后的数字。     <br /><strong>Navigator</strong>    <br />目前，Navigator的userAgent是：     <br />Mozilla/5.0 (Windows; U; Windows NT 5.1; en-US; rv:1.8.1.12) Gecko/20080219 Firefox/2.0.0.12 Navigator/9.0.0.6    <br />其中，版本号在Navigator之后的数字。 </p> <img src="aggbug/1662704.html?type=0" width="1" height="1" alt=""/><p>评论: 1　<a href="http://www.cnblogs.com/shanyou/archive/2010/02/03/1662704.html#pagedcomment" target="_blank">查看评论</a>　<a href="http://www.cnblogs.com/shanyou/archive/2010/02/03/1662704.html#commentform" target="_blank">发表评论</a></p><hr/><p>最新新闻：<br/>· <a href="http://news.cnblogs.com/n/56793/" target="_blank">知名扩展 Firebug 的简化版登陆 Chrome</a><span style="color:gray">(2010-02-09 22:59)</span><br/>· <a href="http://news.cnblogs.com/n/56792/" target="_blank">Google 悄悄地启用 1e100.net，打枪地不要</a><span style="color:gray">(2010-02-09 22:57)</span><br/>· <a href="http://news.cnblogs.com/n/56791/" target="_blank">从 Google 代码库找到的好东西</a><span style="color:gray">(2010-02-09 22:46)</span><br/>· <a href="http://news.cnblogs.com/n/56789/" target="_blank">苹果在线商店临时关闭 或将推新Macbook</a><span style="color:gray">(2010-02-09 22:39)</span><br/>· <a href="http://news.cnblogs.com/n/56788/" target="_blank">豆瓣网推出豆瓣电台iPhone客户端</a><span style="color:gray">(2010-02-09 21:51)</span><br/></p><p>编辑推荐：<a href="http://news.cnblogs.com/n/56782/" target="_blank">2010年2月编程语言排行榜</a><br/></p><p>网站导航：<a href="http://www.cnblogs.com" target="_blank">博客园首页</a>&nbsp;&nbsp;<a href="http://home.cnblogs.com/" target="_blank">个人主页</a>&nbsp;&nbsp;<a href="http://news.cnblogs.com" target="_blank">新闻</a>&nbsp;&nbsp;<a href="http://home.cnblogs.com/ing/" target="_blank">闪存</a>&nbsp;&nbsp;<a href="http://home.cnblogs.com/group/" target="_blank">小组</a>&nbsp;&nbsp;<a href="http://space.cnblogs.com/q/" target="_blank">博问</a>&nbsp;&nbsp;<a href="http://space.cnblogs.com" target="_blank">社区</a>&nbsp;&nbsp;<a href="http://kb.cnblogs.com" target="_blank">知识库</a></p>]]></description></item><item><title>Newtonsoft 获取动态key的json数据</title><link>http://www.cnblogs.com/szyicol/archive/2010/02/03/1662686.html</link><dc:creator>小隐任行</dc:creator><author>小隐任行</author><pubDate>Wed, 03 Feb 2010 07:21:00 GMT</pubDate><guid>http://www.cnblogs.com/szyicol/archive/2010/02/03/1662686.html</guid><description><![CDATA[<p>阅读: 116 评论: 0 作者: <a href="" target="_blank">小隐任行</a> 发表于 2010-02-03 15:21 <a href="http://www.cnblogs.com/szyicol/archive/2010/02/03/1662686.html" target="_blank">原文链接</a></p><p>在反序列化一些json数据的过程中，有些数据根本没有办法反序列化，因为json数据的key值是动态的，另外还有一些key值是数字的，也没有办法反序列化到c# 类。</p><p>&nbsp;</p><p>反序列化是没希望，但总可以读出来吧，寒， 要不然就要换掉Newtonsoft了。</p><p>&nbsp;</p><p>举例：</p><p><br /></p><p style="margin-top: 5px; margin-right: auto; margin-bottom: 5px; margin-left: auto; text-indent: 0px; ">&nbsp;</p><p style="margin-top: 5px; margin-right: auto; margin-bottom: 5px; margin-left: auto; text-indent: 0px; "></p><div class="cnblogs_code" onclick="cnblogs_code_show('279f3ad7-0b5f-47ad-9cfb-06146d59c879')" style="font-family: 'Courier New'; font-size: 13px; border-top-width: 1px; border-right-width: 1px; border-bottom-width: 1px; border-left-width: 1px; border-top-style: solid; border-right-style: solid; border-bottom-style: solid; border-left-style: solid; border-top-color: #cccccc; border-right-color: #cccccc; border-bottom-color: #cccccc; border-left-color: #cccccc; padding-top: 5px; padding-right: 5px; padding-bottom: 5px; padding-left: 5px; word-break: break-all; overflow-x: auto; overflow-y: auto; background-color: #f5f5f5; "><img src="http://images.cnblogs.com/OutliningIndicators/ExpandedBlockStart.gif" class="code_img_opened" id="code_img_opened_279f3ad7-0b5f-47ad-9cfb-06146d59c879" onclick="cnblogs_code_hide('279f3ad7-0b5f-47ad-9cfb-06146d59c879',event)" style="vertical-align: middle; padding-right: 5px; "><span class="cnblogs_code_collapse" style="border-right-color: #808080; border-right-width: 1px; border-right-style: solid; border-top-color: #808080; border-top-width: 1px; border-top-style: solid; border-left-color: #808080; border-left-width: 1px; border-left-style: solid; border-bottom-color: #808080; border-bottom-width: 1px; border-bottom-style: solid; background-color: #ffffff; padding-top: 2px; padding-right: 2px; padding-bottom: 2px; padding-left: 2px; font-family: 'Courier New'; ">代码</span><div id="cnblogs_code_open_279f3ad7-0b5f-47ad-9cfb-06146d59c879"><div><span style="font-family: 'Courier New'; color: #000000; ">&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;</span><span style="font-family: 'Courier New'; color: #0000ff; ">string</span><span style="font-family: 'Courier New'; color: #000000; ">&nbsp;str&nbsp;</span><span style="font-family: 'Courier New'; color: #000000; ">=</span><span style="font-family: 'Courier New'; color: #000000; ">&nbsp;</span><span style="font-family: 'Courier New'; color: #800000; ">"</span><span style="font-family: 'Courier New'; color: #800000; ">{\</span><span style="font-family: 'Courier New'; color: #800000; ">"</span><span style="font-family: 'Courier New'; color: #800080; ">3</span><span style="font-family: 'Courier New'; color: #000000; ">\</span><span style="font-family: 'Courier New'; color: #800000; ">"</span><span style="font-family: 'Courier New'; color: #800000; ">:123,body:456,list:{title:'abc',body:'what'}}</span><span style="font-family: 'Courier New'; color: #800000; ">"</span><span style="font-family: 'Courier New'; color: #000000; ">;<br />&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;JObject&nbsp;o&nbsp;</span><span style="font-family: 'Courier New'; color: #000000; ">=</span><span style="font-family: 'Courier New'; color: #000000; ">&nbsp;JObject.Parse(str);<br />&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;IEnumerable</span><span style="font-family: 'Courier New'; color: #000000; ">&lt;</span><span style="font-family: 'Courier New'; color: #000000; ">JProperty</span><span style="font-family: 'Courier New'; color: #000000; ">&gt;</span><span style="font-family: 'Courier New'; color: #000000; ">&nbsp;properties&nbsp;</span><span style="font-family: 'Courier New'; color: #000000; ">=</span><span style="font-family: 'Courier New'; color: #000000; ">&nbsp;o.Properties();<br />&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;</span><span style="font-family: 'Courier New'; color: #0000ff; ">foreach</span><span style="font-family: 'Courier New'; color: #000000; ">&nbsp;(JProperty&nbsp;item&nbsp;</span><span style="font-family: 'Courier New'; color: #0000ff; ">in</span><span style="font-family: 'Courier New'; color: #000000; ">&nbsp;properties)<br />&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;{<br />&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;Console.WriteLine(item.Name&nbsp;</span><span style="font-family: 'Courier New'; color: #000000; ">+</span><span style="font-family: 'Courier New'; color: #000000; ">&nbsp;</span><span style="font-family: 'Courier New'; color: #800000; ">"</span><span style="font-family: 'Courier New'; color: #800000; ">:</span><span style="font-family: 'Courier New'; color: #800000; ">"</span><span style="font-family: 'Courier New'; color: #000000; ">&nbsp;</span><span style="font-family: 'Courier New'; color: #000000; ">+</span><span style="font-family: 'Courier New'; color: #000000; ">&nbsp;item.Value);<br />&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;}</span></div></div></div><p>&nbsp;</p><p>&nbsp;如果<span class="Apple-style-span" style="font-family: 'Courier New'; font-size: 13px; ">str 是个数组，则可以相应用JArray a = JArray.Parse(str); 来处理，不过目前还不知道无限包含子集怎么处理。</span></p><p>比如&nbsp;</p><p><span class="Apple-style-span" style="font-family: 'Courier New'; font-size: 13px; "><span style="font-family: 'Courier New'; color: #0000ff; ">string</span><span style="font-family: 'Courier New'; color: #000000; ">&nbsp;str&nbsp;</span><span style="font-family: 'Courier New'; color: #000000; ">=</span><span style="font-family: 'Courier New'; color: #000000; ">&nbsp;</span><span style="font-family: 'Courier New'; color: #800000; ">"</span><span style="font-family: 'Courier New'; color: #800000; ">{\</span><span style="font-family: 'Courier New'; color: #800000; ">"</span><span style="font-family: 'Courier New'; color: #800080; ">3</span><span style="font-family: 'Courier New'; color: #000000; ">\</span><span style="font-family: 'Courier New'; color: #800000; ">"</span><span style="font-family: 'Courier New'; color: #800000; ">:123,body:456,list:{title:'abc',body:{a:{a:{a:{a:{a:'......'}}}}}}}</span><span style="font-family: 'Courier New'; color: #800000; ">"</span><span style="font-family: 'Courier New'; color: #000000; ">;</span></span>&nbsp;</p><p>&nbsp;</p><p>网上资料甚少，官方那个Quick Starts看了晕，除了一大堆的声明，未见实质的sample，要看声明，难道要看它的这个帮助文档？右键--转到定义，不就可以了吗?&nbsp;</p><p>&nbsp;&nbsp;</p><p>&nbsp;</p><p>&nbsp;</p><p>&nbsp;</p><p>&nbsp;</p><p>&nbsp;</p><p>&nbsp;</p><p><p>&nbsp;</p></p><img src="aggbug/1662686.html?type=0" width="1" height="1" alt=""/><p>评论: 0　<a href="http://www.cnblogs.com/szyicol/archive/2010/02/03/1662686.html#pagedcomment" target="_blank">查看评论</a>　<a href="http://www.cnblogs.com/szyicol/archive/2010/02/03/1662686.html#commentform" target="_blank">发表评论</a></p><hr/><p>最新新闻：<br/>· <a href="http://news.cnblogs.com/n/56793/" target="_blank">知名扩展 Firebug 的简化版登陆 Chrome</a><span style="color:gray">(2010-02-09 22:59)</span><br/>· <a href="http://news.cnblogs.com/n/56792/" target="_blank">Google 悄悄地启用 1e100.net，打枪地不要</a><span style="color:gray">(2010-02-09 22:57)</span><br/>· <a href="http://news.cnblogs.com/n/56791/" target="_blank">从 Google 代码库找到的好东西</a><span style="color:gray">(2010-02-09 22:46)</span><br/>· <a href="http://news.cnblogs.com/n/56789/" target="_blank">苹果在线商店临时关闭 或将推新Macbook</a><span style="color:gray">(2010-02-09 22:39)</span><br/>· <a href="http://news.cnblogs.com/n/56788/" target="_blank">豆瓣网推出豆瓣电台iPhone客户端</a><span style="color:gray">(2010-02-09 21:51)</span><br/></p><p>编辑推荐：<a href="http://news.cnblogs.com/n/56782/" target="_blank">2010年2月编程语言排行榜</a><br/></p><p>网站导航：<a href="http://www.cnblogs.com" target="_blank">博客园首页</a>&nbsp;&nbsp;<a href="http://home.cnblogs.com/" target="_blank">个人主页</a>&nbsp;&nbsp;<a href="http://news.cnblogs.com" target="_blank">新闻</a>&nbsp;&nbsp;<a href="http://home.cnblogs.com/ing/" target="_blank">闪存</a>&nbsp;&nbsp;<a href="http://home.cnblogs.com/group/" target="_blank">小组</a>&nbsp;&nbsp;<a href="http://space.cnblogs.com/q/" target="_blank">博问</a>&nbsp;&nbsp;<a href="http://space.cnblogs.com" target="_blank">社区</a>&nbsp;&nbsp;<a href="http://kb.cnblogs.com" target="_blank">知识库</a></p>]]></description></item><item><title>蛙蛙推荐：矩阵算法入门</title><link>http://www.cnblogs.com/onlytiancai/archive/2010/02/01/matrix.html</link><dc:creator>蛙蛙王子</dc:creator><author>蛙蛙王子</author><pubDate>Mon, 01 Feb 2010 12:45:00 GMT</pubDate><guid>http://www.cnblogs.com/onlytiancai/archive/2010/02/01/matrix.html</guid><description><![CDATA[<p>阅读: 1393 评论: 10 作者: <a href="" target="_blank">蛙蛙王子</a> 发表于 2010-02-01 20:45 <a href="http://www.cnblogs.com/onlytiancai/archive/2010/02/01/matrix.html" target="_blank">原文链接</a></p><h2>摘要 <br /></h2><p>介绍矩阵的编程表示，矩阵的初等变换，化阶梯矩阵及求方阵的行列式。</p><h2>矩阵介绍</h2>矩阵就是一个M&#215;N平面的表格，用一个两维数组就可以表示,为了输入方便，我们用一个特殊格式的字符串对矩阵进行初始化，用"|"分割每一行，用","分割每一列，并增加一个Show的方法打印出矩阵，为了测试及调试的需要，还重写了ToString()方法。<br /><div class="cnblogs_code" onclick="cnblogs_code_show('c3a2571c-731f-41f2-bcc1-57cf858224f3')"><img src="http://images.cnblogs.com/OutliningIndicators/ContractedBlock.gif" class="code_img_closed" id="code_img_closed_c3a2571c-731f-41f2-bcc1-57cf858224f3" style="display: none;"  alt="" /><img src="http://images.cnblogs.com/OutliningIndicators/ExpandedBlockStart.gif" class="code_img_opened" id="code_img_opened_c3a2571c-731f-41f2-bcc1-57cf858224f3" onclick="cnblogs_code_hide('c3a2571c-731f-41f2-bcc1-57cf858224f3',event)"><span class="cnblogs_code_collapse">代码</span><div id="cnblogs_code_open_c3a2571c-731f-41f2-bcc1-57cf858224f3"><div><!--<br/ /><br/ />Code highlighting produced by Actipro CodeHighlighter (freeware)<br/ />http://www.CodeHighlighter.com/<br/ /><br/ />--><span style="color: #0000ff;">public</span><span style="color: #000000;">&nbsp;</span><span style="color: #0000ff;">class</span><span style="color: #000000;">&nbsp;Matrix&nbsp;{<br />&nbsp;&nbsp;</span><span style="color: #0000ff;">public</span><span style="color: #000000;">&nbsp;</span><span style="color: #0000ff;">int</span><span style="color: #000000;">&nbsp;M&nbsp;{&nbsp;</span><span style="color: #0000ff;">get</span><span style="color: #000000;">;&nbsp;</span><span style="color: #0000ff;">private</span><span style="color: #000000;">&nbsp;</span><span style="color: #0000ff;">set</span><span style="color: #000000;">;&nbsp;}<br />&nbsp;&nbsp;</span><span style="color: #0000ff;">public</span><span style="color: #000000;">&nbsp;</span><span style="color: #0000ff;">int</span><span style="color: #000000;">&nbsp;N&nbsp;{&nbsp;</span><span style="color: #0000ff;">get</span><span style="color: #000000;">;&nbsp;</span><span style="color: #0000ff;">private</span><span style="color: #000000;">&nbsp;</span><span style="color: #0000ff;">set</span><span style="color: #000000;">;&nbsp;}<br />&nbsp;&nbsp;</span><span style="color: #0000ff;">private</span><span style="color: #000000;">&nbsp;</span><span style="color: #0000ff;">readonly</span><span style="color: #000000;">&nbsp;</span><span style="color: #0000ff;">double</span><span style="color: #000000;">[,]&nbsp;num&nbsp;</span><span style="color: #000000;">=</span><span style="color: #000000;">&nbsp;</span><span style="color: #0000ff;">null</span><span style="color: #000000;">;<br /><br />&nbsp;&nbsp;</span><span style="color: #0000ff;">#region</span><span style="color: #000000;">&nbsp;构造函数/Show</span><span style="color: #000000;"><br />&nbsp;&nbsp;</span><span style="color: #0000ff;">public</span><span style="color: #000000;">&nbsp;Matrix(</span><span style="color: #0000ff;">int</span><span style="color: #000000;">&nbsp;m,&nbsp;</span><span style="color: #0000ff;">int</span><span style="color: #000000;">&nbsp;n,&nbsp;</span><span style="color: #0000ff;">string</span><span style="color: #000000;">&nbsp;input)&nbsp;{<br />&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;M&nbsp;</span><span style="color: #000000;">=</span><span style="color: #000000;">&nbsp;m;<br />&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;N&nbsp;</span><span style="color: #000000;">=</span><span style="color: #000000;">&nbsp;n;<br />&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;num&nbsp;</span><span style="color: #000000;">=</span><span style="color: #000000;">&nbsp;</span><span style="color: #0000ff;">new</span><span style="color: #000000;">&nbsp;</span><span style="color: #0000ff;">double</span><span style="color: #000000;">[m,&nbsp;n];<br />&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;</span><span style="color: #0000ff;">if</span><span style="color: #000000;">&nbsp;(</span><span style="color: #000000;">!</span><span style="color: #0000ff;">string</span><span style="color: #000000;">.IsNullOrEmpty(input))<br />&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;parseInput(input);<br />&nbsp;&nbsp;}<br /><br />&nbsp;&nbsp;</span><span style="color: #0000ff;">private</span><span style="color: #000000;">&nbsp;</span><span style="color: #0000ff;">void</span><span style="color: #000000;">&nbsp;parseInput(</span><span style="color: #0000ff;">string</span><span style="color: #000000;">&nbsp;input)&nbsp;{<br />&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;</span><span style="color: #0000ff;">string</span><span style="color: #000000;">[]&nbsp;rows&nbsp;</span><span style="color: #000000;">=</span><span style="color: #000000;">&nbsp;input.Split(</span><span style="color: #0000ff;">new</span><span style="color: #000000;">[]&nbsp;{&nbsp;</span><span style="color: #800000;">'</span><span style="color: #800000;">|</span><span style="color: #800000;">'</span><span style="color: #000000;">&nbsp;});<br />&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;</span><span style="color: #0000ff;">if</span><span style="color: #000000;">&nbsp;(rows.Length&nbsp;</span><span style="color: #000000;">!=</span><span style="color: #000000;">&nbsp;M)<br />&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;</span><span style="color: #0000ff;">throw</span><span style="color: #000000;">&nbsp;</span><span style="color: #0000ff;">new</span><span style="color: #000000;">&nbsp;ArgumentException(</span><span style="color: #800000;">"</span><span style="color: #800000;">row&nbsp;count&nbsp;err</span><span style="color: #800000;">"</span><span style="color: #000000;">);<br />&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;</span><span style="color: #0000ff;">for</span><span style="color: #000000;">&nbsp;(</span><span style="color: #0000ff;">int</span><span style="color: #000000;">&nbsp;i&nbsp;</span><span style="color: #000000;">=</span><span style="color: #000000;">&nbsp;</span><span style="color: #800080;">0</span><span style="color: #000000;">;&nbsp;i&nbsp;</span><span style="color: #000000;">&lt;</span><span style="color: #000000;">&nbsp;M;&nbsp;i</span><span style="color: #000000;">++</span><span style="color: #000000;">)&nbsp;{<br />&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;</span><span style="color: #0000ff;">string</span><span style="color: #000000;">&nbsp;row&nbsp;</span><span style="color: #000000;">=</span><span style="color: #000000;">&nbsp;rows[i];<br />&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;</span><span style="color: #0000ff;">string</span><span style="color: #000000;">[]&nbsp;cells&nbsp;</span><span style="color: #000000;">=</span><span style="color: #000000;">&nbsp;row.Split(</span><span style="color: #0000ff;">new</span><span style="color: #000000;">[]&nbsp;{&nbsp;</span><span style="color: #800000;">'</span><span style="color: #800000;">,</span><span style="color: #800000;">'</span><span style="color: #000000;">&nbsp;});<br />&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;</span><span style="color: #0000ff;">if</span><span style="color: #000000;">&nbsp;(cells.Length&nbsp;</span><span style="color: #000000;">!=</span><span style="color: #000000;">&nbsp;N)<br />&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;</span><span style="color: #0000ff;">throw</span><span style="color: #000000;">&nbsp;</span><span style="color: #0000ff;">new</span><span style="color: #000000;">&nbsp;ArgumentException(</span><span style="color: #0000ff;">string</span><span style="color: #000000;">.Format(</span><span style="color: #800000;">"</span><span style="color: #800000;">cells&nbsp;counte&nbsp;err:{0}</span><span style="color: #800000;">"</span><span style="color: #000000;">,&nbsp;row));<br />&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;</span><span style="color: #0000ff;">for</span><span style="color: #000000;">&nbsp;(</span><span style="color: #0000ff;">int</span><span style="color: #000000;">&nbsp;j&nbsp;</span><span style="color: #000000;">=</span><span style="color: #000000;">&nbsp;</span><span style="color: #800080;">0</span><span style="color: #000000;">;&nbsp;j&nbsp;</span><span style="color: #000000;">&lt;</span><span style="color: #000000;">&nbsp;N;&nbsp;j</span><span style="color: #000000;">++</span><span style="color: #000000;">)&nbsp;{<br />&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;</span><span style="color: #0000ff;">int</span><span style="color: #000000;">&nbsp;cellValue;<br />&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;</span><span style="color: #0000ff;">if</span><span style="color: #000000;">&nbsp;(</span><span style="color: #000000;">!</span><span style="color: #0000ff;">int</span><span style="color: #000000;">.TryParse(cells[j],&nbsp;</span><span style="color: #0000ff;">out</span><span style="color: #000000;">&nbsp;cellValue))<br />&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;</span><span style="color: #0000ff;">throw</span><span style="color: #000000;">&nbsp;</span><span style="color: #0000ff;">new</span><span style="color: #000000;">&nbsp;ArgumentException(</span><span style="color: #0000ff;">string</span><span style="color: #000000;">.Format(</span><span style="color: #800000;">"</span><span style="color: #800000;">cell&nbsp;error:{0}</span><span style="color: #800000;">"</span><span style="color: #000000;">,&nbsp;cells[j]));<br />&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;num[i,&nbsp;j]&nbsp;</span><span style="color: #000000;">=</span><span style="color: #000000;">&nbsp;cellValue;<br />&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;}<br />&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;}<br />&nbsp;&nbsp;}<br /><br />&nbsp;&nbsp;</span><span style="color: #0000ff;">public</span><span style="color: #000000;">&nbsp;</span><span style="color: #0000ff;">void</span><span style="color: #000000;">&nbsp;Show()&nbsp;{<br />&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;</span><span style="color: #0000ff;">for</span><span style="color: #000000;">&nbsp;(</span><span style="color: #0000ff;">int</span><span style="color: #000000;">&nbsp;i&nbsp;</span><span style="color: #000000;">=</span><span style="color: #000000;">&nbsp;</span><span style="color: #800080;">0</span><span style="color: #000000;">;&nbsp;i&nbsp;</span><span style="color: #000000;">&lt;</span><span style="color: #000000;">&nbsp;M;&nbsp;i</span><span style="color: #000000;">++</span><span style="color: #000000;">)&nbsp;{<br />&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;</span><span style="color: #0000ff;">for</span><span style="color: #000000;">&nbsp;(</span><span style="color: #0000ff;">int</span><span style="color: #000000;">&nbsp;j&nbsp;</span><span style="color: #000000;">=</span><span style="color: #000000;">&nbsp;</span><span style="color: #800080;">0</span><span style="color: #000000;">;&nbsp;j&nbsp;</span><span style="color: #000000;">&lt;</span><span style="color: #000000;">&nbsp;N;&nbsp;j</span><span style="color: #000000;">++</span><span style="color: #000000;">)<br />&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;Console.Write(</span><span style="color: #800000;">"</span><span style="color: #800000;">{0}\t</span><span style="color: #800000;">"</span><span style="color: #000000;">,&nbsp;num[i,&nbsp;j]);<br />&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;Console.WriteLine();<br />&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;}<br />&nbsp;&nbsp;}<br />&nbsp;<br />&nbsp;&nbsp;</span><span style="color: #0000ff;">public</span><span style="color: #000000;">&nbsp;</span><span style="color: #0000ff;">override</span><span style="color: #000000;">&nbsp;</span><span style="color: #0000ff;">string</span><span style="color: #000000;">&nbsp;ToString()&nbsp;{<br />&nbsp;&nbsp;&nbsp;&nbsp;StringBuilder&nbsp;sb&nbsp;</span><span style="color: #000000;">=</span><span style="color: #000000;">&nbsp;</span><span style="color: #0000ff;">new</span><span style="color: #000000;">&nbsp;StringBuilder();<br />&nbsp;&nbsp;&nbsp;&nbsp;</span><span style="color: #0000ff;">for</span><span style="color: #000000;">&nbsp;(</span><span style="color: #0000ff;">int</span><span style="color: #000000;">&nbsp;i&nbsp;</span><span style="color: #000000;">=</span><span style="color: #000000;">&nbsp;</span><span style="color: #800080;">0</span><span style="color: #000000;">;&nbsp;i&nbsp;</span><span style="color: #000000;">&lt;</span><span style="color: #000000;">&nbsp;M;&nbsp;i</span><span style="color: #000000;">++</span><span style="color: #000000;">)&nbsp;{<br />&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;</span><span style="color: #0000ff;">for</span><span style="color: #000000;">&nbsp;(</span><span style="color: #0000ff;">int</span><span style="color: #000000;">&nbsp;j&nbsp;</span><span style="color: #000000;">=</span><span style="color: #000000;">&nbsp;</span><span style="color: #800080;">0</span><span style="color: #000000;">;&nbsp;j&nbsp;</span><span style="color: #000000;">&lt;</span><span style="color: #000000;">&nbsp;N;&nbsp;j</span><span style="color: #000000;">++</span><span style="color: #000000;">)&nbsp;{<br />&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;sb.Append(num[i,&nbsp;j]);<br />&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;</span><span style="color: #0000ff;">if</span><span style="color: #000000;">&nbsp;(j&nbsp;</span><span style="color: #000000;">!=</span><span style="color: #000000;">&nbsp;N&nbsp;</span><span style="color: #000000;">-</span><span style="color: #000000;">&nbsp;</span><span style="color: #800080;">1</span><span style="color: #000000;">)<br />&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;sb.Append(</span><span style="color: #800000;">'</span><span style="color: #800000;">,</span><span style="color: #800000;">'</span><span style="color: #000000;">);<br />&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;}<br />&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;</span><span style="color: #0000ff;">if</span><span style="color: #000000;">&nbsp;(i&nbsp;</span><span style="color: #000000;">!=</span><span style="color: #000000;">&nbsp;M&nbsp;</span><span style="color: #000000;">-</span><span style="color: #000000;">&nbsp;</span><span style="color: #800080;">1</span><span style="color: #000000;">)<br />&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;sb.Append(</span><span style="color: #800000;">'</span><span style="color: #800000;">|</span><span style="color: #800000;">'</span><span style="color: #000000;">);<br />&nbsp;&nbsp;&nbsp;&nbsp;}<br />&nbsp;&nbsp;&nbsp;&nbsp;</span><span style="color: #0000ff;">return</span><span style="color: #000000;">&nbsp;sb.ToString();<br />&nbsp;&nbsp;&nbsp;&nbsp;}<br />}<br /></span></div></div></div><p><br /></p><br />先对这些代码进行单元测试，为了让代码块覆盖率达到100%,对构造函数的测试要故意模拟错误的输入，以便覆盖抛出异常的语句。<br /><div class="cnblogs_code" onclick="cnblogs_code_show('84c14b62-9877-4a3d-a4a0-55ef82b3b845')"><img src="http://images.cnblogs.com/OutliningIndicators/ContractedBlock.gif" class="code_img_closed" id="code_img_closed_84c14b62-9877-4a3d-a4a0-55ef82b3b845" style="display: none;"  alt="" /><img src="http://images.cnblogs.com/OutliningIndicators/ExpandedBlockStart.gif" class="code_img_opened" id="code_img_opened_84c14b62-9877-4a3d-a4a0-55ef82b3b845" onclick="cnblogs_code_hide('84c14b62-9877-4a3d-a4a0-55ef82b3b845',event)"><span class="cnblogs_code_collapse">代码</span><div id="cnblogs_code_open_84c14b62-9877-4a3d-a4a0-55ef82b3b845"><div><!--<br/ /><br/ />Code highlighting produced by Actipro CodeHighlighter (freeware)<br/ />http://www.CodeHighlighter.com/<br/ /><br/ />--><span style="color: #000000;">[TestMethod()]<br /></span><span style="color: #0000ff;">public</span><span style="color: #000000;">&nbsp;</span><span style="color: #0000ff;">void</span><span style="color: #000000;">&nbsp;MatrixConstructorTest()&nbsp;{<br />&nbsp;&nbsp;&nbsp;&nbsp;Matrix&nbsp;m;<br />&nbsp;&nbsp;&nbsp;&nbsp;</span><span style="color: #0000ff;">try</span><span style="color: #000000;"><br />&nbsp;&nbsp;&nbsp;&nbsp;{<br />&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;m&nbsp;</span><span style="color: #000000;">=</span><span style="color: #000000;">&nbsp;</span><span style="color: #0000ff;">new</span><span style="color: #000000;">&nbsp;Matrix(</span><span style="color: #800080;">2</span><span style="color: #000000;">,</span><span style="color: #800080;">2</span><span style="color: #000000;">,</span><span style="color: #800000;">"</span><span style="color: #800000;">1,2|3,4|5,6</span><span style="color: #800000;">"</span><span style="color: #000000;">);<br />&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;Assert.Fail();<br />&nbsp;&nbsp;&nbsp;&nbsp;}<br />&nbsp;&nbsp;&nbsp;&nbsp;</span><span style="color: #0000ff;">catch</span><span style="color: #000000;">{}<br />&nbsp;&nbsp;&nbsp;&nbsp;</span><span style="color: #0000ff;">try</span><span style="color: #000000;">&nbsp;{<br />&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;m&nbsp;</span><span style="color: #000000;">=</span><span style="color: #000000;">&nbsp;</span><span style="color: #0000ff;">new</span><span style="color: #000000;">&nbsp;Matrix(</span><span style="color: #800080;">2</span><span style="color: #000000;">,&nbsp;</span><span style="color: #800080;">2</span><span style="color: #000000;">,&nbsp;</span><span style="color: #800000;">"</span><span style="color: #800000;">1,2|3,4,5</span><span style="color: #800000;">"</span><span style="color: #000000;">);<br />&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;Assert.Fail();<br />&nbsp;&nbsp;&nbsp;&nbsp;}<br />&nbsp;&nbsp;&nbsp;&nbsp;</span><span style="color: #0000ff;">catch</span><span style="color: #000000;">&nbsp;{&nbsp;}<br />&nbsp;&nbsp;&nbsp;&nbsp;</span><span style="color: #0000ff;">try</span><span style="color: #000000;">&nbsp;{<br />&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;m&nbsp;</span><span style="color: #000000;">=</span><span style="color: #000000;">&nbsp;</span><span style="color: #0000ff;">new</span><span style="color: #000000;">&nbsp;Matrix(</span><span style="color: #800080;">2</span><span style="color: #000000;">,&nbsp;</span><span style="color: #800080;">2</span><span style="color: #000000;">,&nbsp;</span><span style="color: #800000;">"</span><span style="color: #800000;">1,2|3,a</span><span style="color: #800000;">"</span><span style="color: #000000;">);<br />&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;Assert.Fail();<br />&nbsp;&nbsp;&nbsp;&nbsp;}<br />&nbsp;&nbsp;&nbsp;&nbsp;</span><span style="color: #0000ff;">catch</span><span style="color: #000000;">&nbsp;{&nbsp;}<br />}<br /><br />[TestMethod]<br /></span><span style="color: #0000ff;">public</span><span style="color: #000000;">&nbsp;</span><span style="color: #0000ff;">void</span><span style="color: #000000;">&nbsp;toStringTest()<br />{<br />&nbsp;&nbsp;&nbsp;&nbsp;Matrix&nbsp;matrix&nbsp;</span><span style="color: #000000;">=</span><span style="color: #000000;">&nbsp;</span><span style="color: #0000ff;">new</span><span style="color: #000000;">&nbsp;Matrix(</span><span style="color: #800080;">3</span><span style="color: #000000;">,&nbsp;</span><span style="color: #800080;">3</span><span style="color: #000000;">,&nbsp;</span><span style="color: #800000;">"</span><span style="color: #800000;">1,2,3|4,5,6|7,8,9</span><span style="color: #800000;">"</span><span style="color: #000000;">);<br />&nbsp;&nbsp;&nbsp;&nbsp;Assert.IsTrue(matrix.ToString()&nbsp;</span><span style="color: #000000;">==</span><span style="color: #000000;">&nbsp;</span><span style="color: #800000;">"</span><span style="color: #800000;">1,2,3|4,5,6|7,8,9</span><span style="color: #800000;">"</span><span style="color: #000000;">);<br />}<br /><br />[TestMethod()]<br /></span><span style="color: #0000ff;">public</span><span style="color: #000000;">&nbsp;</span><span style="color: #0000ff;">void</span><span style="color: #000000;">&nbsp;ShowTest()&nbsp;{<br />&nbsp;&nbsp;&nbsp;&nbsp;Matrix&nbsp;matrix&nbsp;</span><span style="color: #000000;">=</span><span style="color: #000000;">&nbsp;</span><span style="color: #0000ff;">new</span><span style="color: #000000;">&nbsp;Matrix(</span><span style="color: #800080;">2</span><span style="color: #000000;">,&nbsp;</span><span style="color: #800080;">2</span><span style="color: #000000;">,&nbsp;</span><span style="color: #800000;">"</span><span style="color: #800000;">1,2|3,4</span><span style="color: #800000;">"</span><span style="color: #000000;">);<br />&nbsp;&nbsp;&nbsp;&nbsp;matrix.Show();<br />&nbsp;&nbsp;&nbsp;&nbsp;</span><span style="color: #008000;">//</span><span style="color: #008000;">这玩意还真没法儿测，不出错就算成功</span><span style="color: #008000;"><br /></span><span style="color: #000000;">}</span></div></div></div><br /><h2>初等行变化</h2>矩阵的初等行变换虽然是很简单的变换，但用处非常大，包括行交换（两行交换位置），行倍乘（给某行乘以一个非零常数），行倍（某行乘以一个非零常数加到另一行上）加三种变换，因为行倍乘在求阶梯矩阵时用不到，就不写了。<br /><div class="cnblogs_code" onclick="cnblogs_code_show('5ac1549e-b885-44f7-ba41-93a41ff41e43')"><img src="http://images.cnblogs.com/OutliningIndicators/ContractedBlock.gif" class="code_img_closed" id="code_img_closed_5ac1549e-b885-44f7-ba41-93a41ff41e43" style="display: none;"  alt="" /><img src="http://images.cnblogs.com/OutliningIndicators/ExpandedBlockStart.gif" class="code_img_opened" id="code_img_opened_5ac1549e-b885-44f7-ba41-93a41ff41e43" onclick="cnblogs_code_hide('5ac1549e-b885-44f7-ba41-93a41ff41e43',event)"><span class="cnblogs_code_collapse">代码</span><div id="cnblogs_code_open_5ac1549e-b885-44f7-ba41-93a41ff41e43"><div><!--<br/ /><br/ />Code highlighting produced by Actipro CodeHighlighter (freeware)<br/ />http://www.CodeHighlighter.com/<br/ /><br/ />--><span style="color: #008000;">//</span><span style="color: #008000;">r1&#8594;r2,r2&#8594;r1</span><span style="color: #008000;"><br /></span><span style="color: #0000ff;">public</span><span style="color: #000000;">&nbsp;</span><span style="color: #0000ff;">void</span><span style="color: #000000;">&nbsp;swapRow(</span><span style="color: #0000ff;">int</span><span style="color: #000000;">&nbsp;r1,&nbsp;</span><span style="color: #0000ff;">int</span><span style="color: #000000;">&nbsp;r2)&nbsp;{<br />&nbsp;&nbsp;&nbsp;&nbsp;</span><span style="color: #0000ff;">double</span><span style="color: #000000;">[]&nbsp;temp&nbsp;</span><span style="color: #000000;">=</span><span style="color: #000000;">&nbsp;</span><span style="color: #0000ff;">new</span><span style="color: #000000;">&nbsp;</span><span style="color: #0000ff;">double</span><span style="color: #000000;">[N];<br />&nbsp;&nbsp;&nbsp;&nbsp;</span><span style="color: #0000ff;">for</span><span style="color: #000000;">&nbsp;(</span><span style="color: #0000ff;">int</span><span style="color: #000000;">&nbsp;i&nbsp;</span><span style="color: #000000;">=</span><span style="color: #000000;">&nbsp;</span><span style="color: #800080;">0</span><span style="color: #000000;">;&nbsp;i&nbsp;</span><span style="color: #000000;">&lt;</span><span style="color: #000000;">&nbsp;N;&nbsp;i</span><span style="color: #000000;">++</span><span style="color: #000000;">)<br />&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;temp[i]&nbsp;</span><span style="color: #000000;">=</span><span style="color: #000000;">&nbsp;num[r1,&nbsp;i];<br />&nbsp;&nbsp;&nbsp;&nbsp;</span><span style="color: #0000ff;">for</span><span style="color: #000000;">&nbsp;(</span><span style="color: #0000ff;">int</span><span style="color: #000000;">&nbsp;i&nbsp;</span><span style="color: #000000;">=</span><span style="color: #000000;">&nbsp;</span><span style="color: #800080;">0</span><span style="color: #000000;">;&nbsp;i&nbsp;</span><span style="color: #000000;">&lt;</span><span style="color: #000000;">&nbsp;N;&nbsp;i</span><span style="color: #000000;">++</span><span style="color: #000000;">)<br />&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;num[r1,&nbsp;i]&nbsp;</span><span style="color: #000000;">=</span><span style="color: #000000;">&nbsp;num[r2,&nbsp;i];<br />&nbsp;&nbsp;&nbsp;&nbsp;</span><span style="color: #0000ff;">for</span><span style="color: #000000;">&nbsp;(</span><span style="color: #0000ff;">int</span><span style="color: #000000;">&nbsp;i&nbsp;</span><span style="color: #000000;">=</span><span style="color: #000000;">&nbsp;</span><span style="color: #800080;">0</span><span style="color: #000000;">;&nbsp;i&nbsp;</span><span style="color: #000000;">&lt;</span><span style="color: #000000;">&nbsp;N;&nbsp;i</span><span style="color: #000000;">++</span><span style="color: #000000;">)<br />&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;num[r2,&nbsp;i]&nbsp;</span><span style="color: #000000;">=</span><span style="color: #000000;">&nbsp;temp[i];<br />}<br /></span><span style="color: #008000;">//</span><span style="color: #008000;">c&#215;r1+r2</span><span style="color: #008000;"><br /></span><span style="color: #0000ff;">public</span><span style="color: #000000;">&nbsp;</span><span style="color: #0000ff;">void</span><span style="color: #000000;">&nbsp;double_add(</span><span style="color: #0000ff;">int</span><span style="color: #000000;">&nbsp;r1,&nbsp;</span><span style="color: #0000ff;">int</span><span style="color: #000000;">&nbsp;r2,&nbsp;</span><span style="color: #0000ff;">double</span><span style="color: #000000;">&nbsp;c)&nbsp;{<br />&nbsp;&nbsp;&nbsp;&nbsp;</span><span style="color: #0000ff;">for</span><span style="color: #000000;">&nbsp;(</span><span style="color: #0000ff;">int</span><span style="color: #000000;">&nbsp;i&nbsp;</span><span style="color: #000000;">=</span><span style="color: #000000;">&nbsp;</span><span style="color: #800080;">0</span><span style="color: #000000;">;&nbsp;i&nbsp;</span><span style="color: #000000;">&lt;</span><span style="color: #000000;">&nbsp;N;&nbsp;i</span><span style="color: #000000;">++</span><span style="color: #000000;">)&nbsp;{<br />&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;num[r2,&nbsp;i]&nbsp;</span><span style="color: #000000;">+=</span><span style="color: #000000;">&nbsp;num[r1,&nbsp;i]&nbsp;</span><span style="color: #000000;">*</span><span style="color: #000000;">&nbsp;c;<br />&nbsp;&nbsp;&nbsp;&nbsp;}<br />}<br /><br /></span></div></div></div><p><br /></p>单元测试如下，能达到预期就可以。<br /><div class="cnblogs_code" onclick="cnblogs_code_show('ff039da9-b74f-44cb-82ea-77635f50ff3e')"><img src="http://images.cnblogs.com/OutliningIndicators/ContractedBlock.gif" class="code_img_closed" id="code_img_closed_ff039da9-b74f-44cb-82ea-77635f50ff3e" style="display: none;"  alt="" /><img src="http://images.cnblogs.com/OutliningIndicators/ExpandedBlockStart.gif" class="code_img_opened" id="code_img_opened_ff039da9-b74f-44cb-82ea-77635f50ff3e" onclick="cnblogs_code_hide('ff039da9-b74f-44cb-82ea-77635f50ff3e',event)"><span class="cnblogs_code_collapse">代码</span><div id="cnblogs_code_open_ff039da9-b74f-44cb-82ea-77635f50ff3e"><div><!--<br/ /><br/ />Code highlighting produced by Actipro CodeHighlighter (freeware)<br/ />http://www.CodeHighlighter.com/<br/ /><br/ />--><span style="color: #000000;">[TestMethod()]<br /></span><span style="color: #0000ff;">public</span><span style="color: #000000;">&nbsp;</span><span style="color: #0000ff;">void</span><span style="color: #000000;">&nbsp;swapRowTest()&nbsp;{<br />&nbsp;&nbsp;&nbsp;&nbsp;Matrix&nbsp;matrix&nbsp;</span><span style="color: #000000;">=</span><span style="color: #000000;">&nbsp;</span><span style="color: #0000ff;">new</span><span style="color: #000000;">&nbsp;Matrix(</span><span style="color: #800080;">2</span><span style="color: #000000;">,</span><span style="color: #800080;">2</span><span style="color: #000000;">,</span><span style="color: #800000;">"</span><span style="color: #800000;">1,2|3,4</span><span style="color: #800000;">"</span><span style="color: #000000;">);<br />&nbsp;&nbsp;&nbsp;&nbsp;matrix.swapRow(</span><span style="color: #800080;">0</span><span style="color: #000000;">,&nbsp;</span><span style="color: #800080;">1</span><span style="color: #000000;">);<br />&nbsp;&nbsp;&nbsp;&nbsp;Assert.IsTrue(matrix.ToString()&nbsp;</span><span style="color: #000000;">==</span><span style="color: #000000;">&nbsp;</span><span style="color: #800000;">"</span><span style="color: #800000;">3,4|1,2</span><span style="color: #800000;">"</span><span style="color: #000000;">);<br />}<br /><br />[TestMethod()]<br /></span><span style="color: #0000ff;">public</span><span style="color: #000000;">&nbsp;</span><span style="color: #0000ff;">void</span><span style="color: #000000;">&nbsp;double_addTest()&nbsp;{<br />&nbsp;&nbsp;&nbsp;&nbsp;Matrix&nbsp;matrix&nbsp;</span><span style="color: #000000;">=</span><span style="color: #000000;">&nbsp;</span><span style="color: #0000ff;">new</span><span style="color: #000000;">&nbsp;Matrix(</span><span style="color: #800080;">2</span><span style="color: #000000;">,</span><span style="color: #800080;">2</span><span style="color: #000000;">,</span><span style="color: #800000;">"</span><span style="color: #800000;">1,2|3,4</span><span style="color: #800000;">"</span><span style="color: #000000;">);<br />&nbsp;&nbsp;&nbsp;&nbsp;matrix.double_add(</span><span style="color: #800080;">0</span><span style="color: #000000;">,</span><span style="color: #800080;">1</span><span style="color: #000000;">,</span><span style="color: #800080;">2</span><span style="color: #000000;">);<br />&nbsp;&nbsp;&nbsp;&nbsp;Assert.IsTrue(matrix.ToString()&nbsp;</span><span style="color: #000000;">==</span><span style="color: #000000;">&nbsp;</span><span style="color: #800000;">"</span><span style="color: #800000;">1,2|5,8</span><span style="color: #800000;">"</span><span style="color: #000000;">);<br />}</span></div></div></div><br /><h2>化阶梯矩阵</h2>阶梯矩阵在矩阵算法中有很重要的作用，比如在解线性方程时，先化为阶梯阵，再从未知数最少的方程逐步回代求解，或者求矩阵的秩的时候先化成阶梯矩阵，再去数非零的行数。<br />任何一个矩阵都可以转换成阶梯矩阵，方法是一列一列去转换。<br />注：A表示矩阵，_标识下标，第一个下标表示行,第二个下标表示列<br />1、从A_1_1开始，假设A_1_1非0（如果为0，则和其他首非零行交换），把A_1_1记做a<br />2、如果A_2_1为非0，记做b，那么第一行乘以-(b/a)加到第二行上，这时第二行首为零。<br />3、依次类推，把从A_2_1,A_3_1,...,A_m_1都化为0.<br />4、转向A_2_2，假设假设A_2_2非0（如果为0，则和其他第二列非零行交换），把A_2_2记做a<br />5、如果A_3_2为非0，记做b，那么第一行乘以-(b/a)加到第三行上，这时第三行第二为零。<br />6、依次类推，把从A_3_2,A_4_2,...,A_m_2都化为0.<br />7、依次类推，没重复一次1-3步的操作，都会把一列的指定行下面均化为0，最终可得到阶梯矩阵。<br /><br /><div class="cnblogs_code" onclick="cnblogs_code_show('709425d9-7c5f-4c3e-8e5f-fc9ecb29b25e')"><img src="http://images.cnblogs.com/OutliningIndicators/ContractedBlock.gif" class="code_img_closed" id="code_img_closed_709425d9-7c5f-4c3e-8e5f-fc9ecb29b25e" style="display: none;"  alt="" /><img src="http://images.cnblogs.com/OutliningIndicators/ExpandedBlockStart.gif" class="code_img_opened" id="code_img_opened_709425d9-7c5f-4c3e-8e5f-fc9ecb29b25e" onclick="cnblogs_code_hide('709425d9-7c5f-4c3e-8e5f-fc9ecb29b25e',event)"><span class="cnblogs_code_collapse">代码</span><div id="cnblogs_code_open_709425d9-7c5f-4c3e-8e5f-fc9ecb29b25e"><div><!--<br/ /><br/ />Code highlighting produced by Actipro CodeHighlighter (freeware)<br/ />http://www.CodeHighlighter.com/<br/ /><br/ />--><span style="color: #0000ff;">public</span><span style="color: #000000;">&nbsp;</span><span style="color: #0000ff;">void</span><span style="color: #000000;">&nbsp;toStrassen()&nbsp;{<br />&nbsp;&nbsp;&nbsp;&nbsp;</span><span style="color: #0000ff;">int</span><span style="color: #000000;">&nbsp;start_row&nbsp;</span><span style="color: #000000;">=</span><span style="color: #000000;">&nbsp;</span><span style="color: #800080;">0</span><span style="color: #000000;">,&nbsp;start_col&nbsp;</span><span style="color: #000000;">=</span><span style="color: #000000;">&nbsp;</span><span style="color: #800080;">0</span><span style="color: #000000;">;<br />&nbsp;&nbsp;&nbsp;&nbsp;</span><span style="color: #0000ff;">for</span><span style="color: #000000;">&nbsp;(</span><span style="color: #0000ff;">int</span><span style="color: #000000;">&nbsp;col&nbsp;</span><span style="color: #000000;">=</span><span style="color: #000000;">&nbsp;</span><span style="color: #800080;">0</span><span style="color: #000000;">;&nbsp;col&nbsp;</span><span style="color: #000000;">&lt;</span><span style="color: #000000;">&nbsp;N;&nbsp;col</span><span style="color: #000000;">++</span><span style="color: #000000;">)&nbsp;{</span><span style="color: #008000;">//</span><span style="color: #008000;">一列一列去处理</span><span style="color: #008000;"><br /></span><span style="color: #000000;">&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;var&nbsp;no_zero_col&nbsp;</span><span style="color: #000000;">=</span><span style="color: #000000;">&nbsp;get_no_zero_col(start_row,&nbsp;start_col);<br /><br />&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;</span><span style="color: #0000ff;">if</span><span style="color: #000000;">&nbsp;(no_zero_col&nbsp;</span><span style="color: #000000;">==</span><span style="color: #000000;">&nbsp;</span><span style="color: #000000;">-</span><span style="color: #800080;">1</span><span style="color: #000000;">)&nbsp;</span><span style="color: #0000ff;">return</span><span style="color: #000000;">;&nbsp;</span><span style="color: #008000;">//</span><span style="color: #008000;">从该行该列向下向右全为0,直接返回</span><span style="color: #008000;"><br /></span><span style="color: #000000;"><br />&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;make_col_zero(no_zero_col,&nbsp;start_row);<br /><br />&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;start_row</span><span style="color: #000000;">++</span><span style="color: #000000;">;<br />&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;</span><span style="color: #0000ff;">if</span><span style="color: #000000;">&nbsp;(no_zero_col&nbsp;</span><span style="color: #000000;">==</span><span style="color: #000000;">&nbsp;N&nbsp;</span><span style="color: #000000;">-</span><span style="color: #000000;">&nbsp;</span><span style="color: #800080;">1</span><span style="color: #000000;">)<br />&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;</span><span style="color: #0000ff;">return</span><span style="color: #000000;">;<br />&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;start_col&nbsp;</span><span style="color: #000000;">=</span><span style="color: #000000;">&nbsp;</span><span style="color: #000000;">++</span><span style="color: #000000;">no_zero_col;<br />&nbsp;&nbsp;&nbsp;&nbsp;}<br />}<br /><br /></span><span style="color: #008000;">//</span><span style="color: #008000;">通过倍加运算使某一列从某个起始行开始下面的数为0</span><span style="color: #008000;"><br /></span><span style="color: #0000ff;">private</span><span style="color: #000000;">&nbsp;</span><span style="color: #0000ff;">void</span><span style="color: #000000;">&nbsp;make_col_zero(</span><span style="color: #0000ff;">int</span><span style="color: #000000;">&nbsp;col,&nbsp;</span><span style="color: #0000ff;">int</span><span style="color: #000000;">&nbsp;start_row)&nbsp;{<br />&nbsp;&nbsp;&nbsp;&nbsp;</span><span style="color: #0000ff;">for</span><span style="color: #000000;">&nbsp;(</span><span style="color: #0000ff;">int</span><span style="color: #000000;">&nbsp;row&nbsp;</span><span style="color: #000000;">=</span><span style="color: #000000;">&nbsp;start_row&nbsp;</span><span style="color: #000000;">+</span><span style="color: #000000;">&nbsp;</span><span style="color: #800080;">1</span><span style="color: #000000;">;&nbsp;row&nbsp;</span><span style="color: #000000;">&lt;</span><span style="color: #000000;">&nbsp;M;&nbsp;row</span><span style="color: #000000;">++</span><span style="color: #000000;">)&nbsp;{<br />&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;var&nbsp;z&nbsp;</span><span style="color: #000000;">=</span><span style="color: #000000;">&nbsp;num[row,&nbsp;col]&nbsp;</span><span style="color: #000000;">/</span><span style="color: #000000;">&nbsp;num[start_row,&nbsp;col];<br />&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;double_add(start_row,&nbsp;row,&nbsp;</span><span style="color: #000000;">-</span><span style="color: #000000;">z);<br />&nbsp;&nbsp;&nbsp;&nbsp;}<br />}<br /><br /></span><span style="color: #008000;">//</span><span style="color: #008000;">&nbsp;获取从指定起始行和起始列开始的非零列。<br /></span><span style="color: #008000;">//</span><span style="color: #008000;">如果在起始列上从起始行开始找到非零行，但不是给定起始行，那么利用初等变化交换这两行。<br /></span><span style="color: #008000;">//</span><span style="color: #008000;">&nbsp;如果在起始列上未找到非零行，那么起始行不变，起始列右移重新计算</span><span style="color: #008000;"><br /></span><span style="color: #0000ff;">private</span><span style="color: #000000;">&nbsp;</span><span style="color: #0000ff;">int</span><span style="color: #000000;">&nbsp;get_no_zero_col(</span><span style="color: #0000ff;">int</span><span style="color: #000000;">&nbsp;start_row,&nbsp;</span><span style="color: #0000ff;">int</span><span style="color: #000000;">&nbsp;start_col)&nbsp;{<br />&nbsp;&nbsp;&nbsp;&nbsp;</span><span style="color: #0000ff;">for</span><span style="color: #000000;">&nbsp;(</span><span style="color: #0000ff;">int</span><span style="color: #000000;">&nbsp;row&nbsp;</span><span style="color: #000000;">=</span><span style="color: #000000;">&nbsp;start_row;&nbsp;row&nbsp;</span><span style="color: #000000;">&lt;</span><span style="color: #000000;">&nbsp;M;&nbsp;row</span><span style="color: #000000;">++</span><span style="color: #000000;">)&nbsp;{<br />&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;</span><span style="color: #0000ff;">if</span><span style="color: #000000;">&nbsp;(num[row,&nbsp;start_col]&nbsp;</span><span style="color: #000000;">==</span><span style="color: #000000;">&nbsp;</span><span style="color: #800080;">0</span><span style="color: #000000;">)&nbsp;</span><span style="color: #0000ff;">continue</span><span style="color: #000000;">;<br />&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;swapRow(row,&nbsp;start_row);<br />&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;</span><span style="color: #0000ff;">return</span><span style="color: #000000;">&nbsp;start_col;<br />&nbsp;&nbsp;&nbsp;&nbsp;}<br />&nbsp;&nbsp;&nbsp;&nbsp;</span><span style="color: #0000ff;">for</span><span style="color: #000000;">&nbsp;(</span><span style="color: #0000ff;">int</span><span style="color: #000000;">&nbsp;col&nbsp;</span><span style="color: #000000;">=</span><span style="color: #000000;">&nbsp;start_col&nbsp;</span><span style="color: #000000;">+</span><span style="color: #000000;">&nbsp;</span><span style="color: #800080;">1</span><span style="color: #000000;">;&nbsp;col&nbsp;</span><span style="color: #000000;">&lt;</span><span style="color: #000000;">&nbsp;N;&nbsp;col</span><span style="color: #000000;">++</span><span style="color: #000000;">)&nbsp;{<br />&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;</span><span style="color: #0000ff;">for</span><span style="color: #000000;">&nbsp;(</span><span style="color: #0000ff;">int</span><span style="color: #000000;">&nbsp;row&nbsp;</span><span style="color: #000000;">=</span><span style="color: #000000;">&nbsp;start_row;&nbsp;row&nbsp;</span><span style="color: #000000;">&lt;</span><span style="color: #000000;">&nbsp;M;&nbsp;row</span><span style="color: #000000;">++</span><span style="color: #000000;">)&nbsp;{<br />&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;</span><span style="color: #0000ff;">if</span><span style="color: #000000;">&nbsp;(num[row,&nbsp;col]&nbsp;</span><span style="color: #000000;">==</span><span style="color: #000000;">&nbsp;</span><span style="color: #800080;">0</span><span style="color: #000000;">)&nbsp;</span><span style="color: #0000ff;">continue</span><span style="color: #000000;">;<br />&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;swapRow(start_row,&nbsp;row);<br />&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;</span><span style="color: #0000ff;">return</span><span style="color: #000000;">&nbsp;col;<br />&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;}<br />&nbsp;&nbsp;&nbsp;&nbsp;}<br />&nbsp;&nbsp;&nbsp;&nbsp;</span><span style="color: #0000ff;">return</span><span style="color: #000000;">&nbsp;</span><span style="color: #000000;">-</span><span style="color: #800080;">1</span><span style="color: #000000;">;<br />}<br /></span></div></div></div><p><br /></p>这个用例的单元测试稍微复杂，因为有很多分支，所以要考虑多种情况，比如矩阵本来就是阶梯矩阵，或者有0行，或者有多列只有前N行为0，对角线均为0等情况。<br /><div class="cnblogs_code" onclick="cnblogs_code_show('deba78b6-f13d-4f8b-b25c-87350912a156')"><img src="http://images.cnblogs.com/OutliningIndicators/ContractedBlock.gif" class="code_img_closed" id="code_img_closed_deba78b6-f13d-4f8b-b25c-87350912a156" style="display: none;"  alt="" /><img src="http://images.cnblogs.com/OutliningIndicators/ExpandedBlockStart.gif" class="code_img_opened" id="code_img_opened_deba78b6-f13d-4f8b-b25c-87350912a156" onclick="cnblogs_code_hide('deba78b6-f13d-4f8b-b25c-87350912a156',event)"><span class="cnblogs_code_collapse">代码</span><div id="cnblogs_code_open_deba78b6-f13d-4f8b-b25c-87350912a156"><div><!--<br/ /><br/ />Code highlighting produced by Actipro CodeHighlighter (freeware)<br/ />http://www.CodeHighlighter.com/<br/ /><br/ />--><span style="color: #000000;">[TestMethod()]<br /></span><span style="color: #0000ff;">public</span><span style="color: #000000;">&nbsp;</span><span style="color: #0000ff;">void</span><span style="color: #000000;">&nbsp;toStrassenTest()&nbsp;{<br />&nbsp;&nbsp;&nbsp;&nbsp;Matrix&nbsp;matrix&nbsp;</span><span style="color: #000000;">=</span><span style="color: #000000;">&nbsp;</span><span style="color: #0000ff;">new</span><span style="color: #000000;">&nbsp;Matrix(</span><span style="color: #800080;">4</span><span style="color: #000000;">,&nbsp;</span><span style="color: #800080;">4</span><span style="color: #000000;">,&nbsp;</span><span style="color: #800000;">"</span><span style="color: #800000;">0,1,-1,1|2,-2,1,1|2,3,-5,7|2,16,-14,24</span><span style="color: #800000;">"</span><span style="color: #000000;">);<br />&nbsp;&nbsp;&nbsp;&nbsp;matrix.toStrassen();<br />&nbsp;&nbsp;&nbsp;&nbsp;Assert.IsTrue(matrix.ToString()&nbsp;</span><span style="color: #000000;">==</span><span style="color: #000000;">&nbsp;</span><span style="color: #800000;">"</span><span style="color: #800000;">2,-2,1,1|0,1,-1,1|0,0,-1,1|0,0,0,8</span><span style="color: #800000;">"</span><span style="color: #000000;">);<br />&nbsp;&nbsp;&nbsp;&nbsp;matrix&nbsp;</span><span style="color: #000000;">=</span><span style="color: #000000;">&nbsp;</span><span style="color: #0000ff;">new</span><span style="color: #000000;">&nbsp;Matrix(</span><span style="color: #800080;">3</span><span style="color: #000000;">,&nbsp;</span><span style="color: #800080;">5</span><span style="color: #000000;">,&nbsp;</span><span style="color: #800000;">"</span><span style="color: #800000;">0,0,0,5,6|1,2,3,4,5|0,0,0,10,8</span><span style="color: #800000;">"</span><span style="color: #000000;">);<br />&nbsp;&nbsp;&nbsp;&nbsp;matrix.toStrassen();<br />&nbsp;&nbsp;&nbsp;&nbsp;Assert.IsTrue(matrix.ToString()&nbsp;</span><span style="color: #000000;">==</span><span style="color: #000000;">&nbsp;</span><span style="color: #800000;">"</span><span style="color: #800000;">1,2,3,4,5|0,0,0,5,6|0,0,0,0,-4</span><span style="color: #800000;">"</span><span style="color: #000000;">);<br />&nbsp;&nbsp;&nbsp;&nbsp;matrix&nbsp;</span><span style="color: #000000;">=</span><span style="color: #000000;">&nbsp;</span><span style="color: #0000ff;">new</span><span style="color: #000000;">&nbsp;Matrix(</span><span style="color: #800080;">3</span><span style="color: #000000;">,&nbsp;</span><span style="color: #800080;">3</span><span style="color: #000000;">,&nbsp;</span><span style="color: #800000;">"</span><span style="color: #800000;">1,2,3|4,0,0|0,0,0</span><span style="color: #800000;">"</span><span style="color: #000000;">);<br />&nbsp;&nbsp;&nbsp;&nbsp;matrix.toStrassen();<br />&nbsp;&nbsp;&nbsp;&nbsp;Assert.IsTrue(matrix.ToString()&nbsp;</span><span style="color: #000000;">==</span><span style="color: #000000;">&nbsp;</span><span style="color: #800000;">"</span><span style="color: #800000;">1,2,3|0,-8,-12|0,0,0</span><span style="color: #800000;">"</span><span style="color: #000000;">);<br />}<br /></span></div></div></div><p><br /></p><h2>求方阵的行列式</h2>只有方阵才可以求行列式的值，求行列式的值是一个多项式想加算法，公式如下<br /><img alt="" src="http://images.cnblogs.com/cnblogs_com/onlytiancai/detA.png" width="581" border="0" height="131" /><br />其中a是n阶方阵对应的行列式，&#964;表示对一个数列求逆序数，j1,j2,...jn是列下标，大概意思是行下标不变，是1,2,3,...,n，列下标是一个1,2,3,...,n的一个全排列（N级排列），然后每个多项式是n个分量相乘，这个分量的行下标是1-n顺序排列，列下标是n级排列的其中一个。<br /><br />这里用到了N级排列，所以先写个辅助类来求N级排列<br /><div class="cnblogs_code" onclick="cnblogs_code_show('53f11627-a96c-4d68-8250-23340901f822')"><img src="http://images.cnblogs.com/OutliningIndicators/ContractedBlock.gif" class="code_img_closed" id="code_img_closed_53f11627-a96c-4d68-8250-23340901f822" style="display: none;"  alt="" /><img src="http://images.cnblogs.com/OutliningIndicators/ExpandedBlockStart.gif" class="code_img_opened" id="code_img_opened_53f11627-a96c-4d68-8250-23340901f822" onclick="cnblogs_code_hide('53f11627-a96c-4d68-8250-23340901f822',event)"><span class="cnblogs_code_collapse">代码</span><div id="cnblogs_code_open_53f11627-a96c-4d68-8250-23340901f822"><div><!--<br/ /><br/ />Code highlighting produced by Actipro CodeHighlighter (freeware)<br/ />http://www.CodeHighlighter.com/<br/ /><br/ />--><span style="color: #008000;">//</span><span style="color: #008000;">计算一个N级排列</span><span style="color: #008000;"><br /></span><span style="color: #0000ff;">public</span><span style="color: #000000;">&nbsp;</span><span style="color: #0000ff;">static</span><span style="color: #000000;">&nbsp;IEnumerable</span><span style="color: #000000;">&lt;</span><span style="color: #0000ff;">int</span><span style="color: #000000;">[]</span><span style="color: #000000;">&gt;</span><span style="color: #000000;">&nbsp;permute(</span><span style="color: #0000ff;">int</span><span style="color: #000000;">&nbsp;n)&nbsp;{<br />&nbsp;&nbsp;&nbsp;&nbsp;</span><span style="color: #0000ff;">if</span><span style="color: #000000;">&nbsp;(n&nbsp;</span><span style="color: #000000;">&lt;</span><span style="color: #000000;">&nbsp;</span><span style="color: #800080;">0</span><span style="color: #000000;">)&nbsp;</span><span style="color: #0000ff;">throw</span><span style="color: #000000;">&nbsp;</span><span style="color: #0000ff;">new</span><span style="color: #000000;">&nbsp;ArgumentException();<br />&nbsp;&nbsp;&nbsp;&nbsp;List</span><span style="color: #000000;">&lt;</span><span style="color: #0000ff;">int</span><span style="color: #000000;">[]</span><span style="color: #000000;">&gt;</span><span style="color: #000000;">&nbsp;ret&nbsp;</span><span style="color: #000000;">=</span><span style="color: #000000;">&nbsp;</span><span style="color: #0000ff;">new</span><span style="color: #000000;">&nbsp;List</span><span style="color: #000000;">&lt;</span><span style="color: #0000ff;">int</span><span style="color: #000000;">[]</span><span style="color: #000000;">&gt;</span><span style="color: #000000;">();<br />&nbsp;&nbsp;&nbsp;&nbsp;</span><span style="color: #0000ff;">int</span><span style="color: #000000;">[]&nbsp;used&nbsp;</span><span style="color: #000000;">=</span><span style="color: #000000;">&nbsp;</span><span style="color: #0000ff;">new</span><span style="color: #000000;">&nbsp;</span><span style="color: #0000ff;">int</span><span style="color: #000000;">[n];<br />&nbsp;&nbsp;&nbsp;&nbsp;</span><span style="color: #0000ff;">int</span><span style="color: #000000;">[]&nbsp;p&nbsp;</span><span style="color: #000000;">=</span><span style="color: #000000;">&nbsp;</span><span style="color: #0000ff;">new</span><span style="color: #000000;">&nbsp;</span><span style="color: #0000ff;">int</span><span style="color: #000000;">[n];<br />&nbsp;&nbsp;&nbsp;&nbsp;</span><span style="color: #0000ff;">int</span><span style="color: #000000;">[]&nbsp;data&nbsp;</span><span style="color: #000000;">=</span><span style="color: #000000;">&nbsp;</span><span style="color: #0000ff;">new</span><span style="color: #000000;">&nbsp;</span><span style="color: #0000ff;">int</span><span style="color: #000000;">[n];<br />&nbsp;&nbsp;&nbsp;&nbsp;</span><span style="color: #0000ff;">for</span><span style="color: #000000;">&nbsp;(</span><span style="color: #0000ff;">int</span><span style="color: #000000;">&nbsp;i&nbsp;</span><span style="color: #000000;">=</span><span style="color: #000000;">&nbsp;</span><span style="color: #800080;">0</span><span style="color: #000000;">;&nbsp;i&nbsp;</span><span style="color: #000000;">&lt;</span><span style="color: #000000;">&nbsp;n;&nbsp;i</span><span style="color: #000000;">++</span><span style="color: #000000;">)<br />&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;data[i]&nbsp;</span><span style="color: #000000;">=</span><span style="color: #000000;">&nbsp;i;<br />&nbsp;&nbsp;&nbsp;&nbsp;permute(ret,&nbsp;n,&nbsp;</span><span style="color: #800080;">0</span><span style="color: #000000;">,&nbsp;used,&nbsp;p,&nbsp;data);<br />&nbsp;&nbsp;&nbsp;&nbsp;</span><span style="color: #0000ff;">return</span><span style="color: #000000;">&nbsp;ret;<br />}<br /><br /></span><span style="color: #008000;">//</span><span style="color: #008000;">从一个数的集合里选注N个数的排列组合，使用回溯算法，复杂度应该是O(n!)<br /></span><span style="color: #008000;">//</span><span style="color: #008000; text-decoration: underline;">http://blog.chinaunix.net/u/10638/showart.php?id=52814</span><span style="color: #008000;"><br /></span><span style="color: #0000ff;">private</span><span style="color: #000000;">&nbsp;</span><span style="color: #0000ff;">static</span><span style="color: #000000;">&nbsp;</span><span style="color: #0000ff;">void</span><span style="color: #000000;">&nbsp;permute(ICollection</span><span style="color: #000000;">&lt;</span><span style="color: #0000ff;">int</span><span style="color: #000000;">[]</span><span style="color: #000000;">&gt;</span><span style="color: #000000;">&nbsp;list,&nbsp;</span><span style="color: #0000ff;">int</span><span style="color: #000000;">&nbsp;n,&nbsp;</span><span style="color: #0000ff;">int</span><span style="color: #000000;">&nbsp;pos,&nbsp;</span><span style="color: #0000ff;">int</span><span style="color: #000000;">[]&nbsp;used,&nbsp;</span><span style="color: #0000ff;">int</span><span style="color: #000000;">[]&nbsp;p,&nbsp;</span><span style="color: #0000ff;">int</span><span style="color: #000000;">[]&nbsp;data)&nbsp;{<br />&nbsp;&nbsp;&nbsp;&nbsp;</span><span style="color: #0000ff;">if</span><span style="color: #000000;">&nbsp;(pos&nbsp;</span><span style="color: #000000;">==</span><span style="color: #000000;">&nbsp;n)&nbsp;{<br />&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;</span><span style="color: #0000ff;">int</span><span style="color: #000000;">[]&nbsp;temp&nbsp;</span><span style="color: #000000;">=</span><span style="color: #000000;">&nbsp;</span><span style="color: #0000ff;">new</span><span style="color: #000000;">&nbsp;</span><span style="color: #0000ff;">int</span><span style="color: #000000;">[n];<br />&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;p.CopyTo(temp,&nbsp;</span><span style="color: #800080;">0</span><span style="color: #000000;">);<br />&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;list.Add(temp);<br />&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;</span><span style="color: #0000ff;">return</span><span style="color: #000000;">;<br />&nbsp;&nbsp;&nbsp;&nbsp;}<br />&nbsp;&nbsp;&nbsp;&nbsp;</span><span style="color: #0000ff;">for</span><span style="color: #000000;">&nbsp;(</span><span style="color: #0000ff;">int</span><span style="color: #000000;">&nbsp;i&nbsp;</span><span style="color: #000000;">=</span><span style="color: #000000;">&nbsp;</span><span style="color: #800080;">0</span><span style="color: #000000;">;&nbsp;i&nbsp;</span><span style="color: #000000;">&lt;</span><span style="color: #000000;">&nbsp;n;&nbsp;i</span><span style="color: #000000;">++</span><span style="color: #000000;">)&nbsp;{<br />&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;</span><span style="color: #0000ff;">if</span><span style="color: #000000;">&nbsp;(used[i]&nbsp;</span><span style="color: #000000;">!=</span><span style="color: #000000;">&nbsp;</span><span style="color: #800080;">0</span><span style="color: #000000;">)&nbsp;</span><span style="color: #0000ff;">continue</span><span style="color: #000000;">;<br />&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;used[i]</span><span style="color: #000000;">++</span><span style="color: #000000;">;<br />&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;p[pos]&nbsp;</span><span style="color: #000000;">=</span><span style="color: #000000;">&nbsp;data[i];<br />&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;permute(list,&nbsp;n,&nbsp;pos&nbsp;</span><span style="color: #000000;">+</span><span style="color: #000000;">&nbsp;</span><span style="color: #800080;">1</span><span style="color: #000000;">,&nbsp;used,&nbsp;p,&nbsp;data);<br />&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;used[i]</span><span style="color: #000000;">--</span><span style="color: #000000;">;<br />&nbsp;&nbsp;&nbsp;&nbsp;}<br />}<br /><br /></span></div></div></div><p><br /></p>核心算法是从网上找的，先对其进行单元测试<br /><div class="cnblogs_code" onclick="cnblogs_code_show('cd7fc7ce-cffa-456c-972b-3909e0ab9529')"><img src="http://images.cnblogs.com/OutliningIndicators/ContractedBlock.gif" class="code_img_closed" id="code_img_closed_cd7fc7ce-cffa-456c-972b-3909e0ab9529" style="display: none;"  alt="" /><img src="http://images.cnblogs.com/OutliningIndicators/ExpandedBlockStart.gif" class="code_img_opened" id="code_img_opened_cd7fc7ce-cffa-456c-972b-3909e0ab9529" onclick="cnblogs_code_hide('cd7fc7ce-cffa-456c-972b-3909e0ab9529',event)"><span class="cnblogs_code_collapse">代码</span><div id="cnblogs_code_open_cd7fc7ce-cffa-456c-972b-3909e0ab9529"><div><!--<br/ /><br/ />Code highlighting produced by Actipro CodeHighlighter (freeware)<br/ />http://www.CodeHighlighter.com/<br/ /><br/ />--><span style="color: #000000;">[TestMethod()]<br /></span><span style="color: #0000ff;">public</span><span style="color: #000000;">&nbsp;</span><span style="color: #0000ff;">void</span><span style="color: #000000;">&nbsp;permuteTest()&nbsp;{<br />&nbsp;&nbsp;&nbsp;&nbsp;</span><span style="color: #0000ff;">try</span><span style="color: #000000;"><br />&nbsp;&nbsp;&nbsp;&nbsp;{<br />&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;MathHelper.permute(</span><span style="color: #000000;">-</span><span style="color: #800080;">1</span><span style="color: #000000;">);<br />&nbsp;&nbsp;&nbsp;&nbsp;}<br />&nbsp;&nbsp;&nbsp;&nbsp;</span><span style="color: #0000ff;">catch</span><span style="color: #000000;">&nbsp;(Exception&nbsp;ex)<br />&nbsp;&nbsp;&nbsp;&nbsp;{<br />&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;Assert.IsInstanceOfType(ex,&nbsp;</span><span style="color: #0000ff;">typeof</span><span style="color: #000000;">(ArgumentException));<br />&nbsp;&nbsp;&nbsp;&nbsp;}<br />&nbsp;&nbsp;&nbsp;&nbsp;</span><span style="color: #0000ff;">const</span><span style="color: #000000;">&nbsp;</span><span style="color: #0000ff;">int</span><span style="color: #000000;">&nbsp;n&nbsp;</span><span style="color: #000000;">=</span><span style="color: #000000;">&nbsp;</span><span style="color: #800080;">3</span><span style="color: #000000;">;<br />&nbsp;&nbsp;&nbsp;&nbsp;IEnumerable</span><span style="color: #000000;">&lt;</span><span style="color: #0000ff;">int</span><span style="color: #000000;">[]</span><span style="color: #000000;">&gt;</span><span style="color: #000000;">&nbsp;actual&nbsp;</span><span style="color: #000000;">=</span><span style="color: #000000;">&nbsp;MathHelper.permute(n);<br />&nbsp;&nbsp;&nbsp;&nbsp;</span><span style="color: #0000ff;">int</span><span style="color: #000000;">&nbsp;len&nbsp;</span><span style="color: #000000;">=</span><span style="color: #000000;">&nbsp;</span><span style="color: #800080;">0</span><span style="color: #000000;">;<br />&nbsp;&nbsp;&nbsp;&nbsp;List</span><span style="color: #000000;">&lt;</span><span style="color: #0000ff;">string</span><span style="color: #000000;">&gt;</span><span style="color: #000000;">&nbsp;expected&nbsp;</span><span style="color: #000000;">=</span><span style="color: #000000;">&nbsp;</span><span style="color: #0000ff;">new</span><span style="color: #000000;">&nbsp;List</span><span style="color: #000000;">&lt;</span><span style="color: #0000ff;">string</span><span style="color: #000000;">&gt;</span><span style="color: #000000;">()&nbsp;{&nbsp;</span><span style="color: #800000;">"</span><span style="color: #800000;">012</span><span style="color: #800000;">"</span><span style="color: #000000;">,&nbsp;</span><span style="color: #800000;">"</span><span style="color: #800000;">021</span><span style="color: #800000;">"</span><span style="color: #000000;">,&nbsp;</span><span style="color: #800000;">"</span><span style="color: #800000;">102</span><span style="color: #800000;">"</span><span style="color: #000000;">,&nbsp;</span><span style="color: #800000;">"</span><span style="color: #800000;">120</span><span style="color: #800000;">"</span><span style="color: #000000;">,&nbsp;</span><span style="color: #800000;">"</span><span style="color: #800000;">201</span><span style="color: #800000;">"</span><span style="color: #000000;">,&nbsp;</span><span style="color: #800000;">"</span><span style="color: #800000;">210</span><span style="color: #800000;">"</span><span style="color: #000000;">&nbsp;};<br />&nbsp;&nbsp;&nbsp;&nbsp;List</span><span style="color: #000000;">&lt;</span><span style="color: #0000ff;">string</span><span style="color: #000000;">&gt;</span><span style="color: #000000;">&nbsp;actualstrs&nbsp;</span><span style="color: #000000;">=</span><span style="color: #000000;">&nbsp;</span><span style="color: #0000ff;">new</span><span style="color: #000000;">&nbsp;List</span><span style="color: #000000;">&lt;</span><span style="color: #0000ff;">string</span><span style="color: #000000;">&gt;</span><span style="color: #000000;">();<br />&nbsp;&nbsp;&nbsp;&nbsp;</span><span style="color: #0000ff;">foreach</span><span style="color: #000000;">&nbsp;(</span><span style="color: #0000ff;">int</span><span style="color: #000000;">[]&nbsp;ints&nbsp;</span><span style="color: #0000ff;">in</span><span style="color: #000000;">&nbsp;actual)&nbsp;{<br />&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;</span><span style="color: #0000ff;">string</span><span style="color: #000000;">&nbsp;temp&nbsp;</span><span style="color: #000000;">=</span><span style="color: #000000;">&nbsp;</span><span style="color: #0000ff;">string</span><span style="color: #000000;">.Empty;<br />&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;</span><span style="color: #0000ff;">for</span><span style="color: #000000;">&nbsp;(</span><span style="color: #0000ff;">int</span><span style="color: #000000;">&nbsp;i&nbsp;</span><span style="color: #000000;">=</span><span style="color: #000000;">&nbsp;</span><span style="color: #800080;">0</span><span style="color: #000000;">;&nbsp;i&nbsp;</span><span style="color: #000000;">&lt;</span><span style="color: #000000;">&nbsp;ints.Length;&nbsp;i</span><span style="color: #000000;">++</span><span style="color: #000000;">)<br />&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;temp&nbsp;</span><span style="color: #000000;">+=</span><span style="color: #000000;">&nbsp;ints[i].ToString();<br />&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;actualstrs.Add(temp);<br />&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;len</span><span style="color: #000000;">++</span><span style="color: #000000;">;<br />&nbsp;&nbsp;&nbsp;&nbsp;}<br />&nbsp;&nbsp;&nbsp;&nbsp;Assert.IsTrue(len&nbsp;</span><span style="color: #000000;">==</span><span style="color: #000000;">&nbsp;</span><span style="color: #800080;">6</span><span style="color: #000000;">);<br />&nbsp;&nbsp;&nbsp;&nbsp;</span><span style="color: #0000ff;">foreach</span><span style="color: #000000;">&nbsp;(</span><span style="color: #0000ff;">string</span><span style="color: #000000;">&nbsp;s&nbsp;</span><span style="color: #0000ff;">in</span><span style="color: #000000;">&nbsp;expected)<br />&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;Assert.IsTrue(actualstrs.Contains(s));<br /><br />}<br /></span></div></div></div><p><br /></p>求一个数列中的逆序数，直接用遍历数一遍就行了，不过也得做单元测试。<br /><div class="cnblogs_code" onclick="cnblogs_code_show('f095ab1e-d93c-4346-880c-99416501d762')"><img src="http://images.cnblogs.com/OutliningIndicators/ContractedBlock.gif" class="code_img_closed" id="code_img_closed_f095ab1e-d93c-4346-880c-99416501d762" style="display: none;"  alt="" /><img src="http://images.cnblogs.com/OutliningIndicators/ExpandedBlockStart.gif" class="code_img_opened" id="code_img_opened_f095ab1e-d93c-4346-880c-99416501d762" onclick="cnblogs_code_hide('f095ab1e-d93c-4346-880c-99416501d762',event)"><span class="cnblogs_code_collapse">代码</span><div id="cnblogs_code_open_f095ab1e-d93c-4346-880c-99416501d762"><div><!--<br/ /><br/ />Code highlighting produced by Actipro CodeHighlighter (freeware)<br/ />http://www.CodeHighlighter.com/<br/ /><br/ />--><span style="color: #008000;">//</span><span style="color: #008000;">计算一个排列中的逆序数，O(n^2)复杂度，没做优化</span><span style="color: #008000;"><br /></span><span style="color: #0000ff;">public</span><span style="color: #000000;">&nbsp;</span><span style="color: #0000ff;">static</span><span style="color: #000000;">&nbsp;</span><span style="color: #0000ff;">int</span><span style="color: #000000;">&nbsp;ReverseNumber(</span><span style="color: #0000ff;">int</span><span style="color: #000000;">[]&nbsp;cols)&nbsp;{<br />&nbsp;&nbsp;&nbsp;&nbsp;</span><span style="color: #0000ff;">if</span><span style="color: #000000;">&nbsp;(cols&nbsp;</span><span style="color: #000000;">==</span><span style="color: #000000;">&nbsp;</span><span style="color: #0000ff;">null</span><span style="color: #000000;">)&nbsp;</span><span style="color: #0000ff;">throw</span><span style="color: #000000;">&nbsp;</span><span style="color: #0000ff;">new</span><span style="color: #000000;">&nbsp;ArgumentNullException();<br />&nbsp;&nbsp;&nbsp;&nbsp;</span><span style="color: #0000ff;">int</span><span style="color: #000000;">&nbsp;ret&nbsp;</span><span style="color: #000000;">=</span><span style="color: #000000;">&nbsp;</span><span style="color: #800080;">0</span><span style="color: #000000;">;<br />&nbsp;&nbsp;&nbsp;&nbsp;</span><span style="color: #0000ff;">int</span><span style="color: #000000;">&nbsp;len&nbsp;</span><span style="color: #000000;">=</span><span style="color: #000000;">&nbsp;cols.Length;<br />&nbsp;&nbsp;&nbsp;&nbsp;</span><span style="color: #0000ff;">for</span><span style="color: #000000;">&nbsp;(</span><span style="color: #0000ff;">int</span><span style="color: #000000;">&nbsp;i&nbsp;</span><span style="color: #000000;">=</span><span style="color: #000000;">&nbsp;</span><span style="color: #800080;">0</span><span style="color: #000000;">;&nbsp;i&nbsp;</span><span style="color: #000000;">&lt;</span><span style="color: #000000;">&nbsp;len;&nbsp;i</span><span style="color: #000000;">++</span><span style="color: #000000;">)&nbsp;{<br />&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;</span><span style="color: #0000ff;">for</span><span style="color: #000000;">&nbsp;(</span><span style="color: #0000ff;">int</span><span style="color: #000000;">&nbsp;j&nbsp;</span><span style="color: #000000;">=</span><span style="color: #000000;">&nbsp;i&nbsp;</span><span style="color: #000000;">+</span><span style="color: #000000;">&nbsp;</span><span style="color: #800080;">1</span><span style="color: #000000;">;&nbsp;j&nbsp;</span><span style="color: #000000;">&lt;</span><span style="color: #000000;">&nbsp;len;&nbsp;j</span><span style="color: #000000;">++</span><span style="color: #000000;">)<br />&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;</span><span style="color: #0000ff;">if</span><span style="color: #000000;">&nbsp;(cols[i]&nbsp;</span><span style="color: #000000;">&gt;</span><span style="color: #000000;">&nbsp;cols[j])<br />&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;ret</span><span style="color: #000000;">++</span><span style="color: #000000;">;<br />&nbsp;&nbsp;&nbsp;&nbsp;}<br />&nbsp;&nbsp;&nbsp;&nbsp;</span><span style="color: #0000ff;">return</span><span style="color: #000000;">&nbsp;ret;<br />}<br /></span></div></div></div><br />2, 4, 3, 1, 5这个排列中，2后面有1，4后面有3和1，3后面有1，共4个逆序，用例做单元测试的数据。<br /><div class="cnblogs_code" onclick="cnblogs_code_show('dc374ee2-d84f-480d-a0bf-0a3afe1790f3')"><img src="http://images.cnblogs.com/OutliningIndicators/ContractedBlock.gif" class="code_img_closed" id="code_img_closed_dc374ee2-d84f-480d-a0bf-0a3afe1790f3" style="display: none;"  alt="" /><img src="http://images.cnblogs.com/OutliningIndicators/ExpandedBlockStart.gif" class="code_img_opened" id="code_img_opened_dc374ee2-d84f-480d-a0bf-0a3afe1790f3" onclick="cnblogs_code_hide('dc374ee2-d84f-480d-a0bf-0a3afe1790f3',event)"><span class="cnblogs_code_collapse">代码</span><div id="cnblogs_code_open_dc374ee2-d84f-480d-a0bf-0a3afe1790f3"><div><!--<br/ /><br/ />Code highlighting produced by Actipro CodeHighlighter (freeware)<br/ />http://www.CodeHighlighter.com/<br/ /><br/ />--><span style="color: #000000;">[TestMethod()]<br /></span><span style="color: #0000ff;">public</span><span style="color: #000000;">&nbsp;</span><span style="color: #0000ff;">void</span><span style="color: #000000;">&nbsp;ReverseNumberTest()&nbsp;{<br />&nbsp;&nbsp;&nbsp;&nbsp;</span><span style="color: #0000ff;">try</span><span style="color: #000000;">&nbsp;{<br />&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;MathHelper.ReverseNumber(</span><span style="color: #0000ff;">null</span><span style="color: #000000;">);<br />&nbsp;&nbsp;&nbsp;&nbsp;}<br />&nbsp;&nbsp;&nbsp;&nbsp;</span><span style="color: #0000ff;">catch</span><span style="color: #000000;">&nbsp;(Exception&nbsp;ex)&nbsp;{<br />&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;Assert.IsInstanceOfType(ex,&nbsp;</span><span style="color: #0000ff;">typeof</span><span style="color: #000000;">(ArgumentNullException));<br />&nbsp;&nbsp;&nbsp;&nbsp;}<br /><br />&nbsp;&nbsp;&nbsp;&nbsp;</span><span style="color: #0000ff;">int</span><span style="color: #000000;">[]&nbsp;cols&nbsp;</span><span style="color: #000000;">=</span><span style="color: #000000;">&nbsp;</span><span style="color: #0000ff;">new</span><span style="color: #000000;">[]&nbsp;{&nbsp;</span><span style="color: #800080;">2</span><span style="color: #000000;">,&nbsp;</span><span style="color: #800080;">4</span><span style="color: #000000;">,&nbsp;</span><span style="color: #800080;">3</span><span style="color: #000000;">,&nbsp;</span><span style="color: #800080;">1</span><span style="color: #000000;">,&nbsp;</span><span style="color: #800080;">5</span><span style="color: #000000;">&nbsp;};<br />&nbsp;&nbsp;&nbsp;&nbsp;</span><span style="color: #0000ff;">const</span><span style="color: #000000;">&nbsp;</span><span style="color: #0000ff;">int</span><span style="color: #000000;">&nbsp;expected&nbsp;</span><span style="color: #000000;">=</span><span style="color: #000000;">&nbsp;</span><span style="color: #800080;">4</span><span style="color: #000000;">;<br />&nbsp;&nbsp;&nbsp;&nbsp;</span><span style="color: #0000ff;">int</span><span style="color: #000000;">&nbsp;actual&nbsp;</span><span style="color: #000000;">=</span><span style="color: #000000;">&nbsp;MathHelper.ReverseNumber(cols);<br />&nbsp;&nbsp;&nbsp;&nbsp;Assert.AreEqual(expected,&nbsp;actual);<br /><br />}</span></div></div></div><br />有了两个辅助方法，就是用代码把公式写出来就行了<br /><div class="cnblogs_code" onclick="cnblogs_code_show('941de6e1-da18-43ef-9814-cd03984612fc')"><img src="http://images.cnblogs.com/OutliningIndicators/ContractedBlock.gif" class="code_img_closed" id="code_img_closed_941de6e1-da18-43ef-9814-cd03984612fc" style="display: none;"  alt="" /><img src="http://images.cnblogs.com/OutliningIndicators/ExpandedBlockStart.gif" class="code_img_opened" id="code_img_opened_941de6e1-da18-43ef-9814-cd03984612fc" onclick="cnblogs_code_hide('941de6e1-da18-43ef-9814-cd03984612fc',event)"><span class="cnblogs_code_collapse">代码</span><div id="cnblogs_code_open_941de6e1-da18-43ef-9814-cd03984612fc"><div><!--<br/ /><br/ />Code highlighting produced by Actipro CodeHighlighter (freeware)<br/ />http://www.CodeHighlighter.com/<br/ /><br/ />--><span style="color: #008000;">//</span><span style="color: #008000;">&#8721;_（j1,j2,&#8230;,jn）?〖(-1)^&#964;(j1,j2,&#8230;,jn)&nbsp;&nbsp;a_(1j_1&nbsp;)&nbsp;a_(2j_2&nbsp;)&nbsp;〗&#8230;a_(nj_n&nbsp;)</span><span style="color: #008000;"><br /></span><span style="color: #0000ff;">public</span><span style="color: #000000;">&nbsp;</span><span style="color: #0000ff;">double</span><span style="color: #000000;">&nbsp;detA()&nbsp;{<br />&nbsp;&nbsp;&nbsp;&nbsp;</span><span style="color: #0000ff;">if</span><span style="color: #000000;">&nbsp;(M&nbsp;</span><span style="color: #000000;">!=</span><span style="color: #000000;">&nbsp;N)<br />&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;</span><span style="color: #0000ff;">throw</span><span style="color: #000000;">&nbsp;</span><span style="color: #0000ff;">new</span><span style="color: #000000;">&nbsp;NotSupportedException();<br />&nbsp;&nbsp;&nbsp;&nbsp;</span><span style="color: #0000ff;">double</span><span style="color: #000000;">&nbsp;sum&nbsp;</span><span style="color: #000000;">=</span><span style="color: #000000;">&nbsp;</span><span style="color: #800080;">0.0D</span><span style="color: #000000;">;<br />&nbsp;&nbsp;&nbsp;&nbsp;var&nbsp;permute&nbsp;</span><span style="color: #000000;">=</span><span style="color: #000000;">&nbsp;MathHelper.permute(M);<br />&nbsp;&nbsp;&nbsp;&nbsp;</span><span style="color: #0000ff;">foreach</span><span style="color: #000000;">&nbsp;(</span><span style="color: #0000ff;">int</span><span style="color: #000000;">[]&nbsp;cols&nbsp;</span><span style="color: #0000ff;">in</span><span style="color: #000000;">&nbsp;permute)&nbsp;{<br />&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;</span><span style="color: #0000ff;">int</span><span style="color: #000000;">&nbsp;reverse_number&nbsp;</span><span style="color: #000000;">=</span><span style="color: #000000;">&nbsp;MathHelper.ReverseNumber(cols);<br />&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;</span><span style="color: #0000ff;">double</span><span style="color: #000000;">&nbsp;temp&nbsp;</span><span style="color: #000000;">=</span><span style="color: #000000;">&nbsp;</span><span style="color: #800080;">1.0D</span><span style="color: #000000;">;<br />&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;</span><span style="color: #0000ff;">for</span><span style="color: #000000;">&nbsp;(</span><span style="color: #0000ff;">int</span><span style="color: #000000;">&nbsp;i&nbsp;</span><span style="color: #000000;">=</span><span style="color: #000000;">&nbsp;</span><span style="color: #800080;">0</span><span style="color: #000000;">;&nbsp;i&nbsp;</span><span style="color: #000000;">&lt;</span><span style="color: #000000;">&nbsp;M;&nbsp;i</span><span style="color: #000000;">++</span><span style="color: #000000;">)&nbsp;{<br />&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;</span><span style="color: #0000ff;">int</span><span style="color: #000000;">&nbsp;j&nbsp;</span><span style="color: #000000;">=</span><span style="color: #000000;">&nbsp;cols[i];<br />&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;temp&nbsp;</span><span style="color: #000000;">*=</span><span style="color: #000000;">&nbsp;num[i,&nbsp;j];<br />&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;}<br /><br />&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;</span><span style="color: #0000ff;">if</span><span style="color: #000000;">&nbsp;(reverse_number&nbsp;</span><span style="color: #000000;">%</span><span style="color: #000000;">&nbsp;</span><span style="color: #800080;">2</span><span style="color: #000000;">&nbsp;</span><span style="color: #000000;">==</span><span style="color: #000000;">&nbsp;</span><span style="color: #800080;">0</span><span style="color: #000000;">)<br />&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;sum&nbsp;</span><span style="color: #000000;">+=</span><span style="color: #000000;">&nbsp;temp;<br />&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;</span><span style="color: #0000ff;">else</span><span style="color: #000000;"><br />&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;sum&nbsp;</span><span style="color: #000000;">-=</span><span style="color: #000000;">&nbsp;temp;<br />&nbsp;&nbsp;&nbsp;&nbsp;}<br />&nbsp;&nbsp;&nbsp;&nbsp;</span><span style="color: #0000ff;">return</span><span style="color: #000000;">&nbsp;sum;<br />}</span></div></div></div><p><br /></p>也做下单元测试<br /><div class="cnblogs_code" onclick="cnblogs_code_show('722c73be-0e32-4650-abcd-481481c8dc8b')"><img src="http://images.cnblogs.com/OutliningIndicators/ContractedBlock.gif" class="code_img_closed" id="code_img_closed_722c73be-0e32-4650-abcd-481481c8dc8b" style="display: none;"  alt="" /><img src="http://images.cnblogs.com/OutliningIndicators/ExpandedBlockStart.gif" class="code_img_opened" id="code_img_opened_722c73be-0e32-4650-abcd-481481c8dc8b" onclick="cnblogs_code_hide('722c73be-0e32-4650-abcd-481481c8dc8b',event)"><span class="cnblogs_code_collapse">代码</span><div id="cnblogs_code_open_722c73be-0e32-4650-abcd-481481c8dc8b"><div><!--<br/ /><br/ />Code highlighting produced by Actipro CodeHighlighter (freeware)<br/ />http://www.CodeHighlighter.com/<br/ /><br/ />--><span style="color: #000000;">[TestMethod()]<br /></span><span style="color: #0000ff;">public</span><span style="color: #000000;">&nbsp;</span><span style="color: #0000ff;">void</span><span style="color: #000000;">&nbsp;detATest()&nbsp;{<br />&nbsp;&nbsp;&nbsp;&nbsp;</span><span style="color: #0000ff;">const</span><span style="color: #000000;">&nbsp;</span><span style="color: #0000ff;">int</span><span style="color: #000000;">&nbsp;m&nbsp;</span><span style="color: #000000;">=</span><span style="color: #000000;">&nbsp;</span><span style="color: #800080;">4</span><span style="color: #000000;">;<br />&nbsp;&nbsp;&nbsp;&nbsp;</span><span style="color: #0000ff;">const</span><span style="color: #000000;">&nbsp;</span><span style="color: #0000ff;">int</span><span style="color: #000000;">&nbsp;n&nbsp;</span><span style="color: #000000;">=</span><span style="color: #000000;">&nbsp;</span><span style="color: #800080;">4</span><span style="color: #000000;">;<br />&nbsp;&nbsp;&nbsp;&nbsp;</span><span style="color: #0000ff;">const</span><span style="color: #000000;">&nbsp;</span><span style="color: #0000ff;">string</span><span style="color: #000000;">&nbsp;input&nbsp;</span><span style="color: #000000;">=</span><span style="color: #000000;">&nbsp;</span><span style="color: #800000;">"</span><span style="color: #800000;">4,-5,10,3|1,-1,3,1|2,-4,5,2|-3,2,-7,-1</span><span style="color: #800000;">"</span><span style="color: #000000;">;<br />&nbsp;&nbsp;&nbsp;&nbsp;Matrix&nbsp;target&nbsp;</span><span style="color: #000000;">=</span><span style="color: #000000;">&nbsp;</span><span style="color: #0000ff;">new</span><span style="color: #000000;">&nbsp;Matrix(m,&nbsp;n,&nbsp;input);<br />&nbsp;&nbsp;&nbsp;&nbsp;</span><span style="color: #0000ff;">const</span><span style="color: #000000;">&nbsp;</span><span style="color: #0000ff;">double</span><span style="color: #000000;">&nbsp;expected&nbsp;</span><span style="color: #000000;">=</span><span style="color: #000000;">&nbsp;1D;<br />&nbsp;&nbsp;&nbsp;&nbsp;</span><span style="color: #0000ff;">double</span><span style="color: #000000;">&nbsp;actual&nbsp;</span><span style="color: #000000;">=</span><span style="color: #000000;">&nbsp;target.detA();<br />&nbsp;&nbsp;&nbsp;&nbsp;Assert.AreEqual(expected,&nbsp;actual);<br /><br />&nbsp;&nbsp;&nbsp;&nbsp;Matrix&nbsp;matrix&nbsp;</span><span style="color: #000000;">=</span><span style="color: #000000;">&nbsp;</span><span style="color: #0000ff;">new</span><span style="color: #000000;">&nbsp;Matrix(</span><span style="color: #800080;">3</span><span style="color: #000000;">,&nbsp;</span><span style="color: #800080;">2</span><span style="color: #000000;">,&nbsp;</span><span style="color: #800000;">"</span><span style="color: #800000;">1,2|3,4|5,6</span><span style="color: #800000;">"</span><span style="color: #000000;">);<br />&nbsp;&nbsp;&nbsp;&nbsp;</span><span style="color: #0000ff;">try</span><span style="color: #000000;"><br />&nbsp;&nbsp;&nbsp;&nbsp;{<br />&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;matrix.detA();<br />&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;Assert.Fail();<br />&nbsp;&nbsp;&nbsp;&nbsp;}<br />&nbsp;&nbsp;&nbsp;&nbsp;</span><span style="color: #0000ff;">catch</span><span style="color: #000000;">{}<br />}</span></div></div></div><br /><h2>小节</h2><p>这里演示了写一个简单的类库，并用单元测试来保证其质量的过程，矩阵还涉及到其它算法，数乘，乘法，求逆，求特征值，特征向量等，慢慢再实现。</p>其中求特征值是一个解一元N次方程的问题，周末用二分法弄了好几个小时也没弄出来，这里求一下代码，呵呵。<img src="aggbug/1661292.html?type=0" width="1" height="1" alt=""/><p>评论: 10　<a href="http://www.cnblogs.com/onlytiancai/archive/2010/02/01/matrix.html#pagedcomment" target="_blank">查看评论</a>　<a href="http://www.cnblogs.com/onlytiancai/archive/2010/02/01/matrix.html#commentform" target="_blank">发表评论</a></p><hr/><p>最新新闻：<br/>· <a href="http://news.cnblogs.com/n/56793/" target="_blank">知名扩展 Firebug 的简化版登陆 Chrome</a><span style="color:gray">(2010-02-09 22:59)</span><br/>· <a href="http://news.cnblogs.com/n/56792/" target="_blank">Google 悄悄地启用 1e100.net，打枪地不要</a><span style="color:gray">(2010-02-09 22:57)</span><br/>· <a href="http://news.cnblogs.com/n/56791/" target="_blank">从 Google 代码库找到的好东西</a><span style="color:gray">(2010-02-09 22:46)</span><br/>· <a href="http://news.cnblogs.com/n/56789/" target="_blank">苹果在线商店临时关闭 或将推新Macbook</a><span style="color:gray">(2010-02-09 22:39)</span><br/>· <a href="http://news.cnblogs.com/n/56788/" target="_blank">豆瓣网推出豆瓣电台iPhone客户端</a><span style="color:gray">(2010-02-09 21:51)</span><br/></p><p>编辑推荐：<a href="http://news.cnblogs.com/n/56782/" target="_blank">2010年2月编程语言排行榜</a><br/></p><p>网站导航：<a href="http://www.cnblogs.com" target="_blank">博客园首页</a>&nbsp;&nbsp;<a href="http://home.cnblogs.com/" target="_blank">个人主页</a>&nbsp;&nbsp;<a href="http://news.cnblogs.com" target="_blank">新闻</a>&nbsp;&nbsp;<a href="http://home.cnblogs.com/ing/" target="_blank">闪存</a>&nbsp;&nbsp;<a href="http://home.cnblogs.com/group/" target="_blank">小组</a>&nbsp;&nbsp;<a href="http://space.cnblogs.com/q/" target="_blank">博问</a>&nbsp;&nbsp;<a href="http://space.cnblogs.com" target="_blank">社区</a>&nbsp;&nbsp;<a href="http://kb.cnblogs.com" target="_blank">知识库</a></p>]]></description></item><item><title>蛙蛙推荐：关于单元测试讨论-关于Mock</title><link>http://www.cnblogs.com/onlytiancai/archive/2010/01/30/mock.html</link><dc:creator>蛙蛙王子</dc:creator><author>蛙蛙王子</author><pubDate>Sat, 30 Jan 2010 03:04:00 GMT</pubDate><guid>http://www.cnblogs.com/onlytiancai/archive/2010/01/30/mock.html</guid><description><![CDATA[<p>阅读: 129 评论: 0 作者: <a href="" target="_blank">蛙蛙王子</a> 发表于 2010-01-30 11:04 <a href="http://www.cnblogs.com/onlytiancai/archive/2010/01/30/mock.html" target="_blank">原文链接</a></p><!--[endif]-->  <p>鸣谢：特别感谢NickWang的悉心指导，我才打消了对Mock是玄学的念头，加深了对单元测试的理解。 <br /></p><p><span style="font-family: 宋体;">需求：</span></p>  <p><span style="font-family: 宋体;">设计一个功能，输入一个整数，把这个整数取平方后加一。</span></p>  <p>&nbsp;</p>  <p><span style="font-family: 宋体;">先根据需求设计接口，根据需求，输入参数属于全体整数集，返回值属于正整数集</span></p>  <p>public interface IMathHelper</p>  <p>{</p>  <p>&nbsp;&nbsp;&nbsp; /// &lt;summary&gt;</p>  <p>&nbsp;&nbsp;&nbsp; /// <span style="font-family: 宋体;">实现平方加一的功能</span></p>  <p>&nbsp;&nbsp;&nbsp; /// &lt;/summary&gt;</p>  <p><span>&nbsp;&nbsp;&nbsp; /// &lt;param name="x"&gt;x</span><span style="font-family: 宋体;">&#8712;</span>Z&lt;/param&gt;</p>  <p>&nbsp;&nbsp;&nbsp; /// &lt;returns&gt;ret<span style="font-family: 宋体;">&#8712;</span>N+&lt;/returns&gt;</p>  <p><span>&nbsp;&nbsp;&nbsp; int SquareAndIncrease(int x);</span></p>  <p>}</p>  <p><span style="font-family: 宋体;">设计接口的时候要考虑是否有很好的可测试性，然后就可以写单元测试方法</span></p>  <p>&nbsp;</p>  <p>[TestMethod, Description("<span style="font-family: 宋体;">测试平方加一功能</span>")]</p>  <p>public void SquareAndIncreaseTest() {</p>  <p><span>&nbsp;&nbsp;&nbsp; IMathHelper mathHelper = null; //</span><span style="font-family: 宋体;">这里先空出来</span></p>  <p>&nbsp;&nbsp;&nbsp; const int arg = 2;</p>  <p><span>&nbsp;&nbsp;&nbsp; int ret = mathHelper.SquareAndIncrease(arg);</span></p>  <p>&nbsp;&nbsp;&nbsp; Assert.IsTrue(ret == 5);</p>  <p>}</p>  <p>&nbsp;</p>  <p><span style="font-family: 宋体;">测试只针对接口的合约进行测试，传入一个</span>arg=2<span style="font-family: 宋体;">，根据合约</span>2*2+1=5<span style="font-family: 宋体;">，预期</span>ret=5<span style="font-family: 宋体;">。</span></p>  <p>&nbsp;</p>  <p><span style="font-family: 宋体;">然后设计接口的实现，把该功能设计成两一部分，一部分实现生成平方的功能，一部分实现加一的功能。</span></p>  <p><span style="font-family: 宋体;">假如说实现平方的功能由另一个同事实现，你实现剩余的功能，因为你要调用生成平方的模块（服务），</span></p>  <p><span style="font-family: 宋体;">所以你们之间再设计一个合约，可以用比较轻型的委托来表达：</span>Func&lt;int, int&gt;</p>  <p><span style="font-family: 宋体;">然后你就可以实现</span>IMathHelper<span style="font-family: 宋体;">接口了，其中生成平方的功能是运行时注入的。</span></p>  <p>public class MathHelperImp : IMathHelper</p>  <p>{</p>  <p><span>&nbsp;&nbsp;&nbsp; private readonly Func&lt;int, int&gt; _square;</span></p>  <p><span>&nbsp;&nbsp;&nbsp; public MathHelperImp(Func&lt;int, int&gt; square)</span></p>  <p><span>&nbsp;&nbsp;&nbsp; {&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; </span></p>  <p><span>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; _square = square;</span></p>  <p>&nbsp;&nbsp;&nbsp; }</p>  <p><span>&nbsp;&nbsp;&nbsp; public int SquareAndIncrease(int x)</span></p>  <p>&nbsp;&nbsp;&nbsp; {</p>  <p><span>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; return _square(x) + 1;</span></p>  <p>&nbsp;&nbsp;&nbsp; }</p>  <p>}</p>  <p><span style="font-family: 宋体;">你现在要测试你的代码，你的代码的逻辑就是根据一个数，调用另一个模块取平方后再加一，</span></p>  <p><span style="font-family: 宋体;">而你不需要测试取平方的功能，在你测试你的模块的时候，取平方的功能可能还没实现呢。</span></p>  <p><span style="font-family: 宋体;">这时候你可以</span>Mock<span style="font-family: 宋体;">一个取平方功能的模块来使用，你只要根据这个模块的合约实现简单的输出功能即可，</span></p>  <p><span style="font-family: 宋体;">你不需要关心真正的该模块是如何实现的，比如</span>Func&lt;int, int&gt; sqrMock = x =&gt; 4;</p>  <p><span style="font-family: 宋体;">它传入任何值都返回</span>4<span style="font-family: 宋体;">，也就是你的</span>MockObject<span style="font-family: 宋体;">只针对特定的测试数据</span>2<span style="font-family: 宋体;">返回符合合约的输出。</span></p>  <p><span style="font-family: 宋体;">这个你就足以测试你的模块了，如下：</span></p>  <p>[TestMethod, Description("<span style="font-family: 宋体;">测试平方加一功能</span>")]</p>  <p>public void SquareAndIncreaseTest() {</p>  <p><span>&nbsp;&nbsp;&nbsp; Func&lt;int, int&gt; sqrMock = x =&gt; 4;</span></p>  <p><span>&nbsp;&nbsp;&nbsp; IMathHelper mathHelper = new MathHelperImp(sqrMock);</span></p>  <p>&nbsp;&nbsp;&nbsp; const int arg = 2;</p>  <p><span>&nbsp;&nbsp;&nbsp; int ret = mathHelper.SquareAndIncrease(arg);</span></p>  <p>&nbsp;&nbsp;&nbsp; Assert.IsTrue(ret == 5);</p>  <p>}</p>  <p><span style="font-family: 宋体;">这就是简单的</span>Mock<span style="font-family: 宋体;">的使用场景，比较适合这种面向合约的编程，而且是强类型的合约，比如接口，委托。</span></p>  <p>&nbsp;</p>  <p><span style="font-family: 宋体;">以前一直感觉</span>Mock<span style="font-family: 宋体;">是一种玄学，比如你要调用一个从数据库取数据的功能，难道你要</span>Mock<span style="font-family: 宋体;">一个数据库吗？</span></p>  <p><span style="font-family: 宋体;">如果要对你的服务进行单元测试，需要先通过</span>HTTP<span style="font-family: 宋体;">从</span>A<span style="font-family: 宋体;">服务获取配置，再用</span>Remoting<span style="font-family: 宋体;">去</span>B<span style="font-family: 宋体;">服务获取凭证，</span></p>  <p><span style="font-family: 宋体;">然后用</span>Socket<span style="font-family: 宋体;">给你的服务拼包，发包，你的服务还要调用</span>C<span style="font-family: 宋体;">服务，难道你要</span>Mock<span style="font-family: 宋体;">一个</span>A<span style="font-family: 宋体;">服务，</span>B<span style="font-family: 宋体;">服务，</span>C<span style="font-family: 宋体;">服务吗？</span></p>  <p><span style="font-family: 宋体;">如果这样的话，写</span>Mock<span style="font-family: 宋体;">的工作量也许比实现你的服务所花费的时间还多。</span></p>  <p>&nbsp;</p>  <p><span style="font-family: 宋体;">针对第一个问题，你要明确你测试什么，你测试的不是数据库的功能，所以你没必要</span>Mock<span style="font-family: 宋体;">一个完整的数据库。</span></p>  <p><span style="font-family: 宋体;">你在设计的时候就要倾向于做面向合约的设计，把访问数据库的部分设计成一个接口，尽量强类型的接口，</span></p>  <p><span style="font-family: 宋体;">输入什么，输出什么，会抛什么异常都说明清楚，这样合约很清楚的话，根据特定的测试数据能人为计算出输出，</span></p>  <p><span style="font-family: 宋体;">有了这些条件，写一实现合约但只有固定输出功能的对象来作为</span>MockObject<span style="font-family: 宋体;">就可以了。</span></p>  <p>&nbsp;</p>  <p><span style="font-family: 宋体;">如果你设计的接口是比较粗粒度的，比如</span>byte[] send(byte[] arg),<span style="font-family: 宋体;">输入和输出是按一定的二进制协议拼包，</span></p>  <p><span style="font-family: 宋体;">做这种设计有时候是迫不得已的，所以你在准备测试数据的时候要先根据二进制协议的规则去拼包，然后</span>MockObject</p>  <p><span style="font-family: 宋体;">实现的时候也要把固定的输出按二进制协议拼成特定的输出，甚至你的接口如果是在</span>HTTP<span style="font-family: 宋体;">方式通信的话，你还得</span></p>  <p><span style="font-family: 宋体;">使用一些</span>Http<span style="font-family: 宋体;">通信的相关类库去写单元测试代码和</span>MockObject<span style="font-family: 宋体;">的实现代码。</span></p>  <p>&nbsp;</p>  <p><span style="font-family: 宋体;">针对这种情况，尽量使用合约设计和使用</span>Mock<span style="font-family: 宋体;">的思路还是不变的，可以写一些公共的按协议封包，拆包及通信的辅助</span></p>  <p><span style="font-family: 宋体;">类库来帮助快速编写单元测试。</span></p>  <p>&nbsp;</p>  <p>MockObject<span style="font-family: 宋体;">也不一定就是一个对象，可以是一个只实现某个合约但返回固定输出的一个服务，测试数据是你事先定义</span></p>  <p><span style="font-family: 宋体;">好的，输出是固定的，你测试的时候只使用特定的测试数据就可以完成依赖这个服务的功能的单元测试。</span></p>  <p>&nbsp;</p>  <p><span style="font-family: 宋体;">针对第二个问题，如果你真的去把所有获取测试你的服务的前置条件的代码都完成，然后再写你的单元测试代码的话，</span></p>  <p><span style="font-family: 宋体;">这就不是单元测试了，这叫自动化测试，确实需要很大的工作量。所以你要明确你到底在测试什么，你不是在测如何</span></p>  <p><span style="font-family: 宋体;">正确获取测试你的代码的准备工作。</span></p>  <p>&nbsp;</p>  <p><span style="font-family: 宋体;">具体来说，你的单元测试所使用的配置数据，可以写死，或者设置成本地可配置的。</span></p>  <p><span style="font-family: 宋体;">如果你要测试的代码，有一些前置条件，需要验证登录的凭证等，你可以在代码里设计一种通用的凭证，写死，只要</span></p>  <p><span style="font-family: 宋体;">发这个凭证，就验证通过（当然，程序真正发布的时候要把这些代码移除），也就是你在设计代码的时候就要考虑</span></p>  <p><span style="font-family: 宋体;">程序的可测试性，你这个模块可能成为其它代码的前置条件时，做一个&#8220;后门&#8221;为测试使用。</span></p>  <p>&nbsp;</p>  <p><span style="font-family: 宋体;">然后你的服务依赖的服务，就用</span>MockObject<span style="font-family: 宋体;">或者</span>MockService<span style="font-family: 宋体;">来实现，上面已经说了。</span></p>  <p>&nbsp;</p>  <p><span style="font-family: 宋体;">综上，感觉有以下几点：</span></p>  <p>1<span style="font-family: 宋体;">、新功能尽量针对合约进行设计，无论是接口，还是协议，评估下可测试性是否良好。</span></p>  <p>2<span style="font-family: 宋体;">、如果要分模块，分服务来实现的话，模块或服务间尽量还是设计强类型接口，通信的时候可以使用二进制协议，</span></p>  <p>HTTP<span style="font-family: 宋体;">等协议，但上层可以再封装一个强类型层，以便容易实现被调用服务的</span>MockObject<span style="font-family: 宋体;">。</span></p>  <p>3<span style="font-family: 宋体;">、如果一个服务是在整个服务的调用链比较靠前的，可以做一个为测试使用的后门，针对某些固定输入不进行实际</span></p>  <p><span style="font-family: 宋体;">代码逻辑（参数检查，查数据库等），只返回固定的输出。</span></p>  <img src="aggbug/1659672.html?type=0" width="1" height="1" alt=""/><p>评论: 0　<a href="http://www.cnblogs.com/onlytiancai/archive/2010/01/30/mock.html#pagedcomment" target="_blank">查看评论</a>　<a href="http://www.cnblogs.com/onlytiancai/archive/2010/01/30/mock.html#commentform" target="_blank">发表评论</a></p><hr/><p>最新新闻：<br/>· <a href="http://news.cnblogs.com/n/56793/" target="_blank">知名扩展 Firebug 的简化版登陆 Chrome</a><span style="color:gray">(2010-02-09 22:59)</span><br/>· <a href="http://news.cnblogs.com/n/56792/" target="_blank">Google 悄悄地启用 1e100.net，打枪地不要</a><span style="color:gray">(2010-02-09 22:57)</span><br/>· <a href="http://news.cnblogs.com/n/56791/" target="_blank">从 Google 代码库找到的好东西</a><span style="color:gray">(2010-02-09 22:46)</span><br/>· <a href="http://news.cnblogs.com/n/56789/" target="_blank">苹果在线商店临时关闭 或将推新Macbook</a><span style="color:gray">(2010-02-09 22:39)</span><br/>· <a href="http://news.cnblogs.com/n/56788/" target="_blank">豆瓣网推出豆瓣电台iPhone客户端</a><span style="color:gray">(2010-02-09 21:51)</span><br/></p><p>编辑推荐：<a href="http://news.cnblogs.com/n/56782/" target="_blank">2010年2月编程语言排行榜</a><br/></p><p>网站导航：<a href="http://www.cnblogs.com" target="_blank">博客园首页</a>&nbsp;&nbsp;<a href="http://home.cnblogs.com/" target="_blank">个人主页</a>&nbsp;&nbsp;<a href="http://news.cnblogs.com" target="_blank">新闻</a>&nbsp;&nbsp;<a href="http://home.cnblogs.com/ing/" target="_blank">闪存</a>&nbsp;&nbsp;<a href="http://home.cnblogs.com/group/" target="_blank">小组</a>&nbsp;&nbsp;<a href="http://space.cnblogs.com/q/" target="_blank">博问</a>&nbsp;&nbsp;<a href="http://space.cnblogs.com" target="_blank">社区</a>&nbsp;&nbsp;<a href="http://kb.cnblogs.com" target="_blank">知识库</a></p>]]></description></item><item><title>Setting the Reply-To Header in an Email using CDONTS.NewMail Object and CDO Message</title><link>http://www.cnblogs.com/geovindu/archive/2010/01/29/1659308.html</link><dc:creator>®Geovin Du Dream Park™</dc:creator><author>®Geovin Du Dream Park™</author><pubDate>Fri, 29 Jan 2010 07:50:00 GMT</pubDate><guid>http://www.cnblogs.com/geovindu/archive/2010/01/29/1659308.html</guid><description><![CDATA[<p>阅读: 18 评论: 0 作者: <a href="" target="_blank">®Geovin Du Dream Park™</a> 发表于 2010-01-29 15:50 <a href="http://www.cnblogs.com/geovindu/archive/2010/01/29/1659308.html" target="_blank">原文链接</a></p><div class="cnblogs_code" onclick="cnblogs_code_show('3eb42d7e-9359-42ce-b1f9-402f208f2119')"><img class="code_img_closed" id="code_img_closed_3eb42d7e-9359-42ce-b1f9-402f208f2119" style="display: none" src="http://images.cnblogs.com/OutliningIndicators/ContractedBlock.gif"  alt="" /><img class="code_img_opened" id="code_img_opened_3eb42d7e-9359-42ce-b1f9-402f208f2119" onclick="cnblogs_code_hide('3eb42d7e-9359-42ce-b1f9-402f208f2119',event)" src="http://images.cnblogs.com/OutliningIndicators/ExpandedBlockStart.gif"><span class="cnblogs_code_collapse">代码</span>
<div id="cnblogs_code_open_3eb42d7e-9359-42ce-b1f9-402f208f2119">
<div><!--<br/ /><br/ />Code highlighting produced by Actipro CodeHighlighter (freeware)<br/ />http://www.CodeHighlighter.com/<br/ /><br/ />--><span style="color: #008080">&nbsp;1</span>&nbsp;<span style="color: #000000">&lt;</span><span style="color: #000000">%<br /></span><span style="color: #008080">&nbsp;2</span>&nbsp;<span style="color: #000000"></span><span style="color: #0000ff">Option</span><span style="color: #000000">&nbsp;</span><span style="color: #0000ff">Explicit</span><span style="color: #000000"><br /></span><span style="color: #008080">&nbsp;3</span>&nbsp;<span style="color: #000000"><br /></span><span style="color: #008080">&nbsp;4</span>&nbsp;<span style="color: #000000"></span><span style="color: #0000ff">Dim</span><span style="color: #000000">&nbsp;objMail<br /></span><span style="color: #008080">&nbsp;5</span>&nbsp;<span style="color: #000000"></span><span style="color: #0000ff">Dim</span><span style="color: #000000">&nbsp;strSubject<br /></span><span style="color: #008080">&nbsp;6</span>&nbsp;<span style="color: #000000"></span><span style="color: #0000ff">Dim</span><span style="color: #000000">&nbsp;strBody<br /></span><span style="color: #008080">&nbsp;7</span>&nbsp;<span style="color: #000000"><br /></span><span style="color: #008080">&nbsp;8</span>&nbsp;<span style="color: #000000">strSubject&nbsp;</span><span style="color: #000000">=</span><span style="color: #000000">&nbsp;</span><span style="color: #800000">"</span><span style="color: #800000">This&nbsp;is&nbsp;a&nbsp;test&nbsp;email</span><span style="color: #800000">"</span><span style="color: #000000"><br /></span><span style="color: #008080">&nbsp;9</span>&nbsp;<span style="color: #000000">strBody&nbsp;&nbsp;&nbsp;&nbsp;</span><span style="color: #000000">=</span><span style="color: #000000">&nbsp;</span><span style="color: #800000">"</span><span style="color: #800000">This&nbsp;test&nbsp;email&nbsp;is&nbsp;using&nbsp;test@devasp.com&nbsp;</span><span style="color: #800000">"</span><span style="color: #000000">&nbsp;</span><span style="color: #000000">&amp;</span><span style="color: #000000">&nbsp;_<br /></span><span style="color: #008080">10</span>&nbsp;<span style="color: #000000">&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;</span><span style="color: #800000">"</span><span style="color: #800000">&nbsp;as&nbsp;the&nbsp;sender&nbsp;email&nbsp;address&nbsp;but&nbsp;we&nbsp;are&nbsp;</span><span style="color: #800000">"</span><span style="color: #000000">&nbsp;</span><span style="color: #000000">&amp;</span><span style="color: #000000">&nbsp;_<br /></span><span style="color: #008080">11</span>&nbsp;<span style="color: #000000">&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;</span><span style="color: #800000">"</span><span style="color: #800000">&nbsp;using&nbsp;someone@devasp.com&nbsp;as&nbsp;the&nbsp;Reply-To&nbsp;header.</span><span style="color: #800000">"</span><span style="color: #000000"><br /></span><span style="color: #008080">12</span>&nbsp;<span style="color: #000000"><br /></span><span style="color: #008080">13</span>&nbsp;<span style="color: #000000">&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;<br /></span><span style="color: #008080">14</span>&nbsp;<span style="color: #000000"></span><span style="color: #008000">'</span><span style="color: #008000">&nbsp;First&nbsp;create&nbsp;an&nbsp;instance&nbsp;of&nbsp;NewMail&nbsp;Object</span><span style="color: #008000"><br /></span><span style="color: #008080">15</span>&nbsp;<span style="color: #008000"></span><span style="color: #0000ff">Set</span><span style="color: #000000">&nbsp;objMail&nbsp;</span><span style="color: #000000">=</span><span style="color: #000000">&nbsp;Server.CreateObject(</span><span style="color: #800000">"</span><span style="color: #800000">CDONTS.NewMail</span><span style="color: #800000">"</span><span style="color: #000000">)<br /></span><span style="color: #008080">16</span>&nbsp;<span style="color: #000000"><br /></span><span style="color: #008080">17</span>&nbsp;<span style="color: #000000"></span><span style="color: #008000">'</span><span style="color: #008000">&nbsp;Please&nbsp;replace&nbsp;the&nbsp;"From"&nbsp;and&nbsp;"To"&nbsp;email&nbsp;addresses&nbsp;with&nbsp;your&nbsp;</span><span style="color: #008000"><br /></span><span style="color: #008080">18</span>&nbsp;<span style="color: #008000">'</span><span style="color: #008000">&nbsp;own&nbsp;valid&nbsp;email&nbsp;address.&nbsp;I&nbsp;recieve&nbsp;too&nbsp;many&nbsp;emails&nbsp;</span><span style="color: #008000"><br /></span><span style="color: #008080">19</span>&nbsp;<span style="color: #008000">'</span><span style="color: #008000">&nbsp;from&nbsp;people&nbsp;who&nbsp;test&nbsp;this&nbsp;sample&nbsp;and&nbsp;keep&nbsp;sending&nbsp;</span><span style="color: #008000"><br /></span><span style="color: #008080">20</span>&nbsp;<span style="color: #008000">'</span><span style="color: #008000">&nbsp;emails&nbsp;to&nbsp;test@devasp.com,&nbsp;or&nbsp;they&nbsp;keep&nbsp;the&nbsp;"From"&nbsp;property</span><span style="color: #008000"><br /></span><span style="color: #008080">21</span>&nbsp;<span style="color: #008000">'</span><span style="color: #008000">&nbsp;as&nbsp;webmaster@devasp.com&nbsp;and&nbsp;I&nbsp;get&nbsp;response&nbsp;of&nbsp;</span><span style="color: #008000"><br /></span><span style="color: #008080">22</span>&nbsp;<span style="color: #008000">'</span><span style="color: #008000">&nbsp;undeliverable&nbsp;emails.</span><span style="color: #008000"><br /></span><span style="color: #008080">23</span>&nbsp;<span style="color: #008000">'</span><span style="color: #008000">&nbsp;NOTE:&nbsp;If&nbsp;the&nbsp;"To"&nbsp;or&nbsp;"From"&nbsp;properties&nbsp;of&nbsp;CDONTS&nbsp;contain&nbsp;</span><span style="color: #008000"><br /></span><span style="color: #008080">24</span>&nbsp;<span style="color: #008000">'</span><span style="color: #008000">&nbsp;invalid&nbsp;email&nbsp;address&nbsp;you&nbsp;will&nbsp;not&nbsp;recieve&nbsp;the&nbsp;email.</span><span style="color: #008000"><br /></span><span style="color: #008080">25</span>&nbsp;<span style="color: #008000"></span><span style="color: #000000">&nbsp;<br /></span><span style="color: #008080">26</span>&nbsp;<span style="color: #000000">objMail.From&nbsp;</span><span style="color: #000000">=</span><span style="color: #000000">&nbsp;</span><span style="color: #800000">"</span><span style="color: #800000">test@dupcit.com</span><span style="color: #800000">"</span><span style="color: #000000"><br /></span><span style="color: #008080">27</span>&nbsp;<span style="color: #000000">objMail.To&nbsp;&nbsp;&nbsp;</span><span style="color: #000000">=</span><span style="color: #000000">&nbsp;</span><span style="color: #800000">"</span><span style="color: #800000">webmaster@dusystem.com</span><span style="color: #800000">"</span><span style="color: #000000"><br /></span><span style="color: #008080">28</span>&nbsp;<span style="color: #000000"><br /></span><span style="color: #008080">29</span>&nbsp;<span style="color: #000000"></span><span style="color: #008000">'</span><span style="color: #008000">&nbsp;Use&nbsp;the&nbsp;value&nbsp;property&nbsp;of&nbsp;the&nbsp;CDONTS.NewMail&nbsp;Object</span><span style="color: #008000"><br /></span><span style="color: #008080">30</span>&nbsp;<span style="color: #008000">'</span><span style="color: #008000">&nbsp;to&nbsp;Set&nbsp;the&nbsp;Reply-To&nbsp;header</span><span style="color: #008000"><br /></span><span style="color: #008080">31</span>&nbsp;<span style="color: #008000"></span><span style="color: #000000"><br /></span><span style="color: #008080">32</span>&nbsp;<span style="color: #000000">objMail.Value(</span><span style="color: #800000">"</span><span style="color: #800000">Reply-To</span><span style="color: #800000">"</span><span style="color: #000000">)&nbsp;</span><span style="color: #000000">=</span><span style="color: #000000">&nbsp;</span><span style="color: #800000">"</span><span style="color: #800000">someone@dusystem.com</span><span style="color: #800000">"</span><span style="color: #000000">&nbsp;</span><span style="color: #008000">'</span><span style="color: #008000">回复邮件地址</span><span style="color: #008000"><br /></span><span style="color: #008080">33</span>&nbsp;<span style="color: #008000"></span><span style="color: #000000"><br /></span><span style="color: #008080">34</span>&nbsp;<span style="color: #000000">objMail.Subject&nbsp;</span><span style="color: #000000">=</span><span style="color: #000000">&nbsp;strSubject<br /></span><span style="color: #008080">35</span>&nbsp;<span style="color: #000000">objMail.Body&nbsp;&nbsp;&nbsp;&nbsp;</span><span style="color: #000000">=</span><span style="color: #000000">&nbsp;strBody<br /></span><span style="color: #008080">36</span>&nbsp;<span style="color: #000000"><br /></span><span style="color: #008080">37</span>&nbsp;<span style="color: #000000">objMail.Send<br /></span><span style="color: #008080">38</span>&nbsp;<span style="color: #000000"><br /></span><span style="color: #008080">39</span>&nbsp;<span style="color: #000000"></span><span style="color: #0000ff">Set</span><span style="color: #000000">&nbsp;objMail&nbsp;</span><span style="color: #000000">=</span><span style="color: #000000">&nbsp;</span><span style="color: #0000ff">Nothing</span><span style="color: #000000"><br /></span><span style="color: #008080">40</span>&nbsp;<span style="color: #000000">%</span><span style="color: #000000">&gt;</span><span style="color: #000000"><br /></span><span style="color: #008080">41</span>&nbsp;<span style="color: #000000"><br /></span><span style="color: #008080">42</span>&nbsp;<span style="color: #000000"><br /></span><span style="color: #008080">43</span>&nbsp;<span style="color: #000000">&nbsp;<br /></span><span style="color: #008080">44</span>&nbsp;<span style="color: #000000"><br /></span><span style="color: #008080">45</span>&nbsp;<span style="color: #000000"></span><span style="color: #000000">&lt;</span><span style="color: #000000">%&nbsp;<br /></span><span style="color: #008080">46</span>&nbsp;<span style="color: #000000"><br /></span><span style="color: #008080">47</span>&nbsp;<span style="color: #000000">strText&nbsp;</span><span style="color: #000000">=</span><span style="color: #000000">&nbsp;</span><span style="color: #800000">"</span><span style="color: #800000">Test</span><span style="color: #800000">"</span><span style="color: #000000">&nbsp;<br /></span><span style="color: #008080">48</span>&nbsp;<span style="color: #000000"><br /></span><span style="color: #008080">49</span>&nbsp;<span style="color: #000000"></span><span style="color: #0000ff">Const</span><span style="color: #000000">&nbsp;cdoSendUsingPort&nbsp;</span><span style="color: #000000">=</span><span style="color: #000000">&nbsp;</span><span style="color: #800080">2</span><span style="color: #000000">&nbsp;<br /></span><span style="color: #008080">50</span>&nbsp;<span style="color: #000000"><br /></span><span style="color: #008080">51</span>&nbsp;<span style="color: #000000"></span><span style="color: #0000ff">Const</span><span style="color: #000000">&nbsp;strSmartHost&nbsp;</span><span style="color: #000000">=</span><span style="color: #000000">&nbsp;</span><span style="color: #800000">"</span><span style="color: #800000">myLocalSMTPHost</span><span style="color: #800000">"</span><span style="color: #000000">&nbsp;<br /></span><span style="color: #008080">52</span>&nbsp;<span style="color: #000000"><br /></span><span style="color: #008080">53</span>&nbsp;<span style="color: #000000"></span><span style="color: #0000ff">Set</span><span style="color: #000000">&nbsp;myMail&nbsp;</span><span style="color: #000000">=</span><span style="color: #000000">&nbsp;</span><span style="color: #0000ff">CreateObject</span><span style="color: #000000">(</span><span style="color: #800000">"</span><span style="color: #800000">CDO.Message</span><span style="color: #800000">"</span><span style="color: #000000">)&nbsp;<br /></span><span style="color: #008080">54</span>&nbsp;<span style="color: #000000"><br /></span><span style="color: #008080">55</span>&nbsp;<span style="color: #000000"></span><span style="color: #0000ff">Set</span><span style="color: #000000">&nbsp;iConf&nbsp;</span><span style="color: #000000">=</span><span style="color: #000000">&nbsp;myMail.Configuration&nbsp;<br /></span><span style="color: #008080">56</span>&nbsp;<span style="color: #000000"><br /></span><span style="color: #008080">57</span>&nbsp;<span style="color: #000000"></span><span style="color: #0000ff">With</span><span style="color: #000000">&nbsp;iConf.Fields&nbsp;<br /></span><span style="color: #008080">58</span>&nbsp;<span style="color: #000000"><br /></span><span style="color: #008080">59</span>&nbsp;<span style="color: #000000">.item(</span><span style="color: #800000">"</span><span style="color: #800000">http://schemas.microsoft.com/cdo/configuration/sendusing</span><span style="color: #800000">"</span><span style="color: #000000">)&nbsp;</span><span style="color: #000000">=</span><span style="color: #000000">&nbsp;cdoSendUsingPort&nbsp;<br /></span><span style="color: #008080">60</span>&nbsp;<span style="color: #000000"><br /></span><span style="color: #008080">61</span>&nbsp;<span style="color: #000000">.item(</span><span style="color: #800000">"</span><span style="color: #800000">http://schemas.microsoft.com/cdo/configuration/smtpserver</span><span style="color: #800000">"</span><span style="color: #000000">)&nbsp;</span><span style="color: #000000">=</span><span style="color: #000000">&nbsp;strSmartHost&nbsp;<br /></span><span style="color: #008080">62</span>&nbsp;<span style="color: #000000"><br /></span><span style="color: #008080">63</span>&nbsp;<span style="color: #000000">.Update&nbsp;<br /></span><span style="color: #008080">64</span>&nbsp;<span style="color: #000000"><br /></span><span style="color: #008080">65</span>&nbsp;<span style="color: #000000"></span><span style="color: #0000ff">End</span><span style="color: #000000">&nbsp;</span><span style="color: #0000ff">With</span><span style="color: #000000">&nbsp;<br /></span><span style="color: #008080">66</span>&nbsp;<span style="color: #000000"><br /></span><span style="color: #008080">67</span>&nbsp;<span style="color: #000000"></span><span style="color: #0000ff">With</span><span style="color: #000000">&nbsp;iConf.Fields&nbsp;<br /></span><span style="color: #008080">68</span>&nbsp;<span style="color: #000000"><br /></span><span style="color: #008080">69</span>&nbsp;<span style="color: #000000">.item(</span><span style="color: #800000">"</span><span style="color: #800000">http://schemas.microsoft.com/cdo/configuration/sendusing</span><span style="color: #800000">"</span><span style="color: #000000">)&nbsp;</span><span style="color: #000000">=</span><span style="color: #000000">&nbsp;cdoSendUsingPort&nbsp;<br /></span><span style="color: #008080">70</span>&nbsp;<span style="color: #000000"><br /></span><span style="color: #008080">71</span>&nbsp;<span style="color: #000000">.item(</span><span style="color: #800000">"</span><span style="color: #800000">http://schemas.microsoft.com/cdo/configuration/smtpserver</span><span style="color: #800000">"</span><span style="color: #000000">)&nbsp;</span><span style="color: #000000">=</span><span style="color: #000000">&nbsp;strSmartHost&nbsp;<br /></span><span style="color: #008080">72</span>&nbsp;<span style="color: #000000"><br /></span><span style="color: #008080">73</span>&nbsp;<span style="color: #000000">.Update&nbsp;<br /></span><span style="color: #008080">74</span>&nbsp;<span style="color: #000000"><br /></span><span style="color: #008080">75</span>&nbsp;<span style="color: #000000"></span><span style="color: #0000ff">End</span><span style="color: #000000">&nbsp;</span><span style="color: #0000ff">With</span><span style="color: #000000">&nbsp;<br /></span><span style="color: #008080">76</span>&nbsp;<span style="color: #000000"><br /></span><span style="color: #008080">77</span>&nbsp;<span style="color: #000000"></span><span style="color: #0000ff">With</span><span style="color: #000000">&nbsp;myMail&nbsp;<br /></span><span style="color: #008080">78</span>&nbsp;<span style="color: #000000"><br /></span><span style="color: #008080">79</span>&nbsp;<span style="color: #000000">myMail.From&nbsp;</span><span style="color: #000000">=</span><span style="color: #000000">&nbsp;</span><span style="color: #800000">"</span><span style="color: #800000">geovindu@dupcit.com</span><span style="color: #800000">"</span><span style="color: #000000">&nbsp;<br /></span><span style="color: #008080">80</span>&nbsp;<span style="color: #000000"><br /></span><span style="color: #008080">81</span>&nbsp;<span style="color: #000000">myMail.To&nbsp;</span><span style="color: #000000">=</span><span style="color: #000000">&nbsp;</span><span style="color: #800000">"</span><span style="color: #800000">bill@dupcit.com</span><span style="color: #800000">"</span><span style="color: #000000">&nbsp;<br /></span><span style="color: #008080">82</span>&nbsp;<span style="color: #000000"><br /></span><span style="color: #008080">83</span>&nbsp;<span style="color: #000000">myMail.ReplyTo&nbsp;</span><span style="color: #000000">=</span><span style="color: #000000">&nbsp;</span><span style="color: #800000">"</span><span style="color: #800000">bill@dusystem.com</span><span style="color: #800000">"</span><span style="color: #000000">&nbsp;&nbsp;</span><span style="color: #008000">'</span><span style="color: #008000">回复邮件地址</span><span style="color: #008000"><br /></span><span style="color: #008080">84</span>&nbsp;<span style="color: #008000"></span><span style="color: #000000"><br /></span><span style="color: #008080">85</span>&nbsp;<span style="color: #000000">myMail.Subject&nbsp;</span><span style="color: #000000">=</span><span style="color: #000000">&nbsp;</span><span style="color: #800000">"</span><span style="color: #800000">Internet&nbsp;Communication&nbsp;from&nbsp;Me</span><span style="color: #800000">"</span><span style="color: #000000">&nbsp;<br /></span><span style="color: #008080">86</span>&nbsp;<span style="color: #000000"><br /></span><span style="color: #008080">87</span>&nbsp;<span style="color: #000000">myMail.HTMLBody&nbsp;</span><span style="color: #000000">=</span><span style="color: #000000">&nbsp;strText&nbsp;<br /></span><span style="color: #008080">88</span>&nbsp;<span style="color: #000000"><br /></span><span style="color: #008080">89</span>&nbsp;<span style="color: #000000">myMail.Send&nbsp;<br /></span><span style="color: #008080">90</span>&nbsp;<span style="color: #000000"><br /></span><span style="color: #008080">91</span>&nbsp;<span style="color: #000000"></span><span style="color: #0000ff">End</span><span style="color: #000000">&nbsp;</span><span style="color: #0000ff">With</span><span style="color: #000000">&nbsp;<br /></span><span style="color: #008080">92</span>&nbsp;<span style="color: #000000"><br /></span><span style="color: #008080">93</span>&nbsp;<span style="color: #000000"></span><span style="color: #0000ff">Set</span><span style="color: #000000">&nbsp;myMail&nbsp;</span><span style="color: #000000">=</span><span style="color: #000000">&nbsp;</span><span style="color: #0000ff">Nothing</span><span style="color: #000000">&nbsp;<br /></span><span style="color: #008080">94</span>&nbsp;<span style="color: #000000"><br /></span><span style="color: #008080">95</span>&nbsp;<span style="color: #000000">%</span><span style="color: #000000">&gt;</span><span style="color: #000000">&nbsp;<br /></span><span style="color: #008080">96</span>&nbsp;<span style="color: #000000"><br /></span><span style="color: #008080">97</span>&nbsp;<span style="color: #000000"></span></div></div></div>
<p>&nbsp;</p> <img src="aggbug/1659308.html?type=0" width="1" height="1" alt=""/><p>评论: 0　<a href="http://www.cnblogs.com/geovindu/archive/2010/01/29/1659308.html#pagedcomment" target="_blank">查看评论</a>　<a href="http://www.cnblogs.com/geovindu/archive/2010/01/29/1659308.html#commentform" target="_blank">发表评论</a></p><hr/><p>最新新闻：<br/>· <a href="http://news.cnblogs.com/n/56793/" target="_blank">知名扩展 Firebug 的简化版登陆 Chrome</a><span style="color:gray">(2010-02-09 22:59)</span><br/>· <a href="http://news.cnblogs.com/n/56792/" target="_blank">Google 悄悄地启用 1e100.net，打枪地不要</a><span style="color:gray">(2010-02-09 22:57)</span><br/>· <a href="http://news.cnblogs.com/n/56791/" target="_blank">从 Google 代码库找到的好东西</a><span style="color:gray">(2010-02-09 22:46)</span><br/>· <a href="http://news.cnblogs.com/n/56789/" target="_blank">苹果在线商店临时关闭 或将推新Macbook</a><span style="color:gray">(2010-02-09 22:39)</span><br/>· <a href="http://news.cnblogs.com/n/56788/" target="_blank">豆瓣网推出豆瓣电台iPhone客户端</a><span style="color:gray">(2010-02-09 21:51)</span><br/></p><p>编辑推荐：<a href="http://news.cnblogs.com/n/56782/" target="_blank">2010年2月编程语言排行榜</a><br/></p><p>网站导航：<a href="http://www.cnblogs.com" target="_blank">博客园首页</a>&nbsp;&nbsp;<a href="http://home.cnblogs.com/" target="_blank">个人主页</a>&nbsp;&nbsp;<a href="http://news.cnblogs.com" target="_blank">新闻</a>&nbsp;&nbsp;<a href="http://home.cnblogs.com/ing/" target="_blank">闪存</a>&nbsp;&nbsp;<a href="http://home.cnblogs.com/group/" target="_blank">小组</a>&nbsp;&nbsp;<a href="http://space.cnblogs.com/q/" target="_blank">博问</a>&nbsp;&nbsp;<a href="http://space.cnblogs.com" target="_blank">社区</a>&nbsp;&nbsp;<a href="http://kb.cnblogs.com" target="_blank">知识库</a></p>]]></description></item><item><title>Send mail from ASP.NET using your gmail account</title><link>http://www.cnblogs.com/geovindu/archive/2010/01/28/1658685.html</link><dc:creator>®Geovin Du Dream Park™</dc:creator><author>®Geovin Du Dream Park™</author><pubDate>Thu, 28 Jan 2010 09:42:00 GMT</pubDate><guid>http://www.cnblogs.com/geovindu/archive/2010/01/28/1658685.html</guid><description><![CDATA[<p>阅读: 28 评论: 0 作者: <a href="" target="_blank">®Geovin Du Dream Park™</a> 发表于 2010-01-28 17:42 <a href="http://www.cnblogs.com/geovindu/archive/2010/01/28/1658685.html" target="_blank">原文链接</a></p><p>from: <a href="http://www.aspcode.net/Send-mail-from-ASPNET-using-your-gmail-account.aspx" target="_blank">http://www.aspcode.net/Send-mail-from-ASPNET-using-your-gmail-account.aspx</a></p>
<p><a href="http://relevantcodes.com/cdo-send-email-from-yahoo-hotmail-live-aol-or-gmail/" target="_blank">http://relevantcodes.com/cdo-send-email-from-yahoo-hotmail-live-aol-or-gmail/</a></p>
<p><a href="http://www.codeproject.com/KB/IP/SendMailUsingGmailAccount.aspx?display=Print" target="_blank">http://www.codeproject.com/KB/IP/SendMailUsingGmailAccount.aspx?display=Print</a></p>
<p>&nbsp;</p>
<div class="cnblogs_code" onclick="cnblogs_code_show('a4692eaa-a648-4947-bc6a-2891fefccaa8')"><img class="code_img_closed" id="code_img_closed_a4692eaa-a648-4947-bc6a-2891fefccaa8" style="display: none" src="http://images.cnblogs.com/OutliningIndicators/ContractedBlock.gif"  alt="" /><img class="code_img_opened" id="code_img_opened_a4692eaa-a648-4947-bc6a-2891fefccaa8" onclick="cnblogs_code_hide('a4692eaa-a648-4947-bc6a-2891fefccaa8',event)" src="http://images.cnblogs.com/OutliningIndicators/ExpandedBlockStart.gif"><span class="cnblogs_code_collapse">代码</span>
<div id="cnblogs_code_open_a4692eaa-a648-4947-bc6a-2891fefccaa8">
<div><!--<br/ /><br/ />Code highlighting produced by Actipro CodeHighlighter (freeware)<br/ />http://www.CodeHighlighter.com/<br/ /><br/ />--><span style="color: #008080">&nbsp;1</span>&nbsp;<span style="color: #0000ff">public</span><span style="color: #000000">&nbsp;</span><span style="color: #0000ff">static</span><span style="color: #000000">&nbsp;</span><span style="color: #0000ff">void</span><span style="color: #000000">&nbsp;SendMail(</span><span style="color: #0000ff">string</span><span style="color: #000000">&nbsp;sHost,&nbsp;</span><span style="color: #0000ff">int</span><span style="color: #000000">&nbsp;nPort,&nbsp;</span><span style="color: #0000ff">string</span><span style="color: #000000">&nbsp;sUserName,&nbsp;</span><span style="color: #0000ff">string</span><span style="color: #000000">&nbsp;sPassword,&nbsp;</span><span style="color: #0000ff">string</span><span style="color: #000000">&nbsp;sFromName,&nbsp;</span><span style="color: #0000ff">string</span><span style="color: #000000">&nbsp;sFromEmail,&nbsp;<br /></span><span style="color: #008080">&nbsp;2</span>&nbsp;<span style="color: #000000"><br /></span><span style="color: #008080">&nbsp;3</span>&nbsp;<span style="color: #000000">&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;</span><span style="color: #0000ff">string</span><span style="color: #000000">&nbsp;sToName,&nbsp;</span><span style="color: #0000ff">string</span><span style="color: #000000">&nbsp;sToEmail,&nbsp;</span><span style="color: #0000ff">string</span><span style="color: #000000">&nbsp;sHeader,&nbsp;</span><span style="color: #0000ff">string</span><span style="color: #000000">&nbsp;sMessage,&nbsp;</span><span style="color: #0000ff">bool</span><span style="color: #000000">&nbsp;fSSL)&nbsp;<br /></span><span style="color: #008080">&nbsp;4</span>&nbsp;<span style="color: #000000"><br /></span><span style="color: #008080">&nbsp;5</span>&nbsp;<span style="color: #000000">{&nbsp;<br /></span><span style="color: #008080">&nbsp;6</span>&nbsp;<span style="color: #000000"><br /></span><span style="color: #008080">&nbsp;7</span>&nbsp;<span style="color: #000000">&nbsp;&nbsp;&nbsp;&nbsp;</span><span style="color: #0000ff">if</span><span style="color: #000000">&nbsp;(sToName.Length&nbsp;</span><span style="color: #000000">==</span><span style="color: #000000">&nbsp;</span><span style="color: #800080">0</span><span style="color: #000000">)&nbsp;<br /></span><span style="color: #008080">&nbsp;8</span>&nbsp;<span style="color: #000000"><br /></span><span style="color: #008080">&nbsp;9</span>&nbsp;<span style="color: #000000">&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;sToName&nbsp;</span><span style="color: #000000">=</span><span style="color: #000000">&nbsp;sToEmail;&nbsp;<br /></span><span style="color: #008080">10</span>&nbsp;<span style="color: #000000"><br /></span><span style="color: #008080">11</span>&nbsp;<span style="color: #000000">&nbsp;&nbsp;&nbsp;&nbsp;</span><span style="color: #0000ff">if</span><span style="color: #000000">&nbsp;(sFromName.Length&nbsp;</span><span style="color: #000000">==</span><span style="color: #000000">&nbsp;</span><span style="color: #800080">0</span><span style="color: #000000">)&nbsp;<br /></span><span style="color: #008080">12</span>&nbsp;<span style="color: #000000"><br /></span><span style="color: #008080">13</span>&nbsp;<span style="color: #000000">&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;sFromName&nbsp;</span><span style="color: #000000">=</span><span style="color: #000000">&nbsp;sFromEmail;&nbsp;<br /></span><span style="color: #008080">14</span>&nbsp;<span style="color: #000000"><br /></span><span style="color: #008080">15</span>&nbsp;<span style="color: #000000">&nbsp;<br /></span><span style="color: #008080">16</span>&nbsp;<span style="color: #000000"><br /></span><span style="color: #008080">17</span>&nbsp;<span style="color: #000000">&nbsp;&nbsp;&nbsp;&nbsp;System.Web.Mail.MailMessage&nbsp;Mail&nbsp;</span><span style="color: #000000">=</span><span style="color: #000000">&nbsp;</span><span style="color: #0000ff">new</span><span style="color: #000000">&nbsp;System.Web.Mail.MailMessage();&nbsp;<br /></span><span style="color: #008080">18</span>&nbsp;<span style="color: #000000"><br /></span><span style="color: #008080">19</span>&nbsp;<span style="color: #000000">&nbsp;&nbsp;&nbsp;&nbsp;Mail.Fields[</span><span style="color: #800000">"</span><span style="color: #800000">http://schemas.microsoft.com/cdo/configuration/smtpserver</span><span style="color: #800000">"</span><span style="color: #000000">]&nbsp;</span><span style="color: #000000">=</span><span style="color: #000000">&nbsp;sHost;&nbsp;<br /></span><span style="color: #008080">20</span>&nbsp;<span style="color: #000000"><br /></span><span style="color: #008080">21</span>&nbsp;<span style="color: #000000">&nbsp;&nbsp;&nbsp;&nbsp;Mail.Fields[</span><span style="color: #800000">"</span><span style="color: #800000">http://schemas.microsoft.com/cdo/configuration/sendusing</span><span style="color: #800000">"</span><span style="color: #000000">]&nbsp;</span><span style="color: #000000">=</span><span style="color: #000000">&nbsp;</span><span style="color: #800080">2</span><span style="color: #000000">;&nbsp;<br /></span><span style="color: #008080">22</span>&nbsp;<span style="color: #000000"><br /></span><span style="color: #008080">23</span>&nbsp;<span style="color: #000000">&nbsp;<br /></span><span style="color: #008080">24</span>&nbsp;<span style="color: #000000"><br /></span><span style="color: #008080">25</span>&nbsp;<span style="color: #000000">&nbsp;&nbsp;&nbsp;&nbsp;Mail.Fields[</span><span style="color: #800000">"</span><span style="color: #800000">http://schemas.microsoft.com/cdo/configuration/smtpserverport</span><span style="color: #800000">"</span><span style="color: #000000">]&nbsp;</span><span style="color: #000000">=</span><span style="color: #000000">&nbsp;nPort.ToString();&nbsp;<br /></span><span style="color: #008080">26</span>&nbsp;<span style="color: #000000"><br /></span><span style="color: #008080">27</span>&nbsp;<span style="color: #000000">&nbsp;&nbsp;&nbsp;&nbsp;</span><span style="color: #0000ff">if</span><span style="color: #000000">&nbsp;(&nbsp;fSSL&nbsp;)&nbsp;<br /></span><span style="color: #008080">28</span>&nbsp;<span style="color: #000000"><br /></span><span style="color: #008080">29</span>&nbsp;<span style="color: #000000">&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;Mail.Fields[</span><span style="color: #800000">"</span><span style="color: #800000">http://schemas.microsoft.com/cdo/configuration/smtpusessl</span><span style="color: #800000">"</span><span style="color: #000000">]&nbsp;</span><span style="color: #000000">=</span><span style="color: #000000">&nbsp;</span><span style="color: #800000">"</span><span style="color: #800000">true</span><span style="color: #800000">"</span><span style="color: #000000">;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;<br /></span><span style="color: #008080">30</span>&nbsp;<span style="color: #000000"><br /></span><span style="color: #008080">31</span>&nbsp;<span style="color: #000000">&nbsp;<br /></span><span style="color: #008080">32</span>&nbsp;<span style="color: #000000"><br /></span><span style="color: #008080">33</span>&nbsp;<span style="color: #000000">&nbsp;&nbsp;&nbsp;&nbsp;</span><span style="color: #0000ff">if</span><span style="color: #000000">&nbsp;(sUserName.Length&nbsp;</span><span style="color: #000000">==</span><span style="color: #000000">&nbsp;</span><span style="color: #800080">0</span><span style="color: #000000">)&nbsp;<br /></span><span style="color: #008080">34</span>&nbsp;<span style="color: #000000"><br /></span><span style="color: #008080">35</span>&nbsp;<span style="color: #000000">&nbsp;&nbsp;&nbsp;&nbsp;{&nbsp;<br /></span><span style="color: #008080">36</span>&nbsp;<span style="color: #000000"><br /></span><span style="color: #008080">37</span>&nbsp;<span style="color: #000000">&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;</span><span style="color: #008000">//</span><span style="color: #008000">Ingen&nbsp;auth&nbsp;</span><span style="color: #008000"><br /></span><span style="color: #008080">38</span>&nbsp;<span style="color: #008000"></span><span style="color: #000000"><br /></span><span style="color: #008080">39</span>&nbsp;<span style="color: #000000">&nbsp;&nbsp;&nbsp;&nbsp;}&nbsp;<br /></span><span style="color: #008080">40</span>&nbsp;<span style="color: #000000"><br /></span><span style="color: #008080">41</span>&nbsp;<span style="color: #000000">&nbsp;&nbsp;&nbsp;&nbsp;</span><span style="color: #0000ff">else</span><span style="color: #000000">&nbsp;<br /></span><span style="color: #008080">42</span>&nbsp;<span style="color: #000000"><br /></span><span style="color: #008080">43</span>&nbsp;<span style="color: #000000">&nbsp;&nbsp;&nbsp;&nbsp;{&nbsp;<br /></span><span style="color: #008080">44</span>&nbsp;<span style="color: #000000"><br /></span><span style="color: #008080">45</span>&nbsp;<span style="color: #000000">&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;Mail.Fields[</span><span style="color: #800000">"</span><span style="color: #800000">http://schemas.microsoft.com/cdo/configuration/smtpauthenticate</span><span style="color: #800000">"</span><span style="color: #000000">]&nbsp;</span><span style="color: #000000">=</span><span style="color: #000000">&nbsp;</span><span style="color: #800080">1</span><span style="color: #000000">;&nbsp;<br /></span><span style="color: #008080">46</span>&nbsp;<span style="color: #000000"><br /></span><span style="color: #008080">47</span>&nbsp;<span style="color: #000000">&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;Mail.Fields[</span><span style="color: #800000">"</span><span style="color: #800000">http://schemas.microsoft.com/cdo/configuration/sendusername</span><span style="color: #800000">"</span><span style="color: #000000">]&nbsp;</span><span style="color: #000000">=</span><span style="color: #000000">&nbsp;sUserName;&nbsp;<br /></span><span style="color: #008080">48</span>&nbsp;<span style="color: #000000"><br /></span><span style="color: #008080">49</span>&nbsp;<span style="color: #000000">&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;Mail.Fields[</span><span style="color: #800000">"</span><span style="color: #800000">http://schemas.microsoft.com/cdo/configuration/sendpassword</span><span style="color: #800000">"</span><span style="color: #000000">]&nbsp;</span><span style="color: #000000">=</span><span style="color: #000000">&nbsp;sPassword;&nbsp;<br /></span><span style="color: #008080">50</span>&nbsp;<span style="color: #000000"><br /></span><span style="color: #008080">51</span>&nbsp;<span style="color: #000000">&nbsp;&nbsp;&nbsp;&nbsp;}&nbsp;<br /></span><span style="color: #008080">52</span>&nbsp;<span style="color: #000000"><br /></span><span style="color: #008080">53</span>&nbsp;<span style="color: #000000">&nbsp;<br /></span><span style="color: #008080">54</span>&nbsp;<span style="color: #000000"><br /></span><span style="color: #008080">55</span>&nbsp;<span style="color: #000000">&nbsp;&nbsp;&nbsp;&nbsp;Mail.To&nbsp;</span><span style="color: #000000">=</span><span style="color: #000000">&nbsp;sToEmail;&nbsp;<br /></span><span style="color: #008080">56</span>&nbsp;<span style="color: #000000"><br /></span><span style="color: #008080">57</span>&nbsp;<span style="color: #000000">&nbsp;&nbsp;&nbsp;&nbsp;Mail.From&nbsp;</span><span style="color: #000000">=</span><span style="color: #000000">&nbsp;sFromEmail;&nbsp;<br /></span><span style="color: #008080">58</span>&nbsp;<span style="color: #000000"><br /></span><span style="color: #008080">59</span>&nbsp;<span style="color: #000000">&nbsp;&nbsp;&nbsp;&nbsp;Mail.Subject&nbsp;</span><span style="color: #000000">=</span><span style="color: #000000">&nbsp;sHeader;&nbsp;<br /></span><span style="color: #008080">60</span>&nbsp;<span style="color: #000000"><br /></span><span style="color: #008080">61</span>&nbsp;<span style="color: #000000">&nbsp;&nbsp;&nbsp;&nbsp;Mail.Body&nbsp;</span><span style="color: #000000">=</span><span style="color: #000000">&nbsp;sMessage;&nbsp;<br /></span><span style="color: #008080">62</span>&nbsp;<span style="color: #000000"><br /></span><span style="color: #008080">63</span>&nbsp;<span style="color: #000000">&nbsp;&nbsp;&nbsp;&nbsp;Mail.BodyFormat&nbsp;</span><span style="color: #000000">=</span><span style="color: #000000">&nbsp;System.Web.Mail.MailFormat.Html;&nbsp;<br /></span><span style="color: #008080">64</span>&nbsp;<span style="color: #000000"><br /></span><span style="color: #008080">65</span>&nbsp;<span style="color: #000000">&nbsp;<br /></span><span style="color: #008080">66</span>&nbsp;<span style="color: #000000"><br /></span><span style="color: #008080">67</span>&nbsp;<span style="color: #000000">&nbsp;&nbsp;&nbsp;&nbsp;System.Web.Mail.SmtpMail.SmtpServer&nbsp;</span><span style="color: #000000">=</span><span style="color: #000000">&nbsp;sHost;&nbsp;<br /></span><span style="color: #008080">68</span>&nbsp;<span style="color: #000000"><br /></span><span style="color: #008080">69</span>&nbsp;<span style="color: #000000">&nbsp;&nbsp;&nbsp;&nbsp;System.Web.Mail.SmtpMail.Send(Mail);&nbsp;<br /></span><span style="color: #008080">70</span>&nbsp;<span style="color: #000000"><br /></span><span style="color: #008080">71</span>&nbsp;<span style="color: #000000">}&nbsp;<br /></span><span style="color: #008080">72</span>&nbsp;<span style="color: #000000"><br /></span><span style="color: #008080">73</span>&nbsp;<span style="color: #000000"></span></div></div></div>
<p>&nbsp;</p>
<p>&nbsp;</p>
<p style="text-indent: 2em">Now, the secret is the last parameter, bool fSSL. If true then we set the magic CDO field cdo/configuration/smtpusessl&nbsp; to true:</p>
<p style="text-indent: 2em"></p>
<p style="text-indent: 2em">&nbsp;</p>
<p style="text-indent: 2em">&nbsp;</p>
<p style="text-indent: 2em">&nbsp;&nbsp;&nbsp;&nbsp;if&nbsp;(&nbsp;fSSL&nbsp;)&nbsp;</p>
<p style="text-indent: 2em">&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;Mail.Fields["http://schemas.microsoft.com/cdo/configuration/smtpusessl"]&nbsp;=&nbsp;"true";&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;</p>
<p style="text-indent: 2em">&nbsp;</p>
<p style="text-indent: 2em">&nbsp;</p>
<p style="text-indent: 2em"></p>
<p style="text-indent: 2em">And that my folks is all we need. Specify true as last parameter and you will have SSL authentication. Which gmail for example uses so look at this example:</p>
<p>&nbsp;</p>
<p>&nbsp;</p>
<div class="cnblogs_code" onclick="cnblogs_code_show('182e4241-8281-4523-b4f9-08f0ad59d63b')"><img class="code_img_closed" id="code_img_closed_182e4241-8281-4523-b4f9-08f0ad59d63b" style="display: none" src="http://images.cnblogs.com/OutliningIndicators/ContractedBlock.gif"  alt="" /><img class="code_img_opened" id="code_img_opened_182e4241-8281-4523-b4f9-08f0ad59d63b" onclick="cnblogs_code_hide('182e4241-8281-4523-b4f9-08f0ad59d63b',event)" src="http://images.cnblogs.com/OutliningIndicators/ExpandedBlockStart.gif"><span class="cnblogs_code_collapse">代码</span>
<div id="cnblogs_code_open_182e4241-8281-4523-b4f9-08f0ad59d63b">
<div><!--<br/ /><br/ />Code highlighting produced by Actipro CodeHighlighter (freeware)<br/ />http://www.CodeHighlighter.com/<br/ /><br/ />--><span style="color: #008080">&nbsp;1</span>&nbsp;<span style="color: #000000">&nbsp;SendMail(</span><span style="color: #800000">"</span><span style="color: #800000">smtp.gmail.com</span><span style="color: #800000">"</span><span style="color: #000000">,&nbsp;<br /></span><span style="color: #008080">&nbsp;2</span>&nbsp;<span style="color: #000000"><br /></span><span style="color: #008080">&nbsp;3</span>&nbsp;<span style="color: #000000">&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;</span><span style="color: #800080">465</span><span style="color: #000000">,&nbsp;<br /></span><span style="color: #008080">&nbsp;4</span>&nbsp;<span style="color: #000000"><br /></span><span style="color: #008080">&nbsp;5</span>&nbsp;<span style="color: #000000">&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;</span><span style="color: #800000">"</span><span style="color: #800000">account@gmail.com</span><span style="color: #800000">"</span><span style="color: #000000">,&nbsp;<br /></span><span style="color: #008080">&nbsp;6</span>&nbsp;<span style="color: #000000"><br /></span><span style="color: #008080">&nbsp;7</span>&nbsp;<span style="color: #000000">&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;</span><span style="color: #800000">"</span><span style="color: #800000">&lt;accountpassword&gt;</span><span style="color: #800000">"</span><span style="color: #000000">,&nbsp;<br /></span><span style="color: #008080">&nbsp;8</span>&nbsp;<span style="color: #000000"><br /></span><span style="color: #008080">&nbsp;9</span>&nbsp;<span style="color: #000000">&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;</span><span style="color: #800000">"</span><span style="color: #800000">Your&nbsp;name</span><span style="color: #800000">"</span><span style="color: #000000">,&nbsp;<br /></span><span style="color: #008080">10</span>&nbsp;<span style="color: #000000"><br /></span><span style="color: #008080">11</span>&nbsp;<span style="color: #000000">&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;</span><span style="color: #800000">"</span><span style="color: #800000">account@gmail.com</span><span style="color: #800000">"</span><span style="color: #000000">,&nbsp;<br /></span><span style="color: #008080">12</span>&nbsp;<span style="color: #000000"><br /></span><span style="color: #008080">13</span>&nbsp;<span style="color: #000000">&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;</span><span style="color: #800000">"</span><span style="color: #800000">Stefan&nbsp;Receiver</span><span style="color: #800000">"</span><span style="color: #000000">,&nbsp;<br /></span><span style="color: #008080">14</span>&nbsp;<span style="color: #000000"><br /></span><span style="color: #008080">15</span>&nbsp;<span style="color: #000000">&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;</span><span style="color: #800000">"</span><span style="color: #800000">receive@whatever.com</span><span style="color: #800000">"</span><span style="color: #000000">,&nbsp;<br /></span><span style="color: #008080">16</span>&nbsp;<span style="color: #000000"><br /></span><span style="color: #008080">17</span>&nbsp;<span style="color: #000000">&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;</span><span style="color: #800000">"</span><span style="color: #800000">Test</span><span style="color: #800000">"</span><span style="color: #000000">,&nbsp;<br /></span><span style="color: #008080">18</span>&nbsp;<span style="color: #000000"><br /></span><span style="color: #008080">19</span>&nbsp;<span style="color: #000000">&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;</span><span style="color: #800000">"</span><span style="color: #800000">Hello&nbsp;there&nbsp;Steff!</span><span style="color: #800000">"</span><span style="color: #000000">,&nbsp;<br /></span><span style="color: #008080">20</span>&nbsp;<span style="color: #000000"><br /></span><span style="color: #008080">21</span>&nbsp;<span style="color: #000000">&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;</span><span style="color: #0000ff">true</span><span style="color: #000000">);&nbsp;<br /></span><span style="color: #008080">22</span>&nbsp;<span style="color: #000000"><br /></span><span style="color: #008080">23</span>&nbsp;<span style="color: #000000"></span></div></div></div>
<p>&nbsp;</p>
<p>&nbsp;</p>
<p>&nbsp;</p>
<p style="text-indent: 2em">So secret to get mail working against gmail is: port 465 - server smtp.gmail.com and ssl = true. </p>
<p style="text-indent: 2em">&nbsp; </p>
<p style="text-indent: 2em">&nbsp;</p>
<p style="text-indent: 2em">碍于JMail本身对SSL之限制，若有Gmail发送信件需求朋友，可以透过CDO.Message实现</p>
<p>&nbsp;</p>
<div class="cnblogs_code" onclick="cnblogs_code_show('d65877ca-5bf8-458b-be2b-8c5b326437ab')"><img class="code_img_closed" id="code_img_closed_d65877ca-5bf8-458b-be2b-8c5b326437ab" style="display: none" src="http://images.cnblogs.com/OutliningIndicators/ContractedBlock.gif"  alt="" /><img class="code_img_opened" id="code_img_opened_d65877ca-5bf8-458b-be2b-8c5b326437ab" onclick="cnblogs_code_hide('d65877ca-5bf8-458b-be2b-8c5b326437ab',event)" src="http://images.cnblogs.com/OutliningIndicators/ExpandedBlockStart.gif"><span class="cnblogs_code_collapse">代码</span>
<div id="cnblogs_code_open_d65877ca-5bf8-458b-be2b-8c5b326437ab">
<div><!--<br/ /><br/ />Code highlighting produced by Actipro CodeHighlighter (freeware)<br/ />http://www.CodeHighlighter.com/<br/ /><br/ />--><span style="color: #008080">&nbsp;1</span>&nbsp;<span style="color: #000000">&lt;</span><span style="color: #000000">%<br /></span><span style="color: #008080">&nbsp;2</span>&nbsp;<span style="color: #000000"><br /></span><span style="color: #008080">&nbsp;3</span>&nbsp;<span style="color: #000000"></span><span style="color: #0000ff">dim</span><span style="color: #000000">&nbsp;myMail<br /></span><span style="color: #008080">&nbsp;4</span>&nbsp;<span style="color: #000000"><br /></span><span style="color: #008080">&nbsp;5</span>&nbsp;<span style="color: #000000"></span><span style="color: #0000ff">Set</span><span style="color: #000000">&nbsp;myMail</span><span style="color: #000000">=</span><span style="color: #0000ff">CreateObject</span><span style="color: #000000">(</span><span style="color: #800000">"</span><span style="color: #800000">CDO.Message</span><span style="color: #800000">"</span><span style="color: #000000">)<br /></span><span style="color: #008080">&nbsp;6</span>&nbsp;<span style="color: #000000"><br /></span><span style="color: #008080">&nbsp;7</span>&nbsp;<span style="color: #000000">myMail.Configuration.Fields.Item(</span><span style="color: #800000">"</span><span style="color: #800000">http://schemas.microsoft.com/cdo/configuration/sendusing</span><span style="color: #800000">"</span><span style="color: #000000">)&nbsp;</span><span style="color: #000000">=</span><span style="color: #000000">&nbsp;</span><span style="color: #800080">2</span><span style="color: #000000"><br /></span><span style="color: #008080">&nbsp;8</span>&nbsp;<span style="color: #000000"><br /></span><span style="color: #008080">&nbsp;9</span>&nbsp;<span style="color: #000000">myMail.Configuration.Fields.Item(</span><span style="color: #800000">"</span><span style="color: #800000">http://schemas.microsoft.com/cdo/configuration/smtpserver</span><span style="color: #800000">"</span><span style="color: #000000">)&nbsp;</span><span style="color: #000000">=</span><span style="color: #000000">&nbsp;</span><span style="color: #800000">"</span><span style="color: #800000">smtp.gmail.com</span><span style="color: #800000">"</span><span style="color: #000000"><br /></span><span style="color: #008080">10</span>&nbsp;<span style="color: #000000"><br /></span><span style="color: #008080">11</span>&nbsp;<span style="color: #000000">myMail.Configuration.Fields.Item(</span><span style="color: #800000">"</span><span style="color: #800000">http://schemas.microsoft.com/cdo/configuration/smtpserverport</span><span style="color: #800000">"</span><span style="color: #000000">)&nbsp;</span><span style="color: #000000">=</span><span style="color: #000000">&nbsp;</span><span style="color: #800080">465</span><span style="color: #000000"><br /></span><span style="color: #008080">12</span>&nbsp;<span style="color: #000000"><br /></span><span style="color: #008080">13</span>&nbsp;<span style="color: #000000"></span><span style="color: #008000">'</span><span style="color: #008000">Authentication&nbsp;method,&nbsp;ssl&nbsp;or&nbsp;not,&nbsp;Username&nbsp;and&nbsp;password&nbsp;for&nbsp;the&nbsp;SMTP&nbsp;Server</span><span style="color: #008000"><br /></span><span style="color: #008080">14</span>&nbsp;<span style="color: #008000"></span><span style="color: #000000"><br /></span><span style="color: #008080">15</span>&nbsp;<span style="color: #000000">myMail.Configuration.Fields.Item(</span><span style="color: #800000">"</span><span style="color: #800000">http://schemas.microsoft.com/cdo/configuration/smtpauthenticate</span><span style="color: #800000">"</span><span style="color: #000000">)&nbsp;</span><span style="color: #000000">=</span><span style="color: #000000">&nbsp;</span><span style="color: #800080">1</span><span style="color: #000000"><br /></span><span style="color: #008080">16</span>&nbsp;<span style="color: #000000"><br /></span><span style="color: #008080">17</span>&nbsp;<span style="color: #000000">myMail.Configuration.Fields.Item(</span><span style="color: #800000">"</span><span style="color: #800000">http://schemas.microsoft.com/cdo/configuration/smtpusessl</span><span style="color: #800000">"</span><span style="color: #000000">)&nbsp;</span><span style="color: #000000">=</span><span style="color: #000000">&nbsp;</span><span style="color: #0000ff">true</span><span style="color: #000000"><br /></span><span style="color: #008080">18</span>&nbsp;<span style="color: #000000"><br /></span><span style="color: #008080">19</span>&nbsp;<span style="color: #000000">myMail.Configuration.Fields.Item(</span><span style="color: #800000">"</span><span style="color: #800000">http://schemas.microsoft.com/cdo/configuration/sendusername</span><span style="color: #800000">"</span><span style="color: #000000">)&nbsp;</span><span style="color: #000000">=</span><span style="color: #000000">&nbsp;</span><span style="color: #800000">"</span><span style="color: #800000">你的Gmail帐号</span><span style="color: #800000">"</span><span style="color: #000000"><br /></span><span style="color: #008080">20</span>&nbsp;<span style="color: #000000"><br /></span><span style="color: #008080">21</span>&nbsp;<span style="color: #000000">myMail.Configuration.Fields.Item(</span><span style="color: #800000">"</span><span style="color: #800000">http://schemas.microsoft.com/cdo/configuration/sendpassword</span><span style="color: #800000">"</span><span style="color: #000000">)&nbsp;</span><span style="color: #000000">=</span><span style="color: #000000">&nbsp;</span><span style="color: #800000">"</span><span style="color: #800000">你的Gmail密码</span><span style="color: #800000">"</span><span style="color: #000000"><br /></span><span style="color: #008080">22</span>&nbsp;<span style="color: #000000"><br /></span><span style="color: #008080">23</span>&nbsp;<span style="color: #000000"></span><span style="color: #008000">'</span><span style="color: #008000">-------------------------------------</span><span style="color: #008000"><br /></span><span style="color: #008080">24</span>&nbsp;<span style="color: #008000"></span><span style="color: #000000"><br /></span><span style="color: #008080">25</span>&nbsp;<span style="color: #000000">myMail.Configuration.Fields.Update<br /></span><span style="color: #008080">26</span>&nbsp;<span style="color: #000000"><br /></span><span style="color: #008080">27</span>&nbsp;<span style="color: #000000">myMail.From&nbsp;</span><span style="color: #000000">=</span><span style="color: #000000">&nbsp;</span><span style="color: #800000">"</span><span style="color: #800000">geovindu@gmail.com</span><span style="color: #800000">"</span><span style="color: #000000"><br /></span><span style="color: #008080">28</span>&nbsp;<span style="color: #000000"><br /></span><span style="color: #008080">29</span>&nbsp;<span style="color: #000000">myMail.To&nbsp;</span><span style="color: #000000">=</span><span style="color: #000000">&nbsp;</span><span style="color: #800000">"</span><span style="color: #800000">Geovin&nbsp;Du&lt;geovindu@163.com&gt;</span><span style="color: #800000">"</span><span style="color: #000000"><br /></span><span style="color: #008080">30</span>&nbsp;<span style="color: #000000"><br /></span><span style="color: #008080">31</span>&nbsp;<span style="color: #000000">myMail.Subject&nbsp;</span><span style="color: #000000">=</span><span style="color: #800000">"</span><span style="color: #800000">geovindu</span><span style="color: #800000">"</span><span style="color: #000000">&nbsp;<br /></span><span style="color: #008080">32</span>&nbsp;<span style="color: #000000"><br /></span><span style="color: #008080">33</span>&nbsp;<span style="color: #000000">myMail.TextBody&nbsp;</span><span style="color: #000000">=</span><span style="color: #000000">&nbsp;</span><span style="color: #800000">"</span><span style="color: #800000">geovindu</span><span style="color: #800000">"</span><span style="color: #000000"><br /></span><span style="color: #008080">34</span>&nbsp;<span style="color: #000000"><br /></span><span style="color: #008080">35</span>&nbsp;<span style="color: #000000">myMail.Send<br /></span><span style="color: #008080">36</span>&nbsp;<span style="color: #000000"><br /></span><span style="color: #008080">37</span>&nbsp;<span style="color: #000000"></span><span style="color: #0000ff">set</span><span style="color: #000000">&nbsp;myMail</span><span style="color: #000000">=</span><span style="color: #0000ff">nothing</span><span style="color: #000000"><br /></span><span style="color: #008080">38</span>&nbsp;<span style="color: #000000"><br /></span><span style="color: #008080">39</span>&nbsp;<span style="color: #000000">%</span><span style="color: #000000">&gt;</span><span style="color: #000000"><br /></span><span style="color: #008080">40</span>&nbsp;<span style="color: #000000"><br /></span><span style="color: #008080">41</span>&nbsp;<span style="color: #000000"></span></div></div></div>
<p>&nbsp;</p>
<p>&nbsp;</p>
<p style="text-indent: 2em">-------------------------------------------------------------------------------------------------------------------</p>
<p style="text-indent: 2em">CDO 邮件元件使用方法 </p>
<p style="text-indent: 2em">Microsoft从Windows Server 2000 及 Windows XP开始内建邮件元件已改为CDO </p>
<p style="text-indent: 2em">在之前的系统内建邮件元件则是 CDONTS，各位要注意，以下是CDO的用法 </p>
<p style="text-indent: 2em">&nbsp;</p>
<p style="text-indent: 2em">属性 说明 </p>
<p style="text-indent: 2em">Subject 邮件的主旨 </p>
<p style="text-indent: 2em">From 寄件人的电子邮件信箱 </p>
<p style="text-indent: 2em">To&nbsp;&nbsp; 收件人的电子邮件，可用分号；或逗号，断开成多位收件人 </p>
<p style="text-indent: 2em">CC&nbsp;&nbsp; 副本收件人的电子邮件，可用分号；或逗号，断开成多位收件人 </p>
<p style="text-indent: 2em">BCC 密送副本收件人的电子邮件，可用分号；或逗号，断开成多位收件人 </p>
<p style="text-indent: 2em">TextBody 邮件的本文-纯文字模式 </p>
<p style="text-indent: 2em">HTMLBody 邮件的本文-HTML模式 </p>
<p style="text-indent: 2em">&nbsp;</p>
<p style="text-indent: 2em">方法 说明 </p>
<p style="text-indent: 2em">Send 送出邮件 </p>
<p style="text-indent: 2em">AddAttachment "c:\mydocuments\test.txt" 附件 </p>
<p style="text-indent: 2em">CreateMHTMLBody "http://www.w3schools.com/asp/" 将一个网页用HTML格式送出 </p>
<p style="text-indent: 2em">CreateMHTMLBody "file://c:/mydocuments/test.htm" 将本机硬碟中的一个网页用HTML格式送出 </p>
<p style="text-indent: 2em">&nbsp;myMail.HTMLBodyPart.Charset = "UTF-8"&nbsp; 以UTF-8&nbsp; 可以发送多种语言，当然也要看接受方邮件的编码格式的兼容性</p>
<p style="text-indent: 2em">范例： </p>
<p style="text-indent: 2em">送出一封纯文字信件: </p>
<p>&nbsp;</p>
<div class="cnblogs_code" onclick="cnblogs_code_show('e1535be1-e247-4860-8147-5eb76bd876f8')"><img class="code_img_closed" id="code_img_closed_e1535be1-e247-4860-8147-5eb76bd876f8" style="display: none" src="http://images.cnblogs.com/OutliningIndicators/ContractedBlock.gif"  alt="" /><img class="code_img_opened" id="code_img_opened_e1535be1-e247-4860-8147-5eb76bd876f8" onclick="cnblogs_code_hide('e1535be1-e247-4860-8147-5eb76bd876f8',event)" src="http://images.cnblogs.com/OutliningIndicators/ExpandedBlockStart.gif"><span class="cnblogs_code_collapse">代码</span>
<div id="cnblogs_code_open_e1535be1-e247-4860-8147-5eb76bd876f8">
<div><!--<br/ /><br/ />Code highlighting produced by Actipro CodeHighlighter (freeware)<br/ />http://www.CodeHighlighter.com/<br/ /><br/ />--><span style="color: #008080">&nbsp;1</span>&nbsp;<span style="color: #000000">&lt;</span><span style="color: #000000">%&nbsp;<br /></span><span style="color: #008080">&nbsp;2</span>&nbsp;<span style="color: #000000"><br /></span><span style="color: #008080">&nbsp;3</span>&nbsp;<span style="color: #000000"></span><span style="color: #0000ff">Set</span><span style="color: #000000">&nbsp;myMail</span><span style="color: #000000">=</span><span style="color: #0000ff">CreateObject</span><span style="color: #000000">(</span><span style="color: #800000">"</span><span style="color: #800000">CDO.Message</span><span style="color: #800000">"</span><span style="color: #000000">)&nbsp;<br /></span><span style="color: #008080">&nbsp;4</span>&nbsp;<span style="color: #000000"><br /></span><span style="color: #008080">&nbsp;5</span>&nbsp;<span style="color: #000000">myMail.Subject</span><span style="color: #000000">=</span><span style="color: #800000">"</span><span style="color: #800000">Sending&nbsp;email&nbsp;with&nbsp;CDO</span><span style="color: #800000">"</span><span style="color: #000000">&nbsp;<br /></span><span style="color: #008080">&nbsp;6</span>&nbsp;<span style="color: #000000"><br /></span><span style="color: #008080">&nbsp;7</span>&nbsp;<span style="color: #000000">myMail.From</span><span style="color: #000000">=</span><span style="color: #800000">"</span><span style="color: #800000">geovindu@gmail.com</span><span style="color: #800000">"</span><span style="color: #000000">&nbsp;<br /></span><span style="color: #008080">&nbsp;8</span>&nbsp;<span style="color: #000000"><br /></span><span style="color: #008080">&nbsp;9</span>&nbsp;<span style="color: #000000">myMail.To</span><span style="color: #000000">=</span><span style="color: #800000">"</span><span style="color: #800000">geovindu@dusystem.com</span><span style="color: #800000">"</span><span style="color: #000000">&nbsp;<br /></span><span style="color: #008080">10</span>&nbsp;<span style="color: #000000"><br /></span><span style="color: #008080">11</span>&nbsp;<span style="color: #000000">myMail.TextBody</span><span style="color: #000000">=</span><span style="color: #800000">"</span><span style="color: #800000">This&nbsp;is&nbsp;a&nbsp;message.</span><span style="color: #800000">"</span><span style="color: #000000">&nbsp;<br /></span><span style="color: #008080">12</span>&nbsp;<span style="color: #000000"><br /></span><span style="color: #008080">13</span>&nbsp;<span style="color: #000000">myMail.Send&nbsp;<br /></span><span style="color: #008080">14</span>&nbsp;<span style="color: #000000"><br /></span><span style="color: #008080">15</span>&nbsp;<span style="color: #000000"></span><span style="color: #0000ff">set</span><span style="color: #000000">&nbsp;myMail</span><span style="color: #000000">=</span><span style="color: #0000ff">nothing</span><span style="color: #000000">&nbsp;<br /></span><span style="color: #008080">16</span>&nbsp;<span style="color: #000000"><br /></span><span style="color: #008080">17</span>&nbsp;<span style="color: #000000">%</span><span style="color: #000000">&gt;</span><span style="color: #000000">&nbsp;<br /></span><span style="color: #008080">18</span>&nbsp;<span style="color: #000000"><br /></span><span style="color: #008080">19</span>&nbsp;<span style="color: #000000"></span></div></div></div>
<p>&nbsp;</p>
<p>&nbsp;</p>
<p>&nbsp;</p>
<p style="text-indent: 2em">vbscript co<wbr>de:</p>
<p>&nbsp;</p>
<p>&nbsp;</p>
<p>&nbsp;</p>
<div class="cnblogs_code" onclick="cnblogs_code_show('a6ba8b43-7877-402c-b978-f36abf84c523')"><img class="code_img_closed" id="code_img_closed_a6ba8b43-7877-402c-b978-f36abf84c523" style="display: none" src="http://images.cnblogs.com/OutliningIndicators/ContractedBlock.gif"  alt="" /><img class="code_img_opened" id="code_img_opened_a6ba8b43-7877-402c-b978-f36abf84c523" onclick="cnblogs_code_hide('a6ba8b43-7877-402c-b978-f36abf84c523',event)" src="http://images.cnblogs.com/OutliningIndicators/ExpandedBlockStart.gif"><span class="cnblogs_code_collapse">代码</span>
<div id="cnblogs_code_open_a6ba8b43-7877-402c-b978-f36abf84c523">
<div><!--<br/ /><br/ />Code highlighting produced by Actipro CodeHighlighter (freeware)<br/ />http://www.CodeHighlighter.com/<br/ /><br/ />--><span style="color: #008080">&nbsp;&nbsp;1</span>&nbsp;<span style="color: #008000">'</span><span style="color: #008000">Public&nbsp;Class&nbsp;clsSendMail</span><span style="color: #008000"><br /></span><span style="color: #008080">&nbsp;&nbsp;2</span>&nbsp;<span style="color: #008000"></span><span style="color: #000000">Class&nbsp;clsSendMail<br /></span><span style="color: #008080">&nbsp;&nbsp;3</span>&nbsp;<span style="color: #000000">&nbsp;<br /></span><span style="color: #008080">&nbsp;&nbsp;4</span>&nbsp;<span style="color: #000000">&nbsp;&nbsp;&nbsp;&nbsp;</span><span style="color: #0000ff">Private</span><span style="color: #000000">&nbsp;oMessage&nbsp;&nbsp;&nbsp;&nbsp;</span><span style="color: #008000">'</span><span style="color: #008000">CDO.Message&nbsp;Object</span><span style="color: #008000"><br /></span><span style="color: #008080">&nbsp;&nbsp;5</span>&nbsp;<span style="color: #008000"></span><span style="color: #000000">&nbsp;&nbsp;&nbsp;&nbsp;</span><span style="color: #0000ff">Private</span><span style="color: #000000">&nbsp;strFrom&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;</span><span style="color: #008000">'</span><span style="color: #008000">Sender's&nbsp;Email&nbsp;ID:&nbsp;XX@YY.COM</span><span style="color: #008000"><br /></span><span style="color: #008080">&nbsp;&nbsp;6</span>&nbsp;<span style="color: #008000"></span><span style="color: #000000">&nbsp;&nbsp;&nbsp;&nbsp;</span><span style="color: #0000ff">Public</span><span style="color: #000000">&nbsp;Body&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;</span><span style="color: #008000">'</span><span style="color: #008000">Body&nbsp;Text&nbsp;from&nbsp;Text&nbsp;File</span><span style="color: #008000"><br /></span><span style="color: #008080">&nbsp;&nbsp;7</span>&nbsp;<span style="color: #008000"></span><span style="color: #000000"><br /></span><span style="color: #008080">&nbsp;&nbsp;8</span>&nbsp;<span style="color: #000000">&nbsp;&nbsp;&nbsp;&nbsp;</span><span style="color: #008000">'</span><span style="color: #008000">&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&nbsp;&nbsp;</span><span style="color: #008000"><br /></span><span style="color: #008080">&nbsp;&nbsp;9</span>&nbsp;<span style="color: #008000"></span><span style="color: #000000">&nbsp;&nbsp;&nbsp;&nbsp;</span><span style="color: #008000">'</span><span style="color: #008000">&nbsp;Name:&nbsp;Sub&nbsp;Email&nbsp;(Public)</span><span style="color: #008000"><br /></span><span style="color: #008080">&nbsp;10</span>&nbsp;<span style="color: #008000"></span><span style="color: #000000">&nbsp;&nbsp;&nbsp;&nbsp;</span><span style="color: #008000">'</span><span style="color: #008000">&nbsp;</span><span style="color: #008000"><br /></span><span style="color: #008080">&nbsp;11</span>&nbsp;<span style="color: #008000"></span><span style="color: #000000">&nbsp;&nbsp;&nbsp;&nbsp;</span><span style="color: #008000">'</span><span style="color: #008000">&nbsp;Purpose:&nbsp;Send&nbsp;Email&nbsp;Using&nbsp;CDO</span><span style="color: #008000"><br /></span><span style="color: #008080">&nbsp;12</span>&nbsp;<span style="color: #008000"></span><span style="color: #000000">&nbsp;&nbsp;&nbsp;&nbsp;</span><span style="color: #008000">'</span><span style="color: #008000">&nbsp;</span><span style="color: #008000"><br /></span><span style="color: #008080">&nbsp;13</span>&nbsp;<span style="color: #008000"></span><span style="color: #000000">&nbsp;&nbsp;&nbsp;&nbsp;</span><span style="color: #008000">'</span><span style="color: #008000">&nbsp;Parameters:</span><span style="color: #008000"><br /></span><span style="color: #008080">&nbsp;14</span>&nbsp;<span style="color: #008000"></span><span style="color: #000000">&nbsp;&nbsp;&nbsp;&nbsp;</span><span style="color: #008000">'</span><span style="color: #008000">&nbsp;&nbsp;&nbsp;&nbsp;sEmailID:&nbsp;Sender's&nbsp;Mail&nbsp;ID&nbsp;String</span><span style="color: #008000"><br /></span><span style="color: #008080">&nbsp;15</span>&nbsp;<span style="color: #008000"></span><span style="color: #000000">&nbsp;&nbsp;&nbsp;&nbsp;</span><span style="color: #008000">'</span><span style="color: #008000">&nbsp;&nbsp;&nbsp;&nbsp;sPassword:&nbsp;Sender's&nbsp;Password&nbsp;String</span><span style="color: #008000"><br /></span><span style="color: #008080">&nbsp;16</span>&nbsp;<span style="color: #008000"></span><span style="color: #000000">&nbsp;&nbsp;&nbsp;&nbsp;</span><span style="color: #008000">'</span><span style="color: #008000">&nbsp;&nbsp;&nbsp;&nbsp;sTo:&nbsp;Recipient's&nbsp;Mail&nbsp;ID&nbsp;String&nbsp;(Primary)</span><span style="color: #008000"><br /></span><span style="color: #008080">&nbsp;17</span>&nbsp;<span style="color: #008000"></span><span style="color: #000000">&nbsp;&nbsp;&nbsp;&nbsp;</span><span style="color: #008000">'</span><span style="color: #008000">&nbsp;&nbsp;&nbsp;&nbsp;sCC:&nbsp;Recipient's&nbsp;Mail&nbsp;ID&nbsp;String&nbsp;(CC)</span><span style="color: #008000"><br /></span><span style="color: #008080">&nbsp;18</span>&nbsp;<span style="color: #008000"></span><span style="color: #000000">&nbsp;&nbsp;&nbsp;&nbsp;</span><span style="color: #008000">'</span><span style="color: #008000">&nbsp;&nbsp;&nbsp;&nbsp;sSubject:&nbsp;Subject&nbsp;String</span><span style="color: #008000"><br /></span><span style="color: #008080">&nbsp;19</span>&nbsp;<span style="color: #008000"></span><span style="color: #000000">&nbsp;&nbsp;&nbsp;&nbsp;</span><span style="color: #008000">'</span><span style="color: #008000">&nbsp;&nbsp;&nbsp;&nbsp;sBody:&nbsp;Body&nbsp;Message&nbsp;String</span><span style="color: #008000"><br /></span><span style="color: #008080">&nbsp;20</span>&nbsp;<span style="color: #008000"></span><span style="color: #000000">&nbsp;&nbsp;&nbsp;&nbsp;</span><span style="color: #008000">'</span><span style="color: #008000">&nbsp;</span><span style="color: #008000"><br /></span><span style="color: #008080">&nbsp;21</span>&nbsp;<span style="color: #008000"></span><span style="color: #000000">&nbsp;&nbsp;&nbsp;&nbsp;</span><span style="color: #008000">'</span><span style="color: #008000">&nbsp;Return:&nbsp;-</span><span style="color: #008000"><br /></span><span style="color: #008080">&nbsp;22</span>&nbsp;<span style="color: #008000"></span><span style="color: #000000">&nbsp;&nbsp;&nbsp;&nbsp;</span><span style="color: #008000">'</span><span style="color: #008000">&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&nbsp;</span><span style="color: #008000"><br /></span><span style="color: #008080">&nbsp;23</span>&nbsp;<span style="color: #008000"></span><span style="color: #000000">&nbsp;&nbsp;&nbsp;&nbsp;</span><span style="color: #0000ff">Public</span><span style="color: #000000">&nbsp;</span><span style="color: #0000ff">Sub</span><span style="color: #000000">&nbsp;Send(&nbsp;sEMailID,&nbsp;sPassword,&nbsp;sTo,&nbsp;sCC,&nbsp;sSubject,&nbsp;sBody&nbsp;)<br /></span><span style="color: #008080">&nbsp;24</span>&nbsp;<span style="color: #000000">&nbsp;&nbsp;&nbsp;&nbsp;</span><span style="color: #008000">'</span><span style="color: #008000">&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&nbsp;</span><span style="color: #008000"><br /></span><span style="color: #008080">&nbsp;25</span>&nbsp;<span style="color: #008000"></span><span style="color: #000000">&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;</span><span style="color: #0000ff">Dim</span><span style="color: #000000">&nbsp;oRegExp&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;</span><span style="color: #008000">'</span><span style="color: #008000">RegEx&nbsp;Object</span><span style="color: #008000"><br /></span><span style="color: #008080">&nbsp;26</span>&nbsp;<span style="color: #008000"></span><span style="color: #000000">&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;</span><span style="color: #0000ff">Dim</span><span style="color: #000000">&nbsp;sDetails&nbsp;&nbsp;&nbsp;&nbsp;</span><span style="color: #008000">'</span><span style="color: #008000">Report&nbsp;Details</span><span style="color: #008000"><br /></span><span style="color: #008080">&nbsp;27</span>&nbsp;<span style="color: #008000"></span><span style="color: #000000">&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;</span><span style="color: #0000ff">Dim</span><span style="color: #000000">&nbsp;intStatus&nbsp;&nbsp;&nbsp;</span><span style="color: #008000">'</span><span style="color: #008000">Report&nbsp;Status</span><span style="color: #008000"><br /></span><span style="color: #008080">&nbsp;28</span>&nbsp;<span style="color: #008000"></span><span style="color: #000000">&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;</span><span style="color: #0000ff">Dim</span><span style="color: #000000">&nbsp;sStepName&nbsp;&nbsp;&nbsp;</span><span style="color: #008000">'</span><span style="color: #008000">Report&nbsp;Step</span><span style="color: #008000"><br /></span><span style="color: #008080">&nbsp;29</span>&nbsp;<span style="color: #008000"></span><span style="color: #000000">&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;<br /></span><span style="color: #008080">&nbsp;30</span>&nbsp;<span style="color: #000000">&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;</span><span style="color: #008000">'</span><span style="color: #008000">Sender&nbsp;ID&nbsp;has&nbsp;Class&nbsp;scope</span><span style="color: #008000"><br /></span><span style="color: #008080">&nbsp;31</span>&nbsp;<span style="color: #008000"></span><span style="color: #000000">&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;Me.From&nbsp;</span><span style="color: #000000">=</span><span style="color: #000000">&nbsp;sEmailID<br /></span><span style="color: #008080">&nbsp;32</span>&nbsp;<span style="color: #000000">&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;</span><span style="color: #008000">'</span><span style="color: #008000">Message&nbsp;Body</span><span style="color: #008000"><br /></span><span style="color: #008080">&nbsp;33</span>&nbsp;<span style="color: #008000"></span><span style="color: #000000">&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;</span><span style="color: #0000ff">If</span><span style="color: #000000">&nbsp;sBody&nbsp;</span><span style="color: #000000">&lt;&gt;</span><span style="color: #000000">&nbsp;</span><span style="color: #800000">""</span><span style="color: #000000">&nbsp;</span><span style="color: #0000ff">Then</span><span style="color: #000000">&nbsp;Me.Body&nbsp;</span><span style="color: #000000">=</span><span style="color: #000000">&nbsp;sBody<br /></span><span style="color: #008080">&nbsp;34</span>&nbsp;<span style="color: #000000">&nbsp;<br /></span><span style="color: #008080">&nbsp;35</span>&nbsp;<span style="color: #000000">&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;intStatus&nbsp;</span><span style="color: #000000">=</span><span style="color: #000000">&nbsp;micPass<br /></span><span style="color: #008080">&nbsp;36</span>&nbsp;<span style="color: #000000">&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;sStepName&nbsp;</span><span style="color: #000000">=</span><span style="color: #000000">&nbsp;</span><span style="color: #800000">"</span><span style="color: #800000">&nbsp;Sent</span><span style="color: #800000">"</span><span style="color: #000000"><br /></span><span style="color: #008080">&nbsp;37</span>&nbsp;<span style="color: #000000">&nbsp;<br /></span><span style="color: #008080">&nbsp;38</span>&nbsp;<span style="color: #000000">&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;</span><span style="color: #0000ff">Set</span><span style="color: #000000">&nbsp;oRegExp&nbsp;</span><span style="color: #000000">=</span><span style="color: #000000">&nbsp;</span><span style="color: #0000ff">New</span><span style="color: #000000">&nbsp;RegExp<br /></span><span style="color: #008080">&nbsp;39</span>&nbsp;<span style="color: #000000">&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;oRegExp.Global&nbsp;</span><span style="color: #000000">=</span><span style="color: #000000">&nbsp;</span><span style="color: #0000ff">True</span><span style="color: #000000"><br /></span><span style="color: #008080">&nbsp;40</span>&nbsp;<span style="color: #000000">&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;oRegExp.Pattern&nbsp;</span><span style="color: #000000">=</span><span style="color: #000000">&nbsp;</span><span style="color: #800000">"</span><span style="color: #800000">&lt;\w&gt;|&lt;\w\w&gt;|&lt;\w\d&gt;</span><span style="color: #800000">"</span><span style="color: #000000"><br /></span><span style="color: #008080">&nbsp;41</span>&nbsp;<span style="color: #000000">&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;</span><span style="color: #0000ff">Set</span><span style="color: #000000">&nbsp;oMatches&nbsp;</span><span style="color: #000000">=</span><span style="color: #000000">&nbsp;oRegExp.Execute(&nbsp;Me.Body&nbsp;)<br /></span><span style="color: #008080">&nbsp;42</span>&nbsp;<span style="color: #000000">&nbsp;<br /></span><span style="color: #008080">&nbsp;43</span>&nbsp;<span style="color: #000000">&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;</span><span style="color: #008000">'</span><span style="color: #008000">Build&nbsp;Message</span><span style="color: #008000"><br /></span><span style="color: #008080">&nbsp;44</span>&nbsp;<span style="color: #008000"></span><span style="color: #000000">&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;</span><span style="color: #0000ff">With</span><span style="color: #000000">&nbsp;oMessage<br /></span><span style="color: #008080">&nbsp;45</span>&nbsp;<span style="color: #000000">&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;.Subject&nbsp;</span><span style="color: #000000">=</span><span style="color: #000000">&nbsp;sSubject<br /></span><span style="color: #008080">&nbsp;46</span>&nbsp;<span style="color: #000000">&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;.From&nbsp;</span><span style="color: #000000">=</span><span style="color: #000000">&nbsp;sEmailID<br /></span><span style="color: #008080">&nbsp;47</span>&nbsp;<span style="color: #000000">&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;.To&nbsp;</span><span style="color: #000000">=</span><span style="color: #000000">&nbsp;sTo<br /></span><span style="color: #008080">&nbsp;48</span>&nbsp;<span style="color: #000000">&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;.CC&nbsp;</span><span style="color: #000000">=</span><span style="color: #000000">&nbsp;sCC<br /></span><span style="color: #008080">&nbsp;49</span>&nbsp;<span style="color: #000000">&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;</span><span style="color: #008000">'</span><span style="color: #008000">BCC&nbsp;Property&nbsp;can&nbsp;be&nbsp;added&nbsp;as&nbsp;well:</span><span style="color: #008000"><br /></span><span style="color: #008080">&nbsp;50</span>&nbsp;<span style="color: #008000"></span><span style="color: #000000">&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;</span><span style="color: #008000">'</span><span style="color: #008000">.BCC&nbsp;=&nbsp;sBCC</span><span style="color: #008000"><br /></span><span style="color: #008080">&nbsp;51</span>&nbsp;<span style="color: #008000"></span><span style="color: #000000">&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;</span><span style="color: #008000">'</span><span style="color: #008000">If&nbsp;HTML&nbsp;Tags&nbsp;found,&nbsp;use&nbsp;.HTMLBody</span><span style="color: #008000"><br /></span><span style="color: #008080">&nbsp;52</span>&nbsp;<span style="color: #008000"></span><span style="color: #000000">&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;</span><span style="color: #0000ff">If</span><span style="color: #000000">&nbsp;oMatches.Count&nbsp;</span><span style="color: #000000">&gt;</span><span style="color: #000000">&nbsp;</span><span style="color: #800080">0</span><span style="color: #000000">&nbsp;</span><span style="color: #0000ff">Then</span><span style="color: #000000"><br /></span><span style="color: #008080">&nbsp;53</span>&nbsp;<span style="color: #000000">&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;.HTMLBody&nbsp;</span><span style="color: #000000">=</span><span style="color: #000000">&nbsp;Me.Body<br /></span><span style="color: #008080">&nbsp;54</span>&nbsp;<span style="color: #000000">&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;</span><span style="color: #0000ff">Else</span><span style="color: #000000"><br /></span><span style="color: #008080">&nbsp;55</span>&nbsp;<span style="color: #000000">&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;.TextBody&nbsp;</span><span style="color: #000000">=</span><span style="color: #000000">&nbsp;Me.Body<br /></span><span style="color: #008080">&nbsp;56</span>&nbsp;<span style="color: #000000">&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;</span><span style="color: #0000ff">End</span><span style="color: #000000">&nbsp;</span><span style="color: #0000ff">If</span><span style="color: #000000"><br /></span><span style="color: #008080">&nbsp;57</span>&nbsp;<span style="color: #000000">&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;</span><span style="color: #0000ff">End</span><span style="color: #000000">&nbsp;</span><span style="color: #0000ff">With</span><span style="color: #000000"><br /></span><span style="color: #008080">&nbsp;58</span>&nbsp;<span style="color: #000000">&nbsp;<br /></span><span style="color: #008080">&nbsp;59</span>&nbsp;<span style="color: #000000">&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;</span><span style="color: #0000ff">Set</span><span style="color: #000000">&nbsp;oMatches&nbsp;</span><span style="color: #000000">=</span><span style="color: #000000">&nbsp;</span><span style="color: #0000ff">Nothing</span><span style="color: #000000"><br /></span><span style="color: #008080">&nbsp;60</span>&nbsp;<span style="color: #000000">&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;</span><span style="color: #0000ff">Set</span><span style="color: #000000">&nbsp;oRegExp&nbsp;</span><span style="color: #000000">=</span><span style="color: #000000">&nbsp;</span><span style="color: #0000ff">Nothing</span><span style="color: #000000"><br /></span><span style="color: #008080">&nbsp;61</span>&nbsp;<span style="color: #000000">&nbsp;<br /></span><span style="color: #008080">&nbsp;62</span>&nbsp;<span style="color: #000000">&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;</span><span style="color: #0000ff">With</span><span style="color: #000000">&nbsp;oMessage.Configuration.Fields<br /></span><span style="color: #008080">&nbsp;63</span>&nbsp;<span style="color: #000000">&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;</span><span style="color: #008000">'</span><span style="color: #008000">Sender's&nbsp;Mail&nbsp;ID</span><span style="color: #008000"><br /></span><span style="color: #008080">&nbsp;64</span>&nbsp;<span style="color: #008000"></span><span style="color: #000000">&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;.Item(</span><span style="color: #800000">"</span><span style="color: #800000">http://schemas.microsoft.com/cdo/configuration/</span><span style="color: #800000">"</span><span style="color: #000000">&nbsp;</span><span style="color: #000000">&amp;</span><span style="color: #000000">_<br /></span><span style="color: #008080">&nbsp;65</span>&nbsp;<span style="color: #000000">&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;</span><span style="color: #800000">"</span><span style="color: #800000">sendusername</span><span style="color: #800000">"</span><span style="color: #000000">)&nbsp;</span><span style="color: #000000">=</span><span style="color: #000000">&nbsp;sEmailID<br /></span><span style="color: #008080">&nbsp;66</span>&nbsp;<span style="color: #000000">&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;</span><span style="color: #008000">'</span><span style="color: #008000">Sender's&nbsp;Password</span><span style="color: #008000"><br /></span><span style="color: #008080">&nbsp;67</span>&nbsp;<span style="color: #008000"></span><span style="color: #000000">&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;.Item(</span><span style="color: #800000">"</span><span style="color: #800000">http://schemas.microsoft.com/cdo/configuration/</span><span style="color: #800000">"</span><span style="color: #000000">&nbsp;</span><span style="color: #000000">&amp;</span><span style="color: #000000">_<br /></span><span style="color: #008080">&nbsp;68</span>&nbsp;<span style="color: #000000">&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;</span><span style="color: #800000">"</span><span style="color: #800000">sendpassword</span><span style="color: #800000">"</span><span style="color: #000000">)&nbsp;</span><span style="color: #000000">=</span><span style="color: #000000">&nbsp;sPassword<br /></span><span style="color: #008080">&nbsp;69</span>&nbsp;<span style="color: #000000">&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;</span><span style="color: #008000">'</span><span style="color: #008000">Name/IP&nbsp;of&nbsp;SMTP&nbsp;Server</span><span style="color: #008000"><br /></span><span style="color: #008080">&nbsp;70</span>&nbsp;<span style="color: #008000"></span><span style="color: #000000">&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;.Item(</span><span style="color: #800000">"</span><span style="color: #800000">http://schemas.microsoft.com/cdo/configuration/</span><span style="color: #800000">"</span><span style="color: #000000">&nbsp;</span><span style="color: #000000">&amp;</span><span style="color: #000000">_<br /></span><span style="color: #008080">&nbsp;71</span>&nbsp;<span style="color: #000000">&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;</span><span style="color: #800000">"</span><span style="color: #800000">smtpserver</span><span style="color: #800000">"</span><span style="color: #000000">)&nbsp;</span><span style="color: #000000">=</span><span style="color: #000000">&nbsp;cdoSMTPServer<br /></span><span style="color: #008080">&nbsp;72</span>&nbsp;<span style="color: #000000">&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;</span><span style="color: #008000">'</span><span style="color: #008000">Server&nbsp;Port</span><span style="color: #008000"><br /></span><span style="color: #008080">&nbsp;73</span>&nbsp;<span style="color: #008000"></span><span style="color: #000000">&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;.Item(</span><span style="color: #800000">"</span><span style="color: #800000">http://schemas.microsoft.com/cdo/configuration/</span><span style="color: #800000">"</span><span style="color: #000000">&nbsp;</span><span style="color: #000000">&amp;</span><span style="color: #000000">_<br /></span><span style="color: #008080">&nbsp;74</span>&nbsp;<span style="color: #000000">&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;</span><span style="color: #800000">"</span><span style="color: #800000">smtpserverport</span><span style="color: #800000">"</span><span style="color: #000000">)&nbsp;</span><span style="color: #000000">=</span><span style="color: #000000">&nbsp;cdoOutgoingMailSMTP<br /></span><span style="color: #008080">&nbsp;75</span>&nbsp;<span style="color: #000000">&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;</span><span style="color: #008000">'</span><span style="color: #008000">Send&nbsp;Using:&nbsp;(1)&nbsp;Local&nbsp;SMTP&nbsp;Pickup&nbsp;Service&nbsp;(2)&nbsp;Use&nbsp;SMTP&nbsp;Over&nbsp;Network</span><span style="color: #008000"><br /></span><span style="color: #008080">&nbsp;76</span>&nbsp;<span style="color: #008000"></span><span style="color: #000000">&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;.Item(</span><span style="color: #800000">"</span><span style="color: #800000">http://schemas.microsoft.com/cdo/configuration/</span><span style="color: #800000">"</span><span style="color: #000000">&nbsp;</span><span style="color: #000000">&amp;</span><span style="color: #000000">_<br /></span><span style="color: #008080">&nbsp;77</span>&nbsp;<span style="color: #000000">&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;</span><span style="color: #800000">"</span><span style="color: #800000">sendusing</span><span style="color: #800000">"</span><span style="color: #000000">)&nbsp;</span><span style="color: #000000">=</span><span style="color: #000000">&nbsp;cdoSendUsing<br /></span><span style="color: #008080">&nbsp;78</span>&nbsp;<span style="color: #000000">&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;</span><span style="color: #008000">'</span><span style="color: #008000">Authentication&nbsp;Used:&nbsp;(1)&nbsp;None&nbsp;(2)&nbsp;Basic&nbsp;(3)&nbsp;NTLM</span><span style="color: #008000"><br /></span><span style="color: #008080">&nbsp;79</span>&nbsp;<span style="color: #008000"></span><span style="color: #000000">&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;.Item(</span><span style="color: #800000">"</span><span style="color: #800000">http://schemas.microsoft.com/cdo/configuration/</span><span style="color: #800000">"</span><span style="color: #000000">&nbsp;</span><span style="color: #000000">&amp;</span><span style="color: #000000">_<br /></span><span style="color: #008080">&nbsp;80</span>&nbsp;<span style="color: #000000">&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;</span><span style="color: #800000">"</span><span style="color: #800000">smtpauthenticate</span><span style="color: #800000">"</span><span style="color: #000000">)&nbsp;</span><span style="color: #000000">=</span><span style="color: #000000">&nbsp;cdoAuthenticationType<br /></span><span style="color: #008080">&nbsp;81</span>&nbsp;<span style="color: #000000">&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;</span><span style="color: #008000">'</span><span style="color: #008000">SMTP&nbsp;Server&nbsp;Requires&nbsp;SSL/STARTTLS:&nbsp;Boolean</span><span style="color: #008000"><br /></span><span style="color: #008080">&nbsp;82</span>&nbsp;<span style="color: #008000"></span><span style="color: #000000">&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;.Item(</span><span style="color: #800000">"</span><span style="color: #800000">http://schemas.microsoft.com/cdo/configuration/</span><span style="color: #800000">"</span><span style="color: #000000">&nbsp;</span><span style="color: #000000">&amp;</span><span style="color: #000000">_<br /></span><span style="color: #008080">&nbsp;83</span>&nbsp;<span style="color: #000000">&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;</span><span style="color: #800000">"</span><span style="color: #800000">smtpusessl</span><span style="color: #800000">"</span><span style="color: #000000">)&nbsp;</span><span style="color: #000000">=</span><span style="color: #000000">&nbsp;cdoUseSSL<br /></span><span style="color: #008080">&nbsp;84</span>&nbsp;<span style="color: #000000">&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;</span><span style="color: #008000">'</span><span style="color: #008000">Maximum&nbsp;Time&nbsp;in&nbsp;Seconds&nbsp;CDO&nbsp;will&nbsp;try&nbsp;to&nbsp;Establish&nbsp;Connection</span><span style="color: #008000"><br /></span><span style="color: #008080">&nbsp;85</span>&nbsp;<span style="color: #008000"></span><span style="color: #000000">&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;.Item(</span><span style="color: #800000">"</span><span style="color: #800000">http://schemas.microsoft.com/cdo/configuration/</span><span style="color: #800000">"</span><span style="color: #000000">&nbsp;</span><span style="color: #000000">&amp;</span><span style="color: #000000">_<br /></span><span style="color: #008080">&nbsp;86</span>&nbsp;<span style="color: #000000">&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;</span><span style="color: #800000">"</span><span style="color: #800000">smtpconnectiontimeout</span><span style="color: #800000">"</span><span style="color: #000000">)&nbsp;</span><span style="color: #000000">=</span><span style="color: #000000">&nbsp;cdoTimeout<br /></span><span style="color: #008080">&nbsp;87</span>&nbsp;<span style="color: #000000">&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;</span><span style="color: #008000">'</span><span style="color: #008000">Update&nbsp;Configuration&nbsp;Entries</span><span style="color: #008000"><br /></span><span style="color: #008080">&nbsp;88</span>&nbsp;<span style="color: #008000"></span><span style="color: #000000">&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;.Update<br /></span><span style="color: #008080">&nbsp;89</span>&nbsp;<span style="color: #000000">&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;</span><span style="color: #0000ff">End</span><span style="color: #000000">&nbsp;</span><span style="color: #0000ff">With</span><span style="color: #000000"><br /></span><span style="color: #008080">&nbsp;90</span>&nbsp;<span style="color: #000000">&nbsp;<br /></span><span style="color: #008080">&nbsp;91</span>&nbsp;<span style="color: #000000">&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;</span><span style="color: #008000">'</span><span style="color: #008000">Report&nbsp;Details</span><span style="color: #008000"><br /></span><span style="color: #008080">&nbsp;92</span>&nbsp;<span style="color: #008000"></span><span style="color: #000000">&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;sDetails&nbsp;</span><span style="color: #000000">=</span><span style="color: #000000">&nbsp;</span><span style="color: #800000">"</span><span style="color: #800000">SMTP&nbsp;Server:&nbsp;</span><span style="color: #800000">"</span><span style="color: #000000">&nbsp;</span><span style="color: #000000">&amp;</span><span style="color: #000000">&nbsp;cdoSMTPServer&nbsp;</span><span style="color: #000000">&amp;</span><span style="color: #000000">&nbsp;vbLf<br /></span><span style="color: #008080">&nbsp;93</span>&nbsp;<span style="color: #000000">&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;sDetails&nbsp;</span><span style="color: #000000">=</span><span style="color: #000000">&nbsp;sDetails&nbsp;</span><span style="color: #000000">&amp;</span><span style="color: #000000">&nbsp;</span><span style="color: #800000">"</span><span style="color: #800000">Sender:&nbsp;</span><span style="color: #800000">"</span><span style="color: #000000">&nbsp;</span><span style="color: #000000">&amp;</span><span style="color: #000000">&nbsp;sEMailID&nbsp;</span><span style="color: #000000">&amp;</span><span style="color: #000000">&nbsp;vbLf<br /></span><span style="color: #008080">&nbsp;94</span>&nbsp;<span style="color: #000000">&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;sDetails&nbsp;</span><span style="color: #000000">=</span><span style="color: #000000">&nbsp;sDetails&nbsp;</span><span style="color: #000000">&amp;</span><span style="color: #000000">&nbsp;</span><span style="color: #800000">"</span><span style="color: #800000">Recipient:&nbsp;</span><span style="color: #800000">"</span><span style="color: #000000">&nbsp;</span><span style="color: #000000">&amp;</span><span style="color: #000000">&nbsp;sTo&nbsp;</span><span style="color: #000000">&amp;</span><span style="color: #000000">&nbsp;vbLf<br /></span><span style="color: #008080">&nbsp;95</span>&nbsp;<span style="color: #000000">&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;sDetails&nbsp;</span><span style="color: #000000">=</span><span style="color: #000000">&nbsp;sDetails&nbsp;</span><span style="color: #000000">&amp;</span><span style="color: #000000">&nbsp;</span><span style="color: #800000">"</span><span style="color: #800000">Server&nbsp;Port:&nbsp;</span><span style="color: #800000">"</span><span style="color: #000000">&nbsp;</span><span style="color: #000000">&amp;</span><span style="color: #000000">&nbsp;cdoOutgoingMailSMTP&nbsp;</span><span style="color: #000000">&amp;</span><span style="color: #000000">&nbsp;vbLf<br /></span><span style="color: #008080">&nbsp;96</span>&nbsp;<span style="color: #000000">&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;sDetails&nbsp;</span><span style="color: #000000">=</span><span style="color: #000000">&nbsp;sDetails&nbsp;</span><span style="color: #000000">&amp;</span><span style="color: #000000">&nbsp;</span><span style="color: #800000">"</span><span style="color: #800000">SSL&nbsp;Used:&nbsp;</span><span style="color: #800000">"</span><span style="color: #000000">&nbsp;</span><span style="color: #000000">&amp;</span><span style="color: #000000">&nbsp;cdoUseSSL&nbsp;</span><span style="color: #000000">&amp;</span><span style="color: #000000">&nbsp;vbLf<br /></span><span style="color: #008080">&nbsp;97</span>&nbsp;<span style="color: #000000">&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;sDetails&nbsp;</span><span style="color: #000000">=</span><span style="color: #000000">&nbsp;sDetails&nbsp;</span><span style="color: #000000">&amp;</span><span style="color: #000000">&nbsp;</span><span style="color: #800000">"</span><span style="color: #800000">Authentication&nbsp;Type:&nbsp;</span><span style="color: #800000">"</span><span style="color: #000000">&nbsp;</span><span style="color: #000000">&amp;</span><span style="color: #000000">&nbsp;cdoAuthenticationType&nbsp;</span><span style="color: #000000">&amp;</span><span style="color: #000000">&nbsp;vbLf<br /></span><span style="color: #008080">&nbsp;98</span>&nbsp;<span style="color: #000000">&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;sDetails&nbsp;</span><span style="color: #000000">=</span><span style="color: #000000">&nbsp;sDetails&nbsp;</span><span style="color: #000000">&amp;</span><span style="color: #000000">&nbsp;</span><span style="color: #800000">"</span><span style="color: #800000">SMTP&nbsp;Service&nbsp;Type:&nbsp;</span><span style="color: #800000">"</span><span style="color: #000000">&nbsp;</span><span style="color: #000000">&amp;</span><span style="color: #000000">&nbsp;cdoSendUsing&nbsp;</span><span style="color: #000000">&amp;</span><span style="color: #000000">&nbsp;vbLf&nbsp;</span><span style="color: #000000">&amp;</span><span style="color: #000000">&nbsp;vbLf<br /></span><span style="color: #008080">&nbsp;99</span>&nbsp;<span style="color: #000000">&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;sDetails&nbsp;</span><span style="color: #000000">=</span><span style="color: #000000">&nbsp;sDetails&nbsp;</span><span style="color: #000000">&amp;</span><span style="color: #000000">&nbsp;</span><span style="color: #800000">"</span><span style="color: #800000">Subject:&nbsp;</span><span style="color: #800000">"</span><span style="color: #000000">&nbsp;</span><span style="color: #000000">&amp;</span><span style="color: #000000">&nbsp;sSubject&nbsp;</span><span style="color: #000000">&amp;</span><span style="color: #000000">&nbsp;vbLf&nbsp;</span><span style="color: #000000">&amp;</span><span style="color: #000000">&nbsp;vbLf<br /></span><span style="color: #008080">100</span>&nbsp;<span style="color: #000000">&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;sDetails&nbsp;</span><span style="color: #000000">=</span><span style="color: #000000">&nbsp;sDetails&nbsp;</span><span style="color: #000000">&amp;</span><span style="color: #000000">&nbsp;</span><span style="color: #800000">"</span><span style="color: #800000">Body:&nbsp;</span><span style="color: #800000">"</span><span style="color: #000000">&nbsp;</span><span style="color: #000000">&amp;</span><span style="color: #000000">&nbsp;sBody<br /></span><span style="color: #008080">101</span>&nbsp;<span style="color: #000000">&nbsp;<br /></span><span style="color: #008080">102</span>&nbsp;<span style="color: #000000">&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;</span><span style="color: #0000ff">On</span><span style="color: #000000">&nbsp;</span><span style="color: #0000ff">Error</span><span style="color: #000000">&nbsp;</span><span style="color: #0000ff">Resume</span><span style="color: #000000">&nbsp;</span><span style="color: #0000ff">Next</span><span style="color: #000000"><br /></span><span style="color: #008080">103</span>&nbsp;<span style="color: #000000">&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;</span><span style="color: #008000">'</span><span style="color: #008000">Send&nbsp;Message</span><span style="color: #008000"><br /></span><span style="color: #008080">104</span>&nbsp;<span style="color: #008000"></span><span style="color: #000000">&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;oMessage.Send<br /></span><span style="color: #008080">105</span>&nbsp;<span style="color: #000000">&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;</span><span style="color: #0000ff">If</span><span style="color: #000000">&nbsp;Err.Number&nbsp;</span><span style="color: #000000">&lt;&gt;</span><span style="color: #000000">&nbsp;</span><span style="color: #800080">0</span><span style="color: #000000">&nbsp;</span><span style="color: #0000ff">Then</span><span style="color: #000000"><br /></span><span style="color: #008080">106</span>&nbsp;<span style="color: #000000">&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;intStatus&nbsp;</span><span style="color: #000000">=</span><span style="color: #000000">&nbsp;micWarning<br /></span><span style="color: #008080">107</span>&nbsp;<span style="color: #000000">&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;sStepName&nbsp;</span><span style="color: #000000">=</span><span style="color: #000000">&nbsp;</span><span style="color: #800000">"</span><span style="color: #800000">&nbsp;Not&nbsp;Sent</span><span style="color: #800000">"</span><span style="color: #000000"><br /></span><span style="color: #008080">108</span>&nbsp;<span style="color: #000000">&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;sDetails&nbsp;</span><span style="color: #000000">=</span><span style="color: #000000">&nbsp;sDetails&nbsp;</span><span style="color: #000000">&amp;</span><span style="color: #000000">&nbsp;vbLf&nbsp;</span><span style="color: #000000">&amp;</span><span style="color: #000000">&nbsp;</span><span style="color: #800000">"</span><span style="color: #800000">Error&nbsp;Description:&nbsp;</span><span style="color: #800000">"</span><span style="color: #000000">&nbsp;</span><span style="color: #000000">&amp;</span><span style="color: #000000">&nbsp;Err.Description<br /></span><span style="color: #008080">109</span>&nbsp;<span style="color: #000000">&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;</span><span style="color: #0000ff">End</span><span style="color: #000000">&nbsp;</span><span style="color: #0000ff">If</span><span style="color: #000000"><br /></span><span style="color: #008080">110</span>&nbsp;<span style="color: #000000">&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;</span><span style="color: #0000ff">On</span><span style="color: #000000">&nbsp;</span><span style="color: #0000ff">Error</span><span style="color: #000000">&nbsp;</span><span style="color: #0000ff">Goto</span><span style="color: #000000">&nbsp;</span><span style="color: #800080">0</span><span style="color: #000000"><br /></span><span style="color: #008080">111</span>&nbsp;<span style="color: #000000">&nbsp;<br /></span><span style="color: #008080">112</span>&nbsp;<span style="color: #000000">&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;</span><span style="color: #008000">'</span><span style="color: #008000">If&nbsp;you're&nbsp;not&nbsp;using&nbsp;QTP,&nbsp;please&nbsp;disable&nbsp;the&nbsp;statement&nbsp;below:</span><span style="color: #008000"><br /></span><span style="color: #008080">113</span>&nbsp;<span style="color: #008000"></span><span style="color: #000000">&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;Reporter.ReportEvent&nbsp;intStatus,&nbsp;</span><span style="color: #800000">"</span><span style="color: #800000">EMail</span><span style="color: #800000">"</span><span style="color: #000000">&nbsp;</span><span style="color: #000000">&amp;</span><span style="color: #000000">&nbsp;sStepName,&nbsp;sDetails<br /></span><span style="color: #008080">114</span>&nbsp;<span style="color: #000000">&nbsp;&nbsp;&nbsp;&nbsp;</span><span style="color: #0000ff">End&nbsp;Sub</span><span style="color: #000000"><br /></span><span style="color: #008080">115</span>&nbsp;<span style="color: #000000">&nbsp;<br /></span><span style="color: #008080">116</span>&nbsp;<span style="color: #000000">&nbsp;&nbsp;&nbsp;&nbsp;</span><span style="color: #008000">'</span><span style="color: #008000">&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&nbsp;&nbsp;</span><span style="color: #008000"><br /></span><span style="color: #008080">117</span>&nbsp;<span style="color: #008000"></span><span style="color: #000000">&nbsp;&nbsp;&nbsp;&nbsp;</span><span style="color: #008000">'</span><span style="color: #008000">&nbsp;Name:&nbsp;Sub&nbsp;LoadBodyMessage&nbsp;(Public)</span><span style="color: #008000"><br /></span><span style="color: #008080">118</span>&nbsp;<span style="color: #008000"></span><span style="color: #000000">&nbsp;&nbsp;&nbsp;&nbsp;</span><span style="color: #008000">'</span><span style="color: #008000">&nbsp;</span><span style="color: #008000"><br /></span><span style="color: #008080">119</span>&nbsp;<span style="color: #008000"></span><span style="color: #000000">&nbsp;&nbsp;&nbsp;&nbsp;</span><span style="color: #008000">'</span><span style="color: #008000">&nbsp;Purpose:&nbsp;Loads&nbsp;BodyText&nbsp;from&nbsp;a&nbsp;Text&nbsp;File</span><span style="color: #008000"><br /></span><span style="color: #008080">120</span>&nbsp;<span style="color: #008000"></span><span style="color: #000000">&nbsp;&nbsp;&nbsp;&nbsp;</span><span style="color: #008000">'</span><span style="color: #008000">&nbsp;</span><span style="color: #008000"><br /></span><span style="color: #008080">121</span>&nbsp;<span style="color: #008000"></span><span style="color: #000000">&nbsp;&nbsp;&nbsp;&nbsp;</span><span style="color: #008000">'</span><span style="color: #008000">&nbsp;Parameters:</span><span style="color: #008000"><br /></span><span style="color: #008080">122</span>&nbsp;<span style="color: #008000"></span><span style="color: #000000">&nbsp;&nbsp;&nbsp;&nbsp;</span><span style="color: #008000">'</span><span style="color: #008000">&nbsp;&nbsp;&nbsp;&nbsp;sCompleteFilePath:&nbsp;Complete&nbsp;Path&nbsp;to&nbsp;the&nbsp;Text&nbsp;File&nbsp;(Eg:&nbsp;"C:\MyDocs\MyMail.txt")</span><span style="color: #008000"><br /></span><span style="color: #008080">123</span>&nbsp;<span style="color: #008000"></span><span style="color: #000000">&nbsp;&nbsp;&nbsp;&nbsp;</span><span style="color: #008000">'</span><span style="color: #008000">&nbsp;</span><span style="color: #008000"><br /></span><span style="color: #008080">124</span>&nbsp;<span style="color: #008000"></span><span style="color: #000000">&nbsp;&nbsp;&nbsp;&nbsp;</span><span style="color: #008000">'</span><span style="color: #008000">&nbsp;Return:&nbsp;-</span><span style="color: #008000"><br /></span><span style="color: #008080">125</span>&nbsp;<span style="color: #008000"></span><span style="color: #000000">&nbsp;&nbsp;&nbsp;&nbsp;</span><span style="color: #008000">'</span><span style="color: #008000">&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&nbsp;&nbsp;</span><span style="color: #008000"><br /></span><span style="color: #008080">126</span>&nbsp;<span style="color: #008000"></span><span style="color: #000000">&nbsp;&nbsp;&nbsp;&nbsp;</span><span style="color: #0000ff">Public</span><span style="color: #000000">&nbsp;</span><span style="color: #0000ff">Sub</span><span style="color: #000000">&nbsp;LoadBodyMessage(&nbsp;sCompleteFilePath&nbsp;)<br /></span><span style="color: #008080">127</span>&nbsp;<span style="color: #000000">&nbsp;&nbsp;&nbsp;&nbsp;</span><span style="color: #008000">'</span><span style="color: #008000">&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&nbsp;</span><span style="color: #008000"><br /></span><span style="color: #008080">128</span>&nbsp;<span style="color: #008000"></span><span style="color: #000000">&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;</span><span style="color: #0000ff">CONST</span><span style="color: #000000">&nbsp;ForReading&nbsp;</span><span style="color: #000000">=</span><span style="color: #000000">&nbsp;</span><span style="color: #800080">1</span><span style="color: #000000">&nbsp;<br /></span><span style="color: #008080">129</span>&nbsp;<span style="color: #000000">&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;</span><span style="color: #0000ff">Dim</span><span style="color: #000000">&nbsp;oFSO,&nbsp;oFile<br /></span><span style="color: #008080">130</span>&nbsp;<span style="color: #000000">&nbsp;<br /></span><span style="color: #008080">131</span>&nbsp;<span style="color: #000000">&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;</span><span style="color: #0000ff">Set</span><span style="color: #000000">&nbsp;oFSO&nbsp;</span><span style="color: #000000">=</span><span style="color: #000000">&nbsp;</span><span style="color: #0000ff">CreateObject</span><span style="color: #000000">(&nbsp;</span><span style="color: #800000">"</span><span style="color: #800000">Scripting.FileSystemObject</span><span style="color: #800000">"</span><span style="color: #000000">&nbsp;)<br /></span><span style="color: #008080">132</span>&nbsp;<span style="color: #000000">&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;</span><span style="color: #0000ff">Set</span><span style="color: #000000">&nbsp;oFile&nbsp;</span><span style="color: #000000">=</span><span style="color: #000000">&nbsp;oFSO.OpenTextFile(&nbsp;sCompleteFilePath,&nbsp;ForReading&nbsp;)<br /></span><span style="color: #008080">133</span>&nbsp;<span style="color: #000000">&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;Me.Body&nbsp;</span><span style="color: #000000">=</span><span style="color: #000000">&nbsp;oFile.ReadAll<br /></span><span style="color: #008080">134</span>&nbsp;<span style="color: #000000">&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;oFile.Close:&nbsp;</span><span style="color: #0000ff">Set</span><span style="color: #000000">&nbsp;oFile&nbsp;</span><span style="color: #000000">=</span><span style="color: #000000">&nbsp;</span><span style="color: #0000ff">Nothing</span><span style="color: #000000"><br /></span><span style="color: #008080">135</span>&nbsp;<span style="color: #000000">&nbsp;<br /></span><span style="color: #008080">136</span>&nbsp;<span style="color: #000000">&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;</span><span style="color: #0000ff">Set</span><span style="color: #000000">&nbsp;oFSO&nbsp;</span><span style="color: #000000">=</span><span style="color: #000000">&nbsp;</span><span style="color: #0000ff">Nothing</span><span style="color: #000000"><br /></span><span style="color: #008080">137</span>&nbsp;<span style="color: #000000">&nbsp;&nbsp;&nbsp;&nbsp;</span><span style="color: #0000ff">End&nbsp;Sub</span><span style="color: #000000"><br /></span><span style="color: #008080">138</span>&nbsp;<span style="color: #000000">&nbsp;<br /></span><span style="color: #008080">139</span>&nbsp;<span style="color: #000000">&nbsp;&nbsp;&nbsp;&nbsp;</span><span style="color: #008000">'</span><span style="color: #008000">&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&nbsp;&nbsp;</span><span style="color: #008000"><br /></span><span style="color: #008080">140</span>&nbsp;<span style="color: #008000"></span><span style="color: #000000">&nbsp;&nbsp;&nbsp;&nbsp;</span><span style="color: #008000">'</span><span style="color: #008000">&nbsp;Name:&nbsp;Class_Initialize&nbsp;(Private)</span><span style="color: #008000"><br /></span><span style="color: #008080">141</span>&nbsp;<span style="color: #008000"></span><span style="color: #000000">&nbsp;&nbsp;&nbsp;&nbsp;</span><span style="color: #008000">'</span><span style="color: #008000">&nbsp;</span><span style="color: #008000"><br /></span><span style="color: #008080">142</span>&nbsp;<span style="color: #008000"></span><span style="color: #000000">&nbsp;&nbsp;&nbsp;&nbsp;</span><span style="color: #008000">'</span><span style="color: #008000">&nbsp;Purpose:&nbsp;Binds&nbsp;to&nbsp;the&nbsp;CDO&nbsp;Object</span><span style="color: #008000"><br /></span><span style="color: #008080">143</span>&nbsp;<span style="color: #008000"></span><span style="color: #000000">&nbsp;&nbsp;&nbsp;&nbsp;</span><span style="color: #008000">'</span><span style="color: #008000">&nbsp;</span><span style="color: #008000"><br /></span><span style="color: #008080">144</span>&nbsp;<span style="color: #008000"></span><span style="color: #000000">&nbsp;&nbsp;&nbsp;&nbsp;</span><span style="color: #008000">'</span><span style="color: #008000">&nbsp;Parameters:&nbsp;-</span><span style="color: #008000"><br /></span><span style="color: #008080">145</span>&nbsp;<span style="color: #008000"></span><span style="color: #000000">&nbsp;&nbsp;&nbsp;&nbsp;</span><span style="color: #008000">'</span><span style="color: #008000">&nbsp;</span><span style="color: #008000"><br /></span><span style="color: #008080">146</span>&nbsp;<span style="color: #008000"></span><span style="color: #000000">&nbsp;&nbsp;&nbsp;&nbsp;</span><span style="color: #008000">'</span><span style="color: #008000">&nbsp;Return:&nbsp;-</span><span style="color: #008000"><br /></span><span style="color: #008080">147</span>&nbsp;<span style="color: #008000"></span><span style="color: #000000">&nbsp;&nbsp;&nbsp;&nbsp;</span><span style="color: #008000">'</span><span style="color: #008000">&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&nbsp;&nbsp;</span><span style="color: #008000"><br /></span><span style="color: #008080">148</span>&nbsp;<span style="color: #008000"></span><span style="color: #000000">&nbsp;&nbsp;&nbsp;&nbsp;</span><span style="color: #0000ff">Private</span><span style="color: #000000">&nbsp;</span><span style="color: #0000ff">Sub</span><span style="color: #000000">&nbsp;Class_Initialize<br /></span><span style="color: #008080">149</span>&nbsp;<span style="color: #000000">&nbsp;&nbsp;&nbsp;&nbsp;</span><span style="color: #008000">'</span><span style="color: #008000">&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&nbsp;&nbsp;</span><span style="color: #008000"><br /></span><span style="color: #008080">150</span>&nbsp;<span style="color: #008000"></span><span style="color: #000000">&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;</span><span style="color: #0000ff">Set</span><span style="color: #000000">&nbsp;oMessage&nbsp;</span><span style="color: #000000">=</span><span style="color: #000000">&nbsp;</span><span style="color: #0000ff">CreateObject</span><span style="color: #000000">(&nbsp;</span><span style="color: #800000">"</span><span style="color: #800000">CDO.Message</span><span style="color: #800000">"</span><span style="color: #000000">&nbsp;)<br /></span><span style="color: #008080">151</span>&nbsp;<span style="color: #000000">&nbsp;&nbsp;&nbsp;&nbsp;</span><span style="color: #0000ff">End&nbsp;Sub</span><span style="color: #000000"><br /></span><span style="color: #008080">152</span>&nbsp;<span style="color: #000000">&nbsp;<br /></span><span style="color: #008080">153</span>&nbsp;<span style="color: #000000">&nbsp;&nbsp;&nbsp;&nbsp;</span><span style="color: #008000">'</span><span style="color: #008000">&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&nbsp;&nbsp;</span><span style="color: #008000"><br /></span><span style="color: #008080">154</span>&nbsp;<span style="color: #008000"></span><span style="color: #000000">&nbsp;&nbsp;&nbsp;&nbsp;</span><span style="color: #008000">'</span><span style="color: #008000">&nbsp;Name:&nbsp;Class_Initialize&nbsp;(Private)</span><span style="color: #008000"><br /></span><span style="color: #008080">155</span>&nbsp;<span style="color: #008000"></span><span style="color: #000000">&nbsp;&nbsp;&nbsp;&nbsp;</span><span style="color: #008000">'</span><span style="color: #008000">&nbsp;</span><span style="color: #008000"><br /></span><span style="color: #008080">156</span>&nbsp;<span style="color: #008000"></span><span style="color: #000000">&nbsp;&nbsp;&nbsp;&nbsp;</span><span style="color: #008000">'</span><span style="color: #008000">&nbsp;Purpose:&nbsp;Release&nbsp;the&nbsp;CDO&nbsp;Object</span><span style="color: #008000"><br /></span><span style="color: #008080">157</span>&nbsp;<span style="color: #008000"></span><span style="color: #000000">&nbsp;&nbsp;&nbsp;&nbsp;</span><span style="color: #008000">'</span><span style="color: #008000">&nbsp;</span><span style="color: #008000"><br /></span><span style="color: #008080">158</span>&nbsp;<span style="color: #008000"></span><span style="color: #000000">&nbsp;&nbsp;&nbsp;&nbsp;</span><span style="color: #008000">'</span><span style="color: #008000">&nbsp;Parameters:&nbsp;-</span><span style="color: #008000"><br /></span><span style="color: #008080">159</span>&nbsp;<span style="color: #008000"></span><span style="color: #000000">&nbsp;&nbsp;&nbsp;&nbsp;</span><span style="color: #008000">'</span><span style="color: #008000">&nbsp;</span><span style="color: #008000"><br /></span><span style="color: #008080">160</span>&nbsp;<span style="color: #008000"></span><span style="color: #000000">&nbsp;&nbsp;&nbsp;&nbsp;</span><span style="color: #008000">'</span><span style="color: #008000">&nbsp;Return:&nbsp;-</span><span style="color: #008000"><br /></span><span style="color: #008080">161</span>&nbsp;<span style="color: #008000"></span><span style="color: #000000">&nbsp;&nbsp;&nbsp;&nbsp;</span><span style="color: #008000">'</span><span style="color: #008000">&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;</span><span style="color: #008000"><br /></span><span style="color: #008080">162</span>&nbsp;<span style="color: #008000"></span><span style="color: #000000">&nbsp;&nbsp;&nbsp;&nbsp;</span><span style="color: #0000ff">Private</span><span style="color: #000000">&nbsp;</span><span style="color: #0000ff">Sub</span><span style="color: #000000">&nbsp;Class_Terminate<br /></span><span style="color: #008080">163</span>&nbsp;<span style="color: #000000">&nbsp;&nbsp;&nbsp;&nbsp;</span><span style="color: #008000">'</span><span style="color: #008000">&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&nbsp;</span><span style="color: #008000"><br /></span><span style="color: #008080">164</span>&nbsp;<span style="color: #008000"></span><span style="color: #000000">&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;</span><span style="color: #0000ff">Set</span><span style="color: #000000">&nbsp;oMessage&nbsp;</span><span style="color: #000000">=</span><span style="color: #000000">&nbsp;</span><span style="color: #0000ff">Nothing</span><span style="color: #000000"><br /></span><span style="color: #008080">165</span>&nbsp;<span style="color: #000000">&nbsp;&nbsp;&nbsp;&nbsp;</span><span style="color: #0000ff">End&nbsp;Sub</span><span style="color: #000000"><br /></span><span style="color: #008080">166</span>&nbsp;<span style="color: #000000">&nbsp;<br /></span><span style="color: #008080">167</span>&nbsp;<span style="color: #000000">&nbsp;&nbsp;&nbsp;&nbsp;</span><span style="color: #008000">'</span><span style="color: #008000">&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;</span><span style="color: #008000"><br /></span><span style="color: #008080">168</span>&nbsp;<span style="color: #008000"></span><span style="color: #000000">&nbsp;&nbsp;&nbsp;&nbsp;</span><span style="color: #008000">'</span><span style="color: #008000">&nbsp;Name:&nbsp;Property&nbsp;cdoSendUsing&nbsp;(Private)</span><span style="color: #008000"><br /></span><span style="color: #008080">169</span>&nbsp;<span style="color: #008000"></span><span style="color: #000000">&nbsp;&nbsp;&nbsp;&nbsp;</span><span style="color: #008000">'</span><span style="color: #008000">&nbsp;</span><span style="color: #008000"><br /></span><span style="color: #008080">170</span>&nbsp;<span style="color: #008000"></span><span style="color: #000000">&nbsp;&nbsp;&nbsp;&nbsp;</span><span style="color: #008000">'</span><span style="color: #008000">&nbsp;Purpose:&nbsp;Readonly&nbsp;property&nbsp;configuration&nbsp;for&nbsp;SMTP&nbsp;Service</span><span style="color: #008000"><br /></span><span style="color: #008080">171</span>&nbsp;<span style="color: #008000"></span><span style="color: #000000">&nbsp;&nbsp;&nbsp;&nbsp;</span><span style="color: #008000">'</span><span style="color: #008000">&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;</span><span style="color: #008000"><br /></span><span style="color: #008080">172</span>&nbsp;<span style="color: #008000"></span><span style="color: #000000">&nbsp;&nbsp;&nbsp;&nbsp;</span><span style="color: #0000ff">Private</span><span style="color: #000000">&nbsp;</span><span style="color: #0000ff">Property</span><span style="color: #000000">&nbsp;</span><span style="color: #0000ff">Get</span><span style="color: #000000">&nbsp;cdoSendUsing&nbsp;&nbsp;</span><span style="color: #008000">'</span><span style="color: #008000">As&nbsp;Integer</span><span style="color: #008000"><br /></span><span style="color: #008080">173</span>&nbsp;<span style="color: #008000"></span><span style="color: #000000">&nbsp;&nbsp;&nbsp;&nbsp;</span><span style="color: #008000">'</span><span style="color: #008000">&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&nbsp;&nbsp;&nbsp;&nbsp;</span><span style="color: #008000"><br /></span><span style="color: #008080">174</span>&nbsp;<span style="color: #008000"></span><span style="color: #000000">&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;cdoSendUsing&nbsp;</span><span style="color: #000000">=</span><span style="color: #000000">&nbsp;</span><span style="color: #800080">2</span><span style="color: #000000">&nbsp;&nbsp;&nbsp;&nbsp;</span><span style="color: #008000">'</span><span style="color: #008000">Use&nbsp;SMTP&nbsp;Over&nbsp;The&nbsp;Network</span><span style="color: #008000"><br /></span><span style="color: #008080">175</span>&nbsp;<span style="color: #008000"></span><span style="color: #000000">&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;</span><span style="color: #008000">'</span><span style="color: #008000">cdoSendUsing&nbsp;=&nbsp;1&nbsp;&nbsp;&nbsp;&nbsp;'Use&nbsp;Local&nbsp;SMTP&nbsp;Service&nbsp;Pickup&nbsp;Directory</span><span style="color: #008000"><br /></span><span style="color: #008080">176</span>&nbsp;<span style="color: #008000"></span><span style="color: #000000">&nbsp;&nbsp;&nbsp;&nbsp;</span><span style="color: #0000ff">End&nbsp;Property</span><span style="color: #000000"><br /></span><span style="color: #008080">177</span>&nbsp;<span style="color: #000000">&nbsp;<br /></span><span style="color: #008080">178</span>&nbsp;<span style="color: #000000">&nbsp;&nbsp;&nbsp;&nbsp;</span><span style="color: #008000">'</span><span style="color: #008000">&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;</span><span style="color: #008000"><br /></span><span style="color: #008080">179</span>&nbsp;<span style="color: #008000"></span><span style="color: #000000">&nbsp;&nbsp;&nbsp;&nbsp;</span><span style="color: #008000">'</span><span style="color: #008000">&nbsp;Name:&nbsp;Property&nbsp;cdoTimeout&nbsp;(Private)</span><span style="color: #008000"><br /></span><span style="color: #008080">180</span>&nbsp;<span style="color: #008000"></span><span style="color: #000000">&nbsp;&nbsp;&nbsp;&nbsp;</span><span style="color: #008000">'</span><span style="color: #008000">&nbsp;</span><span style="color: #008000"><br /></span><span style="color: #008080">181</span>&nbsp;<span style="color: #008000"></span><span style="color: #000000">&nbsp;&nbsp;&nbsp;&nbsp;</span><span style="color: #008000">'</span><span style="color: #008000">&nbsp;Purpose:&nbsp;Maximum&nbsp;time&nbsp;in&nbsp;seconds&nbsp;CDO&nbsp;will&nbsp;try&nbsp;to&nbsp;establish&nbsp;a&nbsp;connection</span><span style="color: #008000"><br /></span><span style="color: #008080">182</span>&nbsp;<span style="color: #008000"></span><span style="color: #000000">&nbsp;&nbsp;&nbsp;&nbsp;</span><span style="color: #008000">'</span><span style="color: #008000">&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;</span><span style="color: #008000"><br /></span><span style="color: #008080">183</span>&nbsp;<span style="color: #008000"></span><span style="color: #000000">&nbsp;&nbsp;&nbsp;&nbsp;</span><span style="color: #0000ff">Private</span><span style="color: #000000">&nbsp;</span><span style="color: #0000ff">Property</span><span style="color: #000000">&nbsp;</span><span style="color: #0000ff">Get</span><span style="color: #000000">&nbsp;cdoTimeout&nbsp;&nbsp;</span><span style="color: #008000">'</span><span style="color: #008000">As&nbsp;Integer</span><span style="color: #008000"><br /></span><span style="color: #008080">184</span>&nbsp;<span style="color: #008000"></span><span style="color: #000000">&nbsp;&nbsp;&nbsp;&nbsp;</span><span style="color: #008000">'</span><span style="color: #008000">&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&nbsp;&nbsp;&nbsp;&nbsp;</span><span style="color: #008000"><br /></span><span style="color: #008080">185</span>&nbsp;<span style="color: #008000"></span><span style="color: #000000">&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;</span><span style="color: #008000">'</span><span style="color: #008000">cdoTimeout&nbsp;=&nbsp;15&nbsp;&nbsp;&nbsp;&nbsp;'Seconds</span><span style="color: #008000"><br /></span><span style="color: #008080">186</span>&nbsp;<span style="color: #008000"></span><span style="color: #000000">&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;cdoTimeout&nbsp;</span><span style="color: #000000">=</span><span style="color: #000000">&nbsp;</span><span style="color: #800080">45</span><span style="color: #000000">&nbsp;&nbsp;&nbsp;&nbsp;</span><span style="color: #008000">'</span><span style="color: #008000">Seconds</span><span style="color: #008000"><br /></span><span style="color: #008080">187</span>&nbsp;<span style="color: #008000"></span><span style="color: #000000">&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;</span><span style="color: #008000">'</span><span style="color: #008000">cdoTimeout&nbsp;=&nbsp;75&nbsp;&nbsp;&nbsp;&nbsp;'Seconds</span><span style="color: #008000"><br /></span><span style="color: #008080">188</span>&nbsp;<span style="color: #008000"></span><span style="color: #000000">&nbsp;&nbsp;&nbsp;&nbsp;</span><span style="color: #0000ff">End&nbsp;Property</span><span style="color: #000000"><br /></span><span style="color: #008080">189</span>&nbsp;<span style="color: #000000">&nbsp;<br /></span><span style="color: #008080">190</span>&nbsp;<span style="color: #000000">&nbsp;&nbsp;&nbsp;&nbsp;</span><span style="color: #008000">'</span><span style="color: #008000">&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;</span><span style="color: #008000"><br /></span><span style="color: #008080">191</span>&nbsp;<span style="color: #008000"></span><span style="color: #000000">&nbsp;&nbsp;&nbsp;&nbsp;</span><span style="color: #008000">'</span><span style="color: #008000">&nbsp;Name:&nbsp;Property&nbsp;cdoAuthenticationType&nbsp;(Private)</span><span style="color: #008000"><br /></span><span style="color: #008080">192</span>&nbsp;<span style="color: #008000"></span><span style="color: #000000">&nbsp;&nbsp;&nbsp;&nbsp;</span><span style="color: #008000">'</span><span style="color: #008000">&nbsp;</span><span style="color: #008000"><br /></span><span style="color: #008080">193</span>&nbsp;<span style="color: #008000"></span><span style="color: #000000">&nbsp;&nbsp;&nbsp;&nbsp;</span><span style="color: #008000">'</span><span style="color: #008000">&nbsp;Purpose:&nbsp;Type&nbsp;of&nbsp;Authentication&nbsp;to&nbsp;be&nbsp;used</span><span style="color: #008000"><br /></span><span style="color: #008080">194</span>&nbsp;<span style="color: #008000"></span><span style="color: #000000">&nbsp;&nbsp;&nbsp;&nbsp;</span><span style="color: #008000">'</span><span style="color: #008000">&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&nbsp;&nbsp;&nbsp;&nbsp;</span><span style="color: #008000"><br /></span><span style="color: #008080">195</span>&nbsp;<span style="color: #008000"></span><span style="color: #000000">&nbsp;&nbsp;&nbsp;&nbsp;</span><span style="color: #0000ff">Private</span><span style="color: #000000">&nbsp;</span><span style="color: #0000ff">Property</span><span style="color: #000000">&nbsp;</span><span style="color: #0000ff">Get</span><span style="color: #000000">&nbsp;cdoAuthenticationType&nbsp;&nbsp;</span><span style="color: #008000">'</span><span style="color: #008000">As&nbsp;Integer</span><span style="color: #008000"><br /></span><span style="color: #008080">196</span>&nbsp;<span style="color: #008000"></span><span style="color: #000000">&nbsp;&nbsp;&nbsp;&nbsp;</span><span style="color: #008000">'</span><span style="color: #008000">&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&nbsp;&nbsp;&nbsp;&nbsp;</span><span style="color: #008000"><br /></span><span style="color: #008080">197</span>&nbsp;<span style="color: #008000"></span><span style="color: #000000">&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;</span><span style="color: #008000">'</span><span style="color: #008000">cdoAuthenticationType&nbsp;=&nbsp;0&nbsp;&nbsp;&nbsp;&nbsp;'No&nbsp;Authentication</span><span style="color: #008000"><br /></span><span style="color: #008080">198</span>&nbsp;<span style="color: #008000"></span><span style="color: #000000">&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;cdoAuthenticationType&nbsp;</span><span style="color: #000000">=</span><span style="color: #000000">&nbsp;</span><span style="color: #800080">1</span><span style="color: #000000">&nbsp;&nbsp;&nbsp;&nbsp;</span><span style="color: #008000">'</span><span style="color: #008000">Basic&nbsp;Authentication</span><span style="color: #008000"><br /></span><span style="color: #008080">199</span>&nbsp;<span style="color: #008000"></span><span style="color: #000000">&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;</span><span style="color: #008000">'</span><span style="color: #008000">cdoAuthenticationType&nbsp;=&nbsp;2&nbsp;&nbsp;&nbsp;&nbsp;'NTML&nbsp;Authentication</span><span style="color: #008000"><br /></span><span style="color: #008080">200</span>&nbsp;<span style="color: #008000"></span><span style="color: #000000">&nbsp;&nbsp;&nbsp;&nbsp;</span><span style="color: #0000ff">End&nbsp;Property</span><span style="color: #000000"><br /></span><span style="color: #008080">201</span>&nbsp;<span style="color: #000000">&nbsp;<br /></span><span style="color: #008080">202</span>&nbsp;<span style="color: #000000">&nbsp;&nbsp;&nbsp;&nbsp;</span><span style="color: #008000">'</span><span style="color: #008000">&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;</span><span style="color: #008000"><br /></span><span style="color: #008080">203</span>&nbsp;<span style="color: #008000"></span><span style="color: #000000">&nbsp;&nbsp;&nbsp;&nbsp;</span><span style="color: #008000">'</span><span style="color: #008000">&nbsp;Name:&nbsp;Property&nbsp;cdoOutgoingMailSMTP&nbsp;(Private)</span><span style="color: #008000"><br /></span><span style="color: #008080">204</span>&nbsp;<span style="color: #008000"></span><span style="color: #000000">&nbsp;&nbsp;&nbsp;&nbsp;</span><span style="color: #008000">'</span><span style="color: #008000">&nbsp;</span><span style="color: #008000"><br /></span><span style="color: #008080">205</span>&nbsp;<span style="color: #008000"></span><span style="color: #000000">&nbsp;&nbsp;&nbsp;&nbsp;</span><span style="color: #008000">'</span><span style="color: #008000">&nbsp;Purpose:&nbsp;Server&nbsp;Port</span><span style="color: #008000"><br /></span><span style="color: #008080">206</span>&nbsp;<span style="color: #008000"></span><span style="color: #000000">&nbsp;&nbsp;&nbsp;&nbsp;</span><span style="color: #008000">'</span><span style="color: #008000">&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&nbsp;&nbsp;&nbsp;&nbsp;</span><span style="color: #008000"><br /></span><span style="color: #008080">207</span>&nbsp;<span style="color: #008000"></span><span style="color: #000000">&nbsp;&nbsp;&nbsp;&nbsp;</span><span style="color: #0000ff">Private</span><span style="color: #000000">&nbsp;</span><span style="color: #0000ff">Property</span><span style="color: #000000">&nbsp;</span><span style="color: #0000ff">Get</span><span style="color: #000000">&nbsp;cdoOutgoingMailSMTP&nbsp;&nbsp;</span><span style="color: #008000">'</span><span style="color: #008000">As&nbsp;Integer</span><span style="color: #008000"><br /></span><span style="color: #008080">208</span>&nbsp;<span style="color: #008000"></span><span style="color: #000000">&nbsp;&nbsp;&nbsp;&nbsp;</span><span style="color: #008000">'</span><span style="color: #008000">&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&nbsp;&nbsp;&nbsp;&nbsp;</span><span style="color: #008000"><br /></span><span style="color: #008080">209</span>&nbsp;<span style="color: #008000"></span><span style="color: #000000">&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;</span><span style="color: #0000ff">If</span><span style="color: #000000">&nbsp;</span><span style="color: #0000ff">InStr</span><span style="color: #000000">(</span><span style="color: #800080">1</span><span style="color: #000000">,&nbsp;</span><span style="color: #0000ff">Lcase</span><span style="color: #000000">(Me.From),&nbsp;</span><span style="color: #800000">"</span><span style="color: #800000">@gmail</span><span style="color: #800000">"</span><span style="color: #000000">)&nbsp;</span><span style="color: #000000">&lt;&gt;</span><span style="color: #000000">&nbsp;</span><span style="color: #800080">0</span><span style="color: #000000">&nbsp;</span><span style="color: #0000ff">Then</span><span style="color: #000000"><br /></span><span style="color: #008080">210</span>&nbsp;<span style="color: #000000">&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;cdoOutgoingMailSMTP&nbsp;</span><span style="color: #000000">=</span><span style="color: #000000">&nbsp;</span><span style="color: #800080">465</span><span style="color: #000000"><br /></span><span style="color: #008080">211</span>&nbsp;<span style="color: #000000">&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;</span><span style="color: #0000ff">ElseIf</span><span style="color: #000000">&nbsp;</span><span style="color: #0000ff">InStr</span><span style="color: #000000">(</span><span style="color: #800080">1</span><span style="color: #000000">,&nbsp;</span><span style="color: #0000ff">LCase</span><span style="color: #000000">(Me.From),&nbsp;</span><span style="color: #800000">"</span><span style="color: #800000">@aol</span><span style="color: #800000">"</span><span style="color: #000000">)&nbsp;</span><span style="color: #000000">&lt;&gt;</span><span style="color: #000000">&nbsp;</span><span style="color: #800080">0</span><span style="color: #000000">&nbsp;</span><span style="color: #0000ff">Then</span><span style="color: #000000"><br /></span><span style="color: #008080">212</span>&nbsp;<span style="color: #000000">&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;cdoOutgoingMailSMTP&nbsp;</span><span style="color: #000000">=</span><span style="color: #000000">&nbsp;</span><span style="color: #800080">587</span><span style="color: #000000"><br /></span><span style="color: #008080">213</span>&nbsp;<span style="color: #000000">&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;</span><span style="color: #0000ff">Else</span><span style="color: #000000"><br /></span><span style="color: #008080">214</span>&nbsp;<span style="color: #000000">&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;cdoOutgoingMailSMTP&nbsp;</span><span style="color: #000000">=</span><span style="color: #000000">&nbsp;</span><span style="color: #800080">25</span><span style="color: #000000"><br /></span><span style="color: #008080">215</span>&nbsp;<span style="color: #000000">&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;</span><span style="color: #0000ff">End</span><span style="color: #000000">&nbsp;</span><span style="color: #0000ff">If</span><span style="color: #000000"><br /></span><span style="color: #008080">216</span>&nbsp;<span style="color: #000000">&nbsp;&nbsp;&nbsp;&nbsp;</span><span style="color: #0000ff">End&nbsp;Property</span><span style="color: #000000"><br /></span><span style="color: #008080">217</span>&nbsp;<span style="color: #000000">&nbsp;<br /></span><span style="color: #008080">218</span>&nbsp;<span style="color: #000000">&nbsp;&nbsp;&nbsp;&nbsp;</span><span style="color: #008000">'</span><span style="color: #008000">&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;</span><span style="color: #008000"><br /></span><span style="color: #008080">219</span>&nbsp;<span style="color: #008000"></span><span style="color: #000000">&nbsp;&nbsp;&nbsp;&nbsp;</span><span style="color: #008000">'</span><span style="color: #008000">&nbsp;Name:&nbsp;Property&nbsp;cdoSMTPServer&nbsp;(Private)</span><span style="color: #008000"><br /></span><span style="color: #008080">220</span>&nbsp;<span style="color: #008000"></span><span style="color: #000000">&nbsp;&nbsp;&nbsp;&nbsp;</span><span style="color: #008000">'</span><span style="color: #008000">&nbsp;</span><span style="color: #008000"><br /></span><span style="color: #008080">221</span>&nbsp;<span style="color: #008000"></span><span style="color: #000000">&nbsp;&nbsp;&nbsp;&nbsp;</span><span style="color: #008000">'</span><span style="color: #008000">&nbsp;Purpose:&nbsp;Name/IP&nbsp;of&nbsp;SMTP&nbsp;Server</span><span style="color: #008000"><br /></span><span style="color: #008080">222</span>&nbsp;<span style="color: #008000"></span><span style="color: #000000">&nbsp;&nbsp;&nbsp;&nbsp;</span><span style="color: #008000">'</span><span style="color: #008000">&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&nbsp;&nbsp;&nbsp;&nbsp;</span><span style="color: #008000"><br /></span><span style="color: #008080">223</span>&nbsp;<span style="color: #008000"></span><span style="color: #000000">&nbsp;&nbsp;&nbsp;&nbsp;</span><span style="color: #0000ff">Private</span><span style="color: #000000">&nbsp;</span><span style="color: #0000ff">Property</span><span style="color: #000000">&nbsp;</span><span style="color: #0000ff">Get</span><span style="color: #000000">&nbsp;cdoSMTPServer&nbsp;&nbsp;</span><span style="color: #008000">'</span><span style="color: #008000">As&nbsp;String</span><span style="color: #008000"><br /></span><span style="color: #008080">224</span>&nbsp;<span style="color: #008000"></span><span style="color: #000000">&nbsp;&nbsp;&nbsp;&nbsp;</span><span style="color: #008000">'</span><span style="color: #008000">&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&nbsp;&nbsp;&nbsp;&nbsp;</span><span style="color: #008000"><br /></span><span style="color: #008080">225</span>&nbsp;<span style="color: #008000"></span><span style="color: #000000">&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;</span><span style="color: #0000ff">If</span><span style="color: #000000">&nbsp;</span><span style="color: #0000ff">InStr</span><span style="color: #000000">(</span><span style="color: #800080">1</span><span style="color: #000000">,&nbsp;</span><span style="color: #0000ff">LCase</span><span style="color: #000000">(Me.From),&nbsp;</span><span style="color: #800000">"</span><span style="color: #800000">@yahoo</span><span style="color: #800000">"</span><span style="color: #000000">)&nbsp;</span><span style="color: #000000">&lt;&gt;</span><span style="color: #000000">&nbsp;</span><span style="color: #800080">0</span><span style="color: #000000">&nbsp;</span><span style="color: #0000ff">Then</span><span style="color: #000000"><br /></span><span style="color: #008080">226</span>&nbsp;<span style="color: #000000">&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;cdoSMTPServer&nbsp;</span><span style="color: #000000">=</span><span style="color: #000000">&nbsp;</span><span style="color: #800000">"</span><span style="color: #800000">smtp.mail.yahoo.com</span><span style="color: #800000">"</span><span style="color: #000000"><br /></span><span style="color: #008080">227</span>&nbsp;<span style="color: #000000">&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;</span><span style="color: #0000ff">ElseIf</span><span style="color: #000000">&nbsp;</span><span style="color: #0000ff">InStr</span><span style="color: #000000">(</span><span style="color: #800080">1</span><span style="color: #000000">,&nbsp;</span><span style="color: #0000ff">LCase</span><span style="color: #000000">(Me.From),&nbsp;</span><span style="color: #800000">"</span><span style="color: #800000">@gmail</span><span style="color: #800000">"</span><span style="color: #000000">)&nbsp;</span><span style="color: #000000">&lt;&gt;</span><span style="color: #000000">&nbsp;</span><span style="color: #800080">0</span><span style="color: #000000">&nbsp;</span><span style="color: #0000ff">Then</span><span style="color: #000000"><br /></span><span style="color: #008080">228</span>&nbsp;<span style="color: #000000">&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;cdoSMTPServer&nbsp;</span><span style="color: #000000">=</span><span style="color: #000000">&nbsp;</span><span style="color: #800000">"</span><span style="color: #800000">smtp.gmail.com</span><span style="color: #800000">"</span><span style="color: #000000"><br /></span><span style="color: #008080">229</span>&nbsp;<span style="color: #000000">&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;</span><span style="color: #0000ff">ElseIf</span><span style="color: #000000">&nbsp;</span><span style="color: #0000ff">InStr</span><span style="color: #000000">(</span><span style="color: #800080">1</span><span style="color: #000000">,&nbsp;</span><span style="color: #0000ff">LCase</span><span style="color: #000000">(Me.From),&nbsp;</span><span style="color: #800000">"</span><span style="color: #800000">@hotmail</span><span style="color: #800000">"</span><span style="color: #000000">)&nbsp;</span><span style="color: #000000">&lt;&gt;</span><span style="color: #000000">&nbsp;</span><span style="color: #800080">0</span><span style="color: #000000">&nbsp;</span><span style="color: #0000ff">Or</span><span style="color: #000000">&nbsp;_<br /></span><span style="color: #008080">230</span>&nbsp;<span style="color: #000000">&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;</span><span style="color: #0000ff">InStr</span><span style="color: #000000">(</span><span style="color: #800080">1</span><span style="color: #000000">,&nbsp;</span><span style="color: #0000ff">LCase</span><span style="color: #000000">(Me.From),&nbsp;</span><span style="color: #800000">"</span><span style="color: #800000">@live</span><span style="color: #800000">"</span><span style="color: #000000">)&nbsp;</span><span style="color: #000000">&lt;&gt;</span><span style="color: #000000">&nbsp;</span><span style="color: #800080">0</span><span style="color: #000000">&nbsp;</span><span style="color: #0000ff">Then</span><span style="color: #000000"><br /></span><span style="color: #008080">231</span>&nbsp;<span style="color: #000000">&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;cdoSMTPServer&nbsp;</span><span style="color: #000000">=</span><span style="color: #000000">&nbsp;</span><span style="color: #800000">"</span><span style="color: #800000">smtp.live.com</span><span style="color: #800000">"</span><span style="color: #000000"><br /></span><span style="color: #008080">232</span>&nbsp;<span style="color: #000000">&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;</span><span style="color: #0000ff">ElseIf</span><span style="color: #000000">&nbsp;</span><span style="color: #0000ff">InStr</span><span style="color: #000000">(</span><span style="color: #800080">1</span><span style="color: #000000">,&nbsp;</span><span style="color: #0000ff">LCase</span><span style="color: #000000">(Me.From),&nbsp;</span><span style="color: #800000">"</span><span style="color: #800000">@aol</span><span style="color: #800000">"</span><span style="color: #000000">)&nbsp;</span><span style="color: #000000">&lt;&gt;</span><span style="color: #000000">&nbsp;</span><span style="color: #800080">0</span><span style="color: #000000">&nbsp;</span><span style="color: #0000ff">Then</span><span style="color: #000000"><br /></span><span style="color: #008080">233</span>&nbsp;<span style="color: #000000">&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;cdoSMTPServer&nbsp;</span><span style="color: #000000">=</span><span style="color: #000000">&nbsp;</span><span style="color: #800000">"</span><span style="color: #800000">smtp.aol.com</span><span style="color: #800000">"</span><span style="color: #000000"><br /></span><span style="color: #008080">234</span>&nbsp;<span style="color: #000000">&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;</span><span style="color: #0000ff">End</span><span style="color: #000000">&nbsp;</span><span style="color: #0000ff">If</span><span style="color: #000000">&nbsp;&nbsp;&nbsp;&nbsp;<br /></span><span style="color: #008080">235</span>&nbsp;<span style="color: #000000">&nbsp;&nbsp;&nbsp;&nbsp;</span><span style="color: #0000ff">End&nbsp;Property</span><span style="color: #000000"><br /></span><span style="color: #008080">236</span>&nbsp;<span style="color: #000000">&nbsp;<br /></span><span style="color: #008080">237</span>&nbsp;<span style="color: #000000">&nbsp;&nbsp;&nbsp;&nbsp;</span><span style="color: #008000">'</span><span style="color: #008000">&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;</span><span style="color: #008000"><br /></span><span style="color: #008080">238</span>&nbsp;<span style="color: #008000"></span><span style="color: #000000">&nbsp;&nbsp;&nbsp;&nbsp;</span><span style="color: #008000">'</span><span style="color: #008000">&nbsp;Name:&nbsp;Property&nbsp;cdoUseSSL&nbsp;(Private)</span><span style="color: #008000"><br /></span><span style="color: #008080">239</span>&nbsp;<span style="color: #008000"></span><span style="color: #000000">&nbsp;&nbsp;&nbsp;&nbsp;</span><span style="color: #008000">'</span><span style="color: #008000">&nbsp;</span><span style="color: #008000"><br /></span><span style="color: #008080">240</span>&nbsp;<span style="color: #008000"></span><span style="color: #000000">&nbsp;&nbsp;&nbsp;&nbsp;</span><span style="color: #008000">'</span><span style="color: #008000">&nbsp;Purpose:&nbsp;Setting&nbsp;for&nbsp;SMTP&nbsp;Server's&nbsp;use&nbsp;of&nbsp;SSL&nbsp;(Boolean)</span><span style="color: #008000"><br /></span><span style="color: #008080">241</span>&nbsp;<span style="color: #008000"></span><span style="color: #000000">&nbsp;&nbsp;&nbsp;&nbsp;</span><span style="color: #008000">'</span><span style="color: #008000">&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;</span><span style="color: #008000"><br /></span><span style="color: #008080">242</span>&nbsp;<span style="color: #008000"></span><span style="color: #000000">&nbsp;&nbsp;&nbsp;&nbsp;</span><span style="color: #0000ff">Private</span><span style="color: #000000">&nbsp;</span><span style="color: #0000ff">Property</span><span style="color: #000000">&nbsp;</span><span style="color: #0000ff">Get</span><span style="color: #000000">&nbsp;cdoUseSSL&nbsp;&nbsp;</span><span style="color: #008000">'</span><span style="color: #008000">As&nbsp;Boolean</span><span style="color: #008000"><br /></span><span style="color: #008080">243</span>&nbsp;<span style="color: #008000"></span><span style="color: #000000">&nbsp;&nbsp;&nbsp;&nbsp;</span><span style="color: #008000">'</span><span style="color: #008000">&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&nbsp;&nbsp;&nbsp;&nbsp;</span><span style="color: #008000"><br /></span><span style="color: #008080">244</span>&nbsp;<span style="color: #008000"></span><span style="color: #000000">&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;cdoUseSSL&nbsp;</span><span style="color: #000000">=</span><span style="color: #000000">&nbsp;</span><span style="color: #0000ff">True</span><span style="color: #000000"><br /></span><span style="color: #008080">245</span>&nbsp;<span style="color: #000000">&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;</span><span style="color: #0000ff">If</span><span style="color: #000000">&nbsp;</span><span style="color: #0000ff">InStr</span><span style="color: #000000">(</span><span style="color: #800080">1</span><span style="color: #000000">,&nbsp;</span><span style="color: #0000ff">LCase</span><span style="color: #000000">(Me.From),&nbsp;</span><span style="color: #800000">"</span><span style="color: #800000">@aol</span><span style="color: #800000">"</span><span style="color: #000000">)&nbsp;</span><span style="color: #000000">&lt;&gt;</span><span style="color: #000000">&nbsp;</span><span style="color: #800080">0</span><span style="color: #000000">&nbsp;</span><span style="color: #0000ff">Then</span><span style="color: #000000"><br /></span><span style="color: #008080">246</span>&nbsp;<span style="color: #000000">&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;cdoUseSSL&nbsp;</span><span style="color: #000000">=</span><span style="color: #000000">&nbsp;</span><span style="color: #0000ff">False</span><span style="color: #000000"><br /></span><span style="color: #008080">247</span>&nbsp;<span style="color: #000000">&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;</span><span style="color: #0000ff">End</span><span style="color: #000000">&nbsp;</span><span style="color: #0000ff">If</span><span style="color: #000000"><br /></span><span style="color: #008080">248</span>&nbsp;<span style="color: #000000">&nbsp;&nbsp;&nbsp;&nbsp;</span><span style="color: #0000ff">End&nbsp;Property</span><span style="color: #000000"><br /></span><span style="color: #008080">249</span>&nbsp;<span style="color: #000000">&nbsp;<br /></span><span style="color: #008080">250</span>&nbsp;<span style="color: #000000">&nbsp;&nbsp;&nbsp;&nbsp;</span><span style="color: #008000">'</span><span style="color: #008000">&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;</span><span style="color: #008000"><br /></span><span style="color: #008080">251</span>&nbsp;<span style="color: #008000"></span><span style="color: #000000">&nbsp;&nbsp;&nbsp;&nbsp;</span><span style="color: #008000">'</span><span style="color: #008000">&nbsp;Name:&nbsp;Property&nbsp;From&nbsp;(Public)</span><span style="color: #008000"><br /></span><span style="color: #008080">252</span>&nbsp;<span style="color: #008000"></span><span style="color: #000000">&nbsp;&nbsp;&nbsp;&nbsp;</span><span style="color: #008000">'</span><span style="color: #008000">&nbsp;</span><span style="color: #008000"><br /></span><span style="color: #008080">253</span>&nbsp;<span style="color: #008000"></span><span style="color: #000000">&nbsp;&nbsp;&nbsp;&nbsp;</span><span style="color: #008000">'</span><span style="color: #008000">&nbsp;Purpose:&nbsp;Sender's&nbsp;Email&nbsp;ID</span><span style="color: #008000"><br /></span><span style="color: #008080">254</span>&nbsp;<span style="color: #008000"></span><span style="color: #000000">&nbsp;&nbsp;&nbsp;&nbsp;</span><span style="color: #008000">'</span><span style="color: #008000">&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;</span><span style="color: #008000"><br /></span><span style="color: #008080">255</span>&nbsp;<span style="color: #008000"></span><span style="color: #000000">&nbsp;&nbsp;&nbsp;&nbsp;</span><span style="color: #0000ff">Public</span><span style="color: #000000">&nbsp;</span><span style="color: #0000ff">Property</span><span style="color: #000000">&nbsp;</span><span style="color: #0000ff">Let</span><span style="color: #000000">&nbsp;From(&nbsp;ByVal&nbsp;Val&nbsp;)<br /></span><span style="color: #008080">256</span>&nbsp;<span style="color: #000000">&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;strFrom&nbsp;</span><span style="color: #000000">=</span><span style="color: #000000">&nbsp;Val<br /></span><span style="color: #008080">257</span>&nbsp;<span style="color: #000000">&nbsp;&nbsp;&nbsp;&nbsp;</span><span style="color: #0000ff">End&nbsp;Property</span><span style="color: #000000"><br /></span><span style="color: #008080">258</span>&nbsp;<span style="color: #000000">&nbsp;&nbsp;&nbsp;&nbsp;</span><span style="color: #0000ff">Public</span><span style="color: #000000">&nbsp;</span><span style="color: #0000ff">Property</span><span style="color: #000000">&nbsp;</span><span style="color: #0000ff">Get</span><span style="color: #000000">&nbsp;From&nbsp;</span><span style="color: #008000">'</span><span style="color: #008000">As&nbsp;String</span><span style="color: #008000"><br /></span><span style="color: #008080">259</span>&nbsp;<span style="color: #008000"></span><span style="color: #000000">&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;From&nbsp;</span><span style="color: #000000">=</span><span style="color: #000000">&nbsp;strFrom<br /></span><span style="color: #008080">260</span>&nbsp;<span style="color: #000000">&nbsp;&nbsp;&nbsp;&nbsp;</span><span style="color: #0000ff">End&nbsp;Property</span><span style="color: #000000"><br /></span><span style="color: #008080">261</span>&nbsp;<span style="color: #000000">&nbsp;<br /></span><span style="color: #008080">262</span>&nbsp;<span style="color: #000000"></span><span style="color: #0000ff">End</span><span style="color: #000000">&nbsp;Class<br /></span><span style="color: #008080">263</span>&nbsp;<span style="color: #000000">&nbsp;<br /></span><span style="color: #008080">264</span>&nbsp;<span style="color: #000000"></span><span style="color: #008000">'</span><span style="color: #008000">&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&nbsp;&nbsp;</span><span style="color: #008000"><br /></span><span style="color: #008080">265</span>&nbsp;<span style="color: #008000">'</span><span style="color: #008000">&nbsp;Name:&nbsp;Sub&nbsp;Email&nbsp;(Public)</span><span style="color: #008000"><br /></span><span style="color: #008080">266</span>&nbsp;<span style="color: #008000">'</span><span style="color: #008000">&nbsp;</span><span style="color: #008000"><br /></span><span style="color: #008080">267</span>&nbsp;<span style="color: #008000">'</span><span style="color: #008000">&nbsp;Purpose:&nbsp;Sends&nbsp;an&nbsp;Email&nbsp;Using&nbsp;CDO&nbsp;to&nbsp;a&nbsp;recipient</span><span style="color: #008000"><br /></span><span style="color: #008080">268</span>&nbsp;<span style="color: #008000">'</span><span style="color: #008000">&nbsp;</span><span style="color: #008000"><br /></span><span style="color: #008080">269</span>&nbsp;<span style="color: #008000">'</span><span style="color: #008000">&nbsp;Parameters:</span><span style="color: #008000"><br /></span><span style="color: #008080">270</span>&nbsp;<span style="color: #008000">'</span><span style="color: #008000">&nbsp;&nbsp;&nbsp;&nbsp;sEmailID:&nbsp;Sender's&nbsp;Mail&nbsp;ID&nbsp;String</span><span style="color: #008000"><br /></span><span style="color: #008080">271</span>&nbsp;<span style="color: #008000">'</span><span style="color: #008000">&nbsp;&nbsp;&nbsp;&nbsp;sPassword:&nbsp;Sender's&nbsp;Password&nbsp;String</span><span style="color: #008000"><br /></span><span style="color: #008080">272</span>&nbsp;<span style="color: #008000">'</span><span style="color: #008000">&nbsp;&nbsp;&nbsp;&nbsp;sTo:&nbsp;Recipient's&nbsp;Mail&nbsp;ID&nbsp;String</span><span style="color: #008000"><br /></span><span style="color: #008080">273</span>&nbsp;<span style="color: #008000">'</span><span style="color: #008000">&nbsp;&nbsp;&nbsp;&nbsp;sSubject:&nbsp;Subject&nbsp;String</span><span style="color: #008000"><br /></span><span style="color: #008080">274</span>&nbsp;<span style="color: #008000">'</span><span style="color: #008000">&nbsp;&nbsp;&nbsp;&nbsp;sBody:&nbsp;Body&nbsp;Message&nbsp;String</span><span style="color: #008000"><br /></span><span style="color: #008080">275</span>&nbsp;<span style="color: #008000">'</span><span style="color: #008000">&nbsp;</span><span style="color: #008000"><br /></span><span style="color: #008080">276</span>&nbsp;<span style="color: #008000">'</span><span style="color: #008000">&nbsp;Return:&nbsp;-</span><span style="color: #008000"><br /></span><span style="color: #008080">277</span>&nbsp;<span style="color: #008000">'</span><span style="color: #008000">&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&nbsp;</span><span style="color: #008000"><br /></span><span style="color: #008080">278</span>&nbsp;<span style="color: #008000"></span><span style="color: #0000ff">Public</span><span style="color: #000000">&nbsp;</span><span style="color: #0000ff">Function</span><span style="color: #000000">&nbsp;Email(&nbsp;EmailID,&nbsp;Password,&nbsp;Recipient,&nbsp;CC,&nbsp;Subject,&nbsp;Body&nbsp;)<br /></span><span style="color: #008080">279</span>&nbsp;<span style="color: #000000"></span><span style="color: #008000">'</span><span style="color: #008000">&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&nbsp;</span><span style="color: #008000"><br /></span><span style="color: #008080">280</span>&nbsp;<span style="color: #008000"></span><span style="color: #000000">&nbsp;&nbsp;&nbsp;&nbsp;</span><span style="color: #0000ff">Set</span><span style="color: #000000">&nbsp;Email&nbsp;</span><span style="color: #000000">=</span><span style="color: #000000">&nbsp;</span><span style="color: #0000ff">New</span><span style="color: #000000">&nbsp;clsSendMail<br /></span><span style="color: #008080">281</span>&nbsp;<span style="color: #000000">&nbsp;&nbsp;&nbsp;&nbsp;</span><span style="color: #0000ff">With</span><span style="color: #000000">&nbsp;Email<br /></span><span style="color: #008080">282</span>&nbsp;<span style="color: #000000">&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;.Send&nbsp;EmailID,&nbsp;Password,&nbsp;Recipient,&nbsp;CC,&nbsp;Subject,&nbsp;Body<br /></span><span style="color: #008080">283</span>&nbsp;<span style="color: #000000">&nbsp;&nbsp;&nbsp;&nbsp;</span><span style="color: #0000ff">End</span><span style="color: #000000">&nbsp;</span><span style="color: #0000ff">with</span><span style="color: #000000">&nbsp;<br /></span><span style="color: #008080">284</span>&nbsp;<span style="color: #000000"></span><span style="color: #0000ff">End&nbsp;Function</span><span style="color: #000000"><br /></span><span style="color: #008080">285</span>&nbsp;<span style="color: #000000">&nbsp;<br /></span><span style="color: #008080">286</span>&nbsp;<span style="color: #000000"></span><span style="color: #008000">'</span><span style="color: #008000">&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&nbsp;&nbsp;</span><span style="color: #008000"><br /></span><span style="color: #008080">287</span>&nbsp;<span style="color: #008000">'</span><span style="color: #008000">&nbsp;Name:&nbsp;Sub&nbsp;EmailFromFile&nbsp;(Public)</span><span style="color: #008000"><br /></span><span style="color: #008080">288</span>&nbsp;<span style="color: #008000">'</span><span style="color: #008000">&nbsp;</span><span style="color: #008000"><br /></span><span style="color: #008080">289</span>&nbsp;<span style="color: #008000">'</span><span style="color: #008000">&nbsp;Purpose:&nbsp;Sends&nbsp;an&nbsp;Email&nbsp;Using&nbsp;CDO&nbsp;to&nbsp;a&nbsp;recipient</span><span style="color: #008000"><br /></span><span style="color: #008080">290</span>&nbsp;<span style="color: #008000">'</span><span style="color: #008000">&nbsp;</span><span style="color: #008000"><br /></span><span style="color: #008080">291</span>&nbsp;<span style="color: #008000">'</span><span style="color: #008000">&nbsp;Parameters:</span><span style="color: #008000"><br /></span><span style="color: #008080">292</span>&nbsp;<span style="color: #008000">'</span><span style="color: #008000">&nbsp;&nbsp;&nbsp;&nbsp;sEmailID:&nbsp;Sender's&nbsp;Mail&nbsp;ID&nbsp;String</span><span style="color: #008000"><br /></span><span style="color: #008080">293</span>&nbsp;<span style="color: #008000">'</span><span style="color: #008000">&nbsp;&nbsp;&nbsp;&nbsp;sPassword:&nbsp;Sender's&nbsp;Password&nbsp;String</span><span style="color: #008000"><br /></span><span style="color: #008080">294</span>&nbsp;<span style="color: #008000">'</span><span style="color: #008000">&nbsp;&nbsp;&nbsp;&nbsp;sTo:&nbsp;Recipient's&nbsp;Mail&nbsp;ID&nbsp;String</span><span style="color: #008000"><br /></span><span style="color: #008080">295</span>&nbsp;<span style="color: #008000">'</span><span style="color: #008000">&nbsp;&nbsp;&nbsp;&nbsp;sSubject:&nbsp;Subject&nbsp;String</span><span style="color: #008000"><br /></span><span style="color: #008080">296</span>&nbsp;<span style="color: #008000">'</span><span style="color: #008000">&nbsp;&nbsp;&nbsp;&nbsp;sCompleteFilePath:&nbsp;Text&nbsp;File&nbsp;containing&nbsp;the&nbsp;Body&nbsp;Message</span><span style="color: #008000"><br /></span><span style="color: #008080">297</span>&nbsp;<span style="color: #008000">'</span><span style="color: #008000">&nbsp;</span><span style="color: #008000"><br /></span><span style="color: #008080">298</span>&nbsp;<span style="color: #008000">'</span><span style="color: #008000">&nbsp;Return:&nbsp;-</span><span style="color: #008000"><br /></span><span style="color: #008080">299</span>&nbsp;<span style="color: #008000">'</span><span style="color: #008000">&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&nbsp;</span><span style="color: #008000"><br /></span><span style="color: #008080">300</span>&nbsp;<span style="color: #008000"></span><span style="color: #0000ff">Public</span><span style="color: #000000">&nbsp;</span><span style="color: #0000ff">Function</span><span style="color: #000000">&nbsp;EmailFromFile(&nbsp;EmailID,&nbsp;Password,&nbsp;Recipient,&nbsp;CC,&nbsp;Subject,&nbsp;sCompleteFilePath&nbsp;)<br /></span><span style="color: #008080">301</span>&nbsp;<span style="color: #000000"></span><span style="color: #008000">'</span><span style="color: #008000">&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&nbsp;</span><span style="color: #008000"><br /></span><span style="color: #008080">302</span>&nbsp;<span style="color: #008000"></span><span style="color: #000000">&nbsp;&nbsp;&nbsp;&nbsp;</span><span style="color: #0000ff">Set</span><span style="color: #000000">&nbsp;EmailFromFile&nbsp;</span><span style="color: #000000">=</span><span style="color: #000000">&nbsp;</span><span style="color: #0000ff">New</span><span style="color: #000000">&nbsp;clsSendMail<br /></span><span style="color: #008080">303</span>&nbsp;<span style="color: #000000">&nbsp;&nbsp;&nbsp;&nbsp;</span><span style="color: #0000ff">With</span><span style="color: #000000">&nbsp;EmailFromFile<br /></span><span style="color: #008080">304</span>&nbsp;<span style="color: #000000">&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;.LoadBodyMessage&nbsp;sCompleteFilePath<br /></span><span style="color: #008080">305</span>&nbsp;<span style="color: #000000">&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;.Send&nbsp;EmailID,&nbsp;Password,&nbsp;Recipient,&nbsp;CC,&nbsp;Subject,&nbsp;</span><span style="color: #800000">""</span><span style="color: #000000"><br /></span><span style="color: #008080">306</span>&nbsp;<span style="color: #000000">&nbsp;&nbsp;&nbsp;&nbsp;</span><span style="color: #0000ff">End</span><span style="color: #000000">&nbsp;</span><span style="color: #0000ff">with</span><span style="color: #000000">&nbsp;<br /></span><span style="color: #008080">307</span>&nbsp;<span style="color: #000000"></span><span style="color: #0000ff">End&nbsp;Function</span></div></div></div>
<p>&nbsp;</p>
<p>&nbsp;</p>
<p>use: </p>
<p>&nbsp;</p>
<div class="cnblogs_code" onclick="cnblogs_code_show('ad9c83c7-fa63-475e-8a70-6efd4c0219eb')"><img class="code_img_closed" id="code_img_closed_ad9c83c7-fa63-475e-8a70-6efd4c0219eb" style="display: none" src="http://images.cnblogs.com/OutliningIndicators/ContractedBlock.gif"  alt="" /><img class="code_img_opened" id="code_img_opened_ad9c83c7-fa63-475e-8a70-6efd4c0219eb" onclick="cnblogs_code_hide('ad9c83c7-fa63-475e-8a70-6efd4c0219eb',event)" src="http://images.cnblogs.com/OutliningIndicators/ExpandedBlockStart.gif"><span class="cnblogs_code_collapse">代码</span>
<div id="cnblogs_code_open_ad9c83c7-fa63-475e-8a70-6efd4c0219eb">
<div><!--<br/ /><br/ />Code highlighting produced by Actipro CodeHighlighter (freeware)<br/ />http://www.CodeHighlighter.com/<br/ /><br/ />--><span style="color: #008080">&nbsp;1</span>&nbsp;<span style="color: #008000">'</span><span style="color: #008000">TEXT</span><span style="color: #008000"><br /></span><span style="color: #008080">&nbsp;2</span>&nbsp;<span style="color: #008000"></span><span style="color: #000000"><br /></span><span style="color: #008080">&nbsp;3</span>&nbsp;<span style="color: #000000"></span><span style="color: #008000">'</span><span style="color: #008000">Call&nbsp;Email(&nbsp;Sender's_ID,&nbsp;Sender's_Password,&nbsp;Send_To,&nbsp;CC_To,&nbsp;Subject,&nbsp;Message&nbsp;)</span><span style="color: #008000"><br /></span><span style="color: #008080">&nbsp;4</span>&nbsp;<span style="color: #008000"></span><span style="color: #000000">Email&nbsp;</span><span style="color: #800000">"</span><span style="color: #800000">XYZ@AOL.com</span><span style="color: #800000">"</span><span style="color: #000000">,&nbsp;</span><span style="color: #800000">"</span><span style="color: #800000">myPassword</span><span style="color: #800000">"</span><span style="color: #000000">,&nbsp;</span><span style="color: #800000">"</span><span style="color: #800000">ABC@Gmail.com</span><span style="color: #800000">"</span><span style="color: #000000">,&nbsp;_<br /></span><span style="color: #008080">&nbsp;5</span>&nbsp;<span style="color: #000000">&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;</span><span style="color: #800000">""</span><span style="color: #000000">,&nbsp;</span><span style="color: #800000">"</span><span style="color: #800000">Subject</span><span style="color: #800000">"</span><span style="color: #000000">,&nbsp;</span><span style="color: #800000">"</span><span style="color: #800000">Hello,&nbsp;this&nbsp;is&nbsp;a&nbsp;test&nbsp;mail.</span><span style="color: #800000">"</span><span style="color: #008000">'</span><span style="color: #008000">HTML</span><span style="color: #008000"><br /></span><span style="color: #008080">&nbsp;6</span>&nbsp;<span style="color: #008000"></span><span style="color: #000000"><br /></span><span style="color: #008080">&nbsp;7</span>&nbsp;<span style="color: #000000"></span><span style="color: #008000">'</span><span style="color: #008000">Call&nbsp;Email(&nbsp;Sender's_ID,&nbsp;Sender's_Password,&nbsp;Send_To,&nbsp;CC_To,&nbsp;Subject,&nbsp;Message&nbsp;)</span><span style="color: #008000"><br /></span><span style="color: #008080">&nbsp;8</span>&nbsp;<span style="color: #008000"></span><span style="color: #000000">Email&nbsp;</span><span style="color: #800000">"</span><span style="color: #800000">XYZ@AOL.com</span><span style="color: #800000">"</span><span style="color: #000000">,&nbsp;</span><span style="color: #800000">"</span><span style="color: #800000">myPassword</span><span style="color: #800000">"</span><span style="color: #000000">,&nbsp;</span><span style="color: #800000">"</span><span style="color: #800000">ABC@Gmail.com</span><span style="color: #800000">"</span><span style="color: #000000">,&nbsp;</span><span style="color: #800000">""</span><span style="color: #000000">,&nbsp;_<br /></span><span style="color: #008080">&nbsp;9</span>&nbsp;<span style="color: #000000">&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;</span><span style="color: #800000">"</span><span style="color: #800000">Subject</span><span style="color: #800000">"</span><span style="color: #000000">,&nbsp;</span><span style="color: #800000">"</span><span style="color: #800000">&lt;h1&gt;Hello&lt;/h1&gt;&lt;p&gt;Test&nbsp;Mail&lt;/p&gt;</span><span style="color: #800000">"</span><span style="color: #008000">'</span><span style="color: #008000">Call&nbsp;Email(&nbsp;Sender's_ID,&nbsp;Sender's_Password,&nbsp;Send_To,&nbsp;CC_To,&nbsp;Subject,&nbsp;Message&nbsp;)</span><span style="color: #008000"><br /></span><span style="color: #008080">10</span>&nbsp;<span style="color: #008000"></span><span style="color: #000000">Email&nbsp;</span><span style="color: #800000">"</span><span style="color: #800000">XYZ@AOL.com</span><span style="color: #800000">"</span><span style="color: #000000">,&nbsp;</span><span style="color: #800000">"</span><span style="color: #800000">myPassword</span><span style="color: #800000">"</span><span style="color: #000000">,&nbsp;</span><span style="color: #800000">"</span><span style="color: #800000">ABC@Gmail.com</span><span style="color: #800000">"</span><span style="color: #000000">,&nbsp;</span><span style="color: #800000">""</span><span style="color: #000000">,&nbsp;_<br /></span><span style="color: #008080">11</span>&nbsp;<span style="color: #000000">&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;</span><span style="color: #800000">"</span><span style="color: #800000">Subject</span><span style="color: #800000">"</span><span style="color: #000000">,&nbsp;</span><span style="color: #800000">"</span><span style="color: #800000">C:\MyTestMail.txt</span><span style="color: #800000">"</span><span style="color: #000000">Email&nbsp;</span><span style="color: #800000">"</span><span style="color: #800000">Me@MeEmail.Com</span><span style="color: #800000">"</span><span style="color: #000000">,&nbsp;</span><span style="color: #800000">"</span><span style="color: #800000">mePassword</span><span style="color: #800000">"</span><span style="color: #000000">,&nbsp;</span><span style="color: #800000">"</span><span style="color: #800000">You@YouEmail.Com;Them@TheirEmail.Com</span><span style="color: #800000">"</span><span style="color: #000000">,&nbsp;_<br /></span><span style="color: #008080">12</span>&nbsp;<span style="color: #000000">&nbsp;&nbsp;&nbsp;&nbsp;</span><span style="color: #800000">"</span><span style="color: #800000">CC@YouCC.Com;CC@MeCC.Com</span><span style="color: #800000">"</span><span style="color: #000000">,&nbsp;</span><span style="color: #800000">"</span><span style="color: #800000">Test&nbsp;Subject</span><span style="color: #800000">"</span><span style="color: #000000">,&nbsp;</span><span style="color: #800000">"</span><span style="color: #800000">Test&nbsp;Message</span><span style="color: #800000">"</span></div></div></div>
<p>&nbsp;</p>
<p>&nbsp;</p>
<p>NET2.0 C#</p>
<p>&nbsp;</p>
<div class="cnblogs_code" onclick="cnblogs_code_show('0a35cd72-883f-45bc-8ca4-5cab8123f273')"><img class="code_img_closed" id="code_img_closed_0a35cd72-883f-45bc-8ca4-5cab8123f273" style="display: none" src="http://images.cnblogs.com/OutliningIndicators/ContractedBlock.gif"  alt="" /><img class="code_img_opened" id="code_img_opened_0a35cd72-883f-45bc-8ca4-5cab8123f273" onclick="cnblogs_code_hide('0a35cd72-883f-45bc-8ca4-5cab8123f273',event)" src="http://images.cnblogs.com/OutliningIndicators/ExpandedBlockStart.gif"><span class="cnblogs_code_collapse">代码</span>
<div id="cnblogs_code_open_0a35cd72-883f-45bc-8ca4-5cab8123f273">
<div><!--<br/ /><br/ />Code highlighting produced by Actipro CodeHighlighter (freeware)<br/ />http://www.CodeHighlighter.com/<br/ /><br/ />--><span style="color: #008080">&nbsp;1</span>&nbsp;<span style="color: #0000ff">using</span><span style="color: #000000">&nbsp;System;<br /></span><span style="color: #008080">&nbsp;2</span>&nbsp;<span style="color: #000000"></span><span style="color: #0000ff">using</span><span style="color: #000000">&nbsp;System.Collections.Generic;<br /></span><span style="color: #008080">&nbsp;3</span>&nbsp;<span style="color: #000000"></span><span style="color: #0000ff">using</span><span style="color: #000000">&nbsp;System.ComponentModel;<br /></span><span style="color: #008080">&nbsp;4</span>&nbsp;<span style="color: #000000"></span><span style="color: #0000ff">using</span><span style="color: #000000">&nbsp;System.Data;<br /></span><span style="color: #008080">&nbsp;5</span>&nbsp;<span style="color: #000000"></span><span style="color: #0000ff">using</span><span style="color: #000000">&nbsp;System.Drawing;<br /></span><span style="color: #008080">&nbsp;6</span>&nbsp;<span style="color: #000000"></span><span style="color: #0000ff">using</span><span style="color: #000000">&nbsp;System.Text;<br /></span><span style="color: #008080">&nbsp;7</span>&nbsp;<span style="color: #000000"></span><span style="color: #0000ff">using</span><span style="color: #000000">&nbsp;System.Windows.Forms;<br /></span><span style="color: #008080">&nbsp;8</span>&nbsp;<span style="color: #000000"></span><span style="color: #0000ff">using</span><span style="color: #000000">&nbsp;System.Net;<br /></span><span style="color: #008080">&nbsp;9</span>&nbsp;<span style="color: #000000"></span><span style="color: #0000ff">using</span><span style="color: #000000">&nbsp;System.Net.Mail;<br /></span><span style="color: #008080">10</span>&nbsp;<span style="color: #000000"></span><span style="color: #0000ff">using</span><span style="color: #000000">&nbsp;System.Net.Mime;&nbsp;<br /></span><span style="color: #008080">11</span>&nbsp;<span style="color: #000000"></span><span style="color: #008000">//</span><span style="color: #008000">Mime&nbsp;is&nbsp;Not&nbsp;necerrary&nbsp;if&nbsp;you&nbsp;dont&nbsp;change&nbsp;the&nbsp;msgview&nbsp;and&nbsp;<br /></span><span style="color: #008080">12</span>&nbsp;<span style="color: #008000"></span><span style="color: #008000">//</span><span style="color: #008000">if&nbsp;you&nbsp;dont&nbsp;add&nbsp;custom/extra&nbsp;headers&nbsp;</span><span style="color: #008000"><br /></span><span style="color: #008080">13</span>&nbsp;<span style="color: #008000"></span><span style="color: #0000ff">using</span><span style="color: #000000">&nbsp;System.Threading;<br /></span><span style="color: #008080">14</span>&nbsp;<span style="color: #000000"><br /></span><span style="color: #008080">15</span>&nbsp;<span style="color: #000000"></span><span style="color: #0000ff">namespace</span><span style="color: #000000">&nbsp;SendMailUsingGmail<br /></span><span style="color: #008080">16</span>&nbsp;<span style="color: #000000">{<br /></span><span style="color: #008080">17</span>&nbsp;<span style="color: #000000">&nbsp;&nbsp;&nbsp;&nbsp;</span><span style="color: #0000ff">public</span><span style="color: #000000">&nbsp;</span><span style="color: #0000ff">partial</span><span style="color: #000000">&nbsp;</span><span style="color: #0000ff">class</span><span style="color: #000000">&nbsp;Form1&nbsp;:&nbsp;Form<br /></span><span style="color: #008080">18</span>&nbsp;<span style="color: #000000">&nbsp;&nbsp;&nbsp;&nbsp;{<br /></span><span style="color: #008080">19</span>&nbsp;<span style="color: #000000">&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;</span><span style="color: #0000ff">public</span><span style="color: #000000">&nbsp;Form1()<br /></span><span style="color: #008080">20</span>&nbsp;<span style="color: #000000">&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;{<br /></span><span style="color: #008080">21</span>&nbsp;<span style="color: #000000">&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;InitializeComponent();<br /></span><span style="color: #008080">22</span>&nbsp;<span style="color: #000000">&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;}<br /></span><span style="color: #008080">23</span>&nbsp;<span style="color: #000000">&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;<br /></span><span style="color: #008080">24</span>&nbsp;<span style="color: #000000">&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;</span><span style="color: #0000ff">static</span><span style="color: #000000">&nbsp;</span><span style="color: #0000ff">bool</span><span style="color: #000000">&nbsp;mailSent&nbsp;</span><span style="color: #000000">=</span><span style="color: #000000">&nbsp;</span><span style="color: #0000ff">false</span><span style="color: #000000">;<br /></span><span style="color: #008080">25</span>&nbsp;<span style="color: #000000"><br /></span><span style="color: #008080">26</span>&nbsp;<span style="color: #000000">&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;</span><span style="color: #0000ff">public</span><span style="color: #000000">&nbsp;</span><span style="color: #0000ff">void</span><span style="color: #000000">&nbsp;SendMail()<br /></span><span style="color: #008080">27</span>&nbsp;<span style="color: #000000">&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;{<br /></span><span style="color: #008080">28</span>&nbsp;<span style="color: #000000">&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;</span><span style="color: #008000">//</span><span style="color: #008000">Builed&nbsp;The&nbsp;MSG</span><span style="color: #008000"><br /></span><span style="color: #008080">29</span>&nbsp;<span style="color: #008000"></span><span style="color: #000000">&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;System.Net.Mail.MailMessage&nbsp;msg&nbsp;</span><span style="color: #000000">=</span><span style="color: #000000">&nbsp;</span><span style="color: #0000ff">new</span><span style="color: #000000">&nbsp;System.Net.Mail.MailMessage();<br /></span><span style="color: #008080">30</span>&nbsp;<span style="color: #000000">&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;msg.To.Add(</span><span style="color: #800000">"</span><span style="color: #800000">reciver@gmail.com</span><span style="color: #800000">"</span><span style="color: #000000">);<br /></span><span style="color: #008080">31</span>&nbsp;<span style="color: #000000">&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;msg.To.Add(</span><span style="color: #800000">"</span><span style="color: #800000">another.reciver@yahoo.com</span><span style="color: #800000">"</span><span style="color: #000000">);<br /></span><span style="color: #008080">32</span>&nbsp;<span style="color: #000000">&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;msg.From&nbsp;</span><span style="color: #000000">=</span><span style="color: #000000">&nbsp;</span><span style="color: #0000ff">new</span><span style="color: #000000">&nbsp;MailAddress(dummy@gmail.com,&nbsp;<br /></span><span style="color: #008080">33</span>&nbsp;<span style="color: #000000">&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;</span><span style="color: #800000">"</span><span style="color: #800000">One&nbsp;Ghost</span><span style="color: #800000">"</span><span style="color: #000000">,System.Text.Encoding.UTF8);<br /></span><span style="color: #008080">34</span>&nbsp;<span style="color: #000000">&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;msg.Subject&nbsp;</span><span style="color: #000000">=</span><span style="color: #000000">&nbsp;</span><span style="color: #800000">"</span><span style="color: #800000">Test&nbsp;mail&nbsp;using&nbsp;.net2.0</span><span style="color: #800000">"</span><span style="color: #000000">;<br /></span><span style="color: #008080">35</span>&nbsp;<span style="color: #000000">&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;msg.SubjectEncoding&nbsp;</span><span style="color: #000000">=</span><span style="color: #000000">&nbsp;System.Text.Encoding.UTF8;<br /></span><span style="color: #008080">36</span>&nbsp;<span style="color: #000000">&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;msg.Body&nbsp;</span><span style="color: #000000">=</span><span style="color: #000000">&nbsp;</span><span style="color: #800000">"</span><span style="color: #800000">This&nbsp;is&nbsp;my&nbsp;msg&nbsp;Body</span><span style="color: #800000">"</span><span style="color: #000000">;<br /></span><span style="color: #008080">37</span>&nbsp;<span style="color: #000000">&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;msg.BodyEncoding&nbsp;</span><span style="color: #000000">=</span><span style="color: #000000">&nbsp;System.Text.Encoding.UTF8;<br /></span><span style="color: #008080">38</span>&nbsp;<span style="color: #000000">&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;msg.IsBodyHtml&nbsp;</span><span style="color: #000000">=</span><span style="color: #000000">&nbsp;</span><span style="color: #0000ff">false</span><span style="color: #000000">;<br /></span><span style="color: #008080">39</span>&nbsp;<span style="color: #000000">&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;msg.Priority&nbsp;</span><span style="color: #000000">=</span><span style="color: #000000">&nbsp;MailPriority.High;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;<br /></span><span style="color: #008080">40</span>&nbsp;<span style="color: #000000">&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;<br /></span><span style="color: #008080">41</span>&nbsp;<span style="color: #000000">&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;</span><span style="color: #008000">//</span><span style="color: #008000">Add&nbsp;the&nbsp;Creddentials</span><span style="color: #008000"><br /></span><span style="color: #008080">42</span>&nbsp;<span style="color: #008000"></span><span style="color: #000000">&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;SmtpClient&nbsp;client&nbsp;</span><span style="color: #000000">=</span><span style="color: #000000">&nbsp;</span><span style="color: #0000ff">new</span><span style="color: #000000">&nbsp;SmtpClient();<br /></span><span style="color: #008080">43</span>&nbsp;<span style="color: #000000">&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;client.Credentials&nbsp;</span><span style="color: #000000">=</span><span style="color: #000000">&nbsp;</span><span style="color: #0000ff">new</span><span style="color: #000000">&nbsp;System.Net.NetworkCredential<br /></span><span style="color: #008080">44</span>&nbsp;<span style="color: #000000">&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;(</span><span style="color: #800000">"</span><span style="color: #800000">dummy@gmail.com</span><span style="color: #800000">"</span><span style="color: #000000">,&nbsp;</span><span style="color: #800000">"</span><span style="color: #800000">SecretPass</span><span style="color: #800000">"</span><span style="color: #000000">);<br /></span><span style="color: #008080">45</span>&nbsp;<span style="color: #000000">&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;client.Port&nbsp;</span><span style="color: #000000">=</span><span style="color: #000000">&nbsp;</span><span style="color: #800080">587</span><span style="color: #000000">;</span><span style="color: #008000">//</span><span style="color: #008000">or&nbsp;use&nbsp;587&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;</span><span style="color: #008000"><br /></span><span style="color: #008080">46</span>&nbsp;<span style="color: #008000"></span><span style="color: #000000">&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;client.Host&nbsp;</span><span style="color: #000000">=</span><span style="color: #000000">&nbsp;</span><span style="color: #800000">"</span><span style="color: #800000">smtp.gmail.com</span><span style="color: #800000">"</span><span style="color: #000000">;<br /></span><span style="color: #008080">47</span>&nbsp;<span style="color: #000000">&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;client.EnableSsl&nbsp;</span><span style="color: #000000">=</span><span style="color: #000000">&nbsp;</span><span style="color: #0000ff">true</span><span style="color: #000000">;<br /></span><span style="color: #008080">48</span>&nbsp;<span style="color: #000000">&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;client.SendCompleted&nbsp;</span><span style="color: #000000">+=</span><span style="color: #000000">&nbsp;</span><span style="color: #0000ff">new</span><span style="color: #000000">&nbsp;SendCompletedEventHandler<br /></span><span style="color: #008080">49</span>&nbsp;<span style="color: #000000">&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;(client_SendCompleted);<br /></span><span style="color: #008080">50</span>&nbsp;<span style="color: #000000">&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;</span><span style="color: #0000ff">object</span><span style="color: #000000">&nbsp;userState</span><span style="color: #000000">=</span><span style="color: #000000">msg;<br /></span><span style="color: #008080">51</span>&nbsp;<span style="color: #000000">&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;</span><span style="color: #0000ff">try</span><span style="color: #000000"><br /></span><span style="color: #008080">52</span>&nbsp;<span style="color: #000000">&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;{<br /></span><span style="color: #008080">53</span>&nbsp;<span style="color: #000000">&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;</span><span style="color: #008000">//</span><span style="color: #008000">you&nbsp;can&nbsp;also&nbsp;call&nbsp;client.Send(msg)</span><span style="color: #008000"><br /></span><span style="color: #008080">54</span>&nbsp;<span style="color: #008000"></span><span style="color: #000000">&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;client.SendAsync(msg,&nbsp;userState);&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;<br /></span><span style="color: #008080">55</span>&nbsp;<span style="color: #000000">&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;}<br /></span><span style="color: #008080">56</span>&nbsp;<span style="color: #000000">&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;</span><span style="color: #0000ff">catch</span><span style="color: #000000">&nbsp;(System.Net.Mail.SmtpException&nbsp;ex)<br /></span><span style="color: #008080">57</span>&nbsp;<span style="color: #000000">&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;{<br /></span><span style="color: #008080">58</span>&nbsp;<span style="color: #000000">&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;MessageBox.Show(ex.Message,&nbsp;</span><span style="color: #800000">"</span><span style="color: #800000">Send&nbsp;Mail&nbsp;Error</span><span style="color: #800000">"</span><span style="color: #000000">);<br /></span><span style="color: #008080">59</span>&nbsp;<span style="color: #000000">&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;}<br /></span><span style="color: #008080">60</span>&nbsp;<span style="color: #000000">&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;}<br /></span><span style="color: #008080">61</span>&nbsp;<span style="color: #000000"><br /></span><span style="color: #008080">62</span>&nbsp;<span style="color: #000000">&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;</span><span style="color: #0000ff">void</span><span style="color: #000000">&nbsp;client_SendCompleted(</span><span style="color: #0000ff">object</span><span style="color: #000000">&nbsp;sender,&nbsp;AsyncCompletedEventArgs&nbsp;e)<br /></span><span style="color: #008080">63</span>&nbsp;<span style="color: #000000">&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;{<br /></span><span style="color: #008080">64</span>&nbsp;<span style="color: #000000">&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;MailMessage&nbsp;mail&nbsp;</span><span style="color: #000000">=</span><span style="color: #000000">&nbsp;(MailMessage)e.UserState;<br /></span><span style="color: #008080">65</span>&nbsp;<span style="color: #000000">&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;</span><span style="color: #0000ff">string</span><span style="color: #000000">&nbsp;subject&nbsp;</span><span style="color: #000000">=</span><span style="color: #000000">&nbsp;mail.Subject;<br /></span><span style="color: #008080">66</span>&nbsp;<span style="color: #000000"><br /></span><span style="color: #008080">67</span>&nbsp;<span style="color: #000000">&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;</span><span style="color: #0000ff">if</span><span style="color: #000000">&nbsp;(e.Cancelled)<br /></span><span style="color: #008080">68</span>&nbsp;<span style="color: #000000">&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;{<br /></span><span style="color: #008080">69</span>&nbsp;<span style="color: #000000">&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;</span><span style="color: #0000ff">string</span><span style="color: #000000">&nbsp;cancelled&nbsp;</span><span style="color: #000000">=</span><span style="color: #000000">&nbsp;</span><span style="color: #0000ff">string</span><span style="color: #000000">.Format(</span><span style="color: #800000">"</span><span style="color: #800000">[{0}]&nbsp;Send&nbsp;canceled.</span><span style="color: #800000">"</span><span style="color: #000000">,&nbsp;subject);<br /></span><span style="color: #008080">70</span>&nbsp;<span style="color: #000000">&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;MessageBox.Show(cancelled);&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;<br /></span><span style="color: #008080">71</span>&nbsp;<span style="color: #000000">&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;}<br /></span><span style="color: #008080">72</span>&nbsp;<span style="color: #000000">&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;</span><span style="color: #0000ff">if</span><span style="color: #000000">&nbsp;(e.Error&nbsp;</span><span style="color: #000000">!=</span><span style="color: #000000">&nbsp;</span><span style="color: #0000ff">null</span><span style="color: #000000">)<br /></span><span style="color: #008080">73</span>&nbsp;<span style="color: #000000">&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;{<br /></span><span style="color: #008080">74</span>&nbsp;<span style="color: #000000">&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;</span><span style="color: #0000ff">string</span><span style="color: #000000">&nbsp;error&nbsp;</span><span style="color: #000000">=</span><span style="color: #000000">&nbsp;String.Format(</span><span style="color: #800000">"</span><span style="color: #800000">[{0}]&nbsp;{1}</span><span style="color: #800000">"</span><span style="color: #000000">,&nbsp;subject,&nbsp;e.Error.ToString());<br /></span><span style="color: #008080">75</span>&nbsp;<span style="color: #000000">&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;MessageBox.Show(error);&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;<br /></span><span style="color: #008080">76</span>&nbsp;<span style="color: #000000">&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;}<br /></span><span style="color: #008080">77</span>&nbsp;<span style="color: #000000">&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;</span><span style="color: #0000ff">else</span><span style="color: #000000"><br /></span><span style="color: #008080">78</span>&nbsp;<span style="color: #000000">&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;{<br /></span><span style="color: #008080">79</span>&nbsp;<span style="color: #000000">&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;MessageBox.Show(</span><span style="color: #800000">"</span><span style="color: #800000">Message&nbsp;sent.</span><span style="color: #800000">"</span><span style="color: #000000">);<br /></span><span style="color: #008080">80</span>&nbsp;<span style="color: #000000">&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;}<br /></span><span style="color: #008080">81</span>&nbsp;<span style="color: #000000">&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;mailSent&nbsp;</span><span style="color: #000000">=</span><span style="color: #000000">&nbsp;</span><span style="color: #0000ff">true</span><span style="color: #000000">;<br /></span><span style="color: #008080">82</span>&nbsp;<span style="color: #000000">&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;}<br /></span><span style="color: #008080">83</span>&nbsp;<span style="color: #000000"><br /></span><span style="color: #008080">84</span>&nbsp;<span style="color: #000000">&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;</span><span style="color: #0000ff">private</span><span style="color: #000000">&nbsp;</span><span style="color: #0000ff">void</span><span style="color: #000000">&nbsp;button1_Click(</span><span style="color: #0000ff">object</span><span style="color: #000000">&nbsp;sender,&nbsp;EventArgs&nbsp;e)<br /></span><span style="color: #008080">85</span>&nbsp;<span style="color: #000000">&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;{<br /></span><span style="color: #008080">86</span>&nbsp;<span style="color: #000000">&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;</span><span style="color: #0000ff">this</span><span style="color: #000000">.SendMail();<br /></span><span style="color: #008080">87</span>&nbsp;<span style="color: #000000">&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;}<br /></span><span style="color: #008080">88</span>&nbsp;<span style="color: #000000">&nbsp;&nbsp;&nbsp;&nbsp;}<br /></span><span style="color: #008080">89</span>&nbsp;<span style="color: #000000">}</span></div></div></div>
<p>&nbsp;</p>
<p>&nbsp;</p>
<div class="cnblogs_code" onclick="cnblogs_code_show('cfb98b44-ba90-4cd4-b774-62126324ecc1')"><img class="code_img_closed" id="code_img_closed_cfb98b44-ba90-4cd4-b774-62126324ecc1" style="display: none" src="http://images.cnblogs.com/OutliningIndicators/ContractedBlock.gif"  alt="" /><img class="code_img_opened" id="code_img_opened_cfb98b44-ba90-4cd4-b774-62126324ecc1" onclick="cnblogs_code_hide('cfb98b44-ba90-4cd4-b774-62126324ecc1',event)" src="http://images.cnblogs.com/OutliningIndicators/ExpandedBlockStart.gif"><span class="cnblogs_code_collapse">代码</span>
<div id="cnblogs_code_open_cfb98b44-ba90-4cd4-b774-62126324ecc1">
<div><!--<br/ /><br/ />Code highlighting produced by Actipro CodeHighlighter (freeware)<br/ />http://www.CodeHighlighter.com/<br/ /><br/ />--><span style="color: #008080">&nbsp;1</span>&nbsp;<span style="color: #008000">//</span><span style="color: #008000">This&nbsp;is&nbsp;fully&nbsp;working&nbsp;tested&nbsp;code.&nbsp;Copy&nbsp;and&nbsp;paste&nbsp;the&nbsp;code<br /></span><span style="color: #008080">&nbsp;2</span>&nbsp;<span style="color: #008000"></span><span style="color: #008000">//</span><span style="color: #008000">Edit&nbsp;some&nbsp;parts(UserName,&nbsp;password)&nbsp;and&nbsp;ENJOY!</span><span style="color: #008000"><br /></span><span style="color: #008080">&nbsp;3</span>&nbsp;<span style="color: #008000"></span><span style="color: #0000ff">public</span><span style="color: #000000">&nbsp;</span><span style="color: #0000ff">string</span><span style="color: #000000">&nbsp;sendMail&nbsp;(</span><span style="color: #0000ff">string</span><span style="color: #000000">&nbsp;from,&nbsp;</span><span style="color: #0000ff">string</span><span style="color: #000000">&nbsp;to,&nbsp;</span><span style="color: #0000ff">string</span><span style="color: #000000">&nbsp;cc,&nbsp;<br /></span><span style="color: #008080">&nbsp;4</span>&nbsp;<span style="color: #000000">&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;</span><span style="color: #0000ff">string</span><span style="color: #000000">&nbsp;bcc,&nbsp;</span><span style="color: #0000ff">string</span><span style="color: #000000">&nbsp;subject,&nbsp;</span><span style="color: #0000ff">string</span><span style="color: #000000">&nbsp;body)&nbsp;{<br /></span><span style="color: #008080">&nbsp;5</span>&nbsp;<span style="color: #000000">&nbsp;&nbsp;&nbsp;&nbsp;</span><span style="color: #008000">//</span><span style="color: #008000">&nbsp;Mail&nbsp;initialization</span><span style="color: #008000"><br /></span><span style="color: #008080">&nbsp;6</span>&nbsp;<span style="color: #008000"></span><span style="color: #000000">&nbsp;&nbsp;&nbsp;&nbsp;MailMessage&nbsp;mailMsg&nbsp;</span><span style="color: #000000">=</span><span style="color: #000000">&nbsp;</span><span style="color: #0000ff">new</span><span style="color: #000000">&nbsp;MailMessage();<br /></span><span style="color: #008080">&nbsp;7</span>&nbsp;<span style="color: #000000">&nbsp;&nbsp;&nbsp;&nbsp;mailMsg.From&nbsp;</span><span style="color: #000000">=</span><span style="color: #000000">&nbsp;from;<br /></span><span style="color: #008080">&nbsp;8</span>&nbsp;<span style="color: #000000">&nbsp;&nbsp;&nbsp;&nbsp;mailMsg.To&nbsp;</span><span style="color: #000000">=</span><span style="color: #000000">&nbsp;to;<br /></span><span style="color: #008080">&nbsp;9</span>&nbsp;<span style="color: #000000">&nbsp;&nbsp;&nbsp;&nbsp;mailMsg.Cc&nbsp;</span><span style="color: #000000">=</span><span style="color: #000000">&nbsp;cc;<br /></span><span style="color: #008080">10</span>&nbsp;<span style="color: #000000">&nbsp;&nbsp;&nbsp;&nbsp;mailMsg.Bcc&nbsp;</span><span style="color: #000000">=</span><span style="color: #000000">&nbsp;bcc;<br /></span><span style="color: #008080">11</span>&nbsp;<span style="color: #000000">&nbsp;&nbsp;&nbsp;&nbsp;mailMsg.Subject&nbsp;</span><span style="color: #000000">=</span><span style="color: #000000">&nbsp;subject;<br /></span><span style="color: #008080">12</span>&nbsp;<span style="color: #000000">&nbsp;&nbsp;&nbsp;&nbsp;mailMsg.BodyFormat&nbsp;</span><span style="color: #000000">=</span><span style="color: #000000">&nbsp;MailFormat.Text;<br /></span><span style="color: #008080">13</span>&nbsp;<span style="color: #000000">&nbsp;&nbsp;&nbsp;&nbsp;mailMsg.Body&nbsp;</span><span style="color: #000000">=</span><span style="color: #000000">&nbsp;body;<br /></span><span style="color: #008080">14</span>&nbsp;<span style="color: #000000">&nbsp;&nbsp;&nbsp;&nbsp;mailMsg.Priority&nbsp;</span><span style="color: #000000">=</span><span style="color: #000000">&nbsp;MailPriority.High;<br /></span><span style="color: #008080">15</span>&nbsp;<span style="color: #000000">&nbsp;&nbsp;&nbsp;&nbsp;</span><span style="color: #008000">//</span><span style="color: #008000">&nbsp;Smtp&nbsp;configuration</span><span style="color: #008000"><br /></span><span style="color: #008080">16</span>&nbsp;<span style="color: #008000"></span><span style="color: #000000">&nbsp;&nbsp;&nbsp;&nbsp;SmtpMail.SmtpServer&nbsp;</span><span style="color: #000000">=</span><span style="color: #000000">&nbsp;</span><span style="color: #800000">"</span><span style="color: #800000">smtp.gmail.com</span><span style="color: #800000">"</span><span style="color: #000000">;<br /></span><span style="color: #008080">17</span>&nbsp;<span style="color: #000000">&nbsp;&nbsp;&nbsp;&nbsp;</span><span style="color: #008000">//</span><span style="color: #008000">&nbsp;-&nbsp;smtp.gmail.com&nbsp;use&nbsp;smtp&nbsp;authentication</span><span style="color: #008000"><br /></span><span style="color: #008080">18</span>&nbsp;<span style="color: #008000"></span><span style="color: #000000">&nbsp;&nbsp;&nbsp;&nbsp;mailMsg.Fields.Add<br /></span><span style="color: #008080">19</span>&nbsp;<span style="color: #000000">&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;(</span><span style="color: #800000">"</span><span style="color: #800000">http://schemas.microsoft.com/cdo/configuration/smtpauthenticate</span><span style="color: #800000">"</span><span style="color: #000000">,&nbsp;</span><span style="color: #800000">"</span><span style="color: #800000">1</span><span style="color: #800000">"</span><span style="color: #000000">);<br /></span><span style="color: #008080">20</span>&nbsp;<span style="color: #000000">&nbsp;&nbsp;&nbsp;&nbsp;mailMsg.Fields.Add(http:</span><span style="color: #008000">//</span><span style="color: #008000">schemas.microsoft.com/cdo/configuration/sendusername,&nbsp;</span><span style="color: #008000"><br /></span><span style="color: #008080">21</span>&nbsp;<span style="color: #008000"></span><span style="color: #000000">&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;</span><span style="color: #800000">"</span><span style="color: #800000">myemail@gmail.com</span><span style="color: #800000">"</span><span style="color: #000000">);<br /></span><span style="color: #008080">22</span>&nbsp;<span style="color: #000000">&nbsp;&nbsp;&nbsp;&nbsp;mailMsg.Fields.Add(http:</span><span style="color: #008000">//</span><span style="color: #008000">schemas.microsoft.com/cdo/configuration/sendpassword,&nbsp;</span><span style="color: #008000"><br /></span><span style="color: #008080">23</span>&nbsp;<span style="color: #008000"></span><span style="color: #000000">&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;</span><span style="color: #800000">"</span><span style="color: #800000">mypassword</span><span style="color: #800000">"</span><span style="color: #000000">);<br /></span><span style="color: #008080">24</span>&nbsp;<span style="color: #000000">&nbsp;&nbsp;&nbsp;&nbsp;</span><span style="color: #008000">//</span><span style="color: #008000">&nbsp;-&nbsp;smtp.gmail.com&nbsp;use&nbsp;port&nbsp;465&nbsp;or&nbsp;587</span><span style="color: #008000"><br /></span><span style="color: #008080">25</span>&nbsp;<span style="color: #008000"></span><span style="color: #000000">&nbsp;&nbsp;&nbsp;&nbsp;mailMsg.Fields.Add<br /></span><span style="color: #008080">26</span>&nbsp;<span style="color: #000000">&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;(http:</span><span style="color: #008000">//</span><span style="color: #008000">schemas.microsoft.com/cdo/configuration/smtpserverport,&nbsp;"465");<br /></span><span style="color: #008080">27</span>&nbsp;<span style="color: #008000">&nbsp;&nbsp;&nbsp;&nbsp;</span><span style="color: #008000">//</span><span style="color: #008000">&nbsp;-&nbsp;smtp.gmail.com&nbsp;use&nbsp;STARTTLS&nbsp;(some&nbsp;call&nbsp;this&nbsp;SSL)</span><span style="color: #008000"><br /></span><span style="color: #008080">28</span>&nbsp;<span style="color: #008000"></span><span style="color: #000000">&nbsp;&nbsp;&nbsp;&nbsp;mailMsg.Fields.Add<br /></span><span style="color: #008080">29</span>&nbsp;<span style="color: #000000">&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;(</span><span style="color: #800000">"</span><span style="color: #800000">http://schemas.microsoft.com/cdo/configuration/smtpusessl</span><span style="color: #800000">"</span><span style="color: #000000">,&nbsp;</span><span style="color: #800000">"</span><span style="color: #800000">true</span><span style="color: #800000">"</span><span style="color: #000000">);<br /></span><span style="color: #008080">30</span>&nbsp;<span style="color: #000000">&nbsp;&nbsp;&nbsp;&nbsp;</span><span style="color: #008000">//</span><span style="color: #008000">&nbsp;try&nbsp;to&nbsp;send&nbsp;Mail</span><span style="color: #008000"><br /></span><span style="color: #008080">31</span>&nbsp;<span style="color: #008000"></span><span style="color: #000000">&nbsp;&nbsp;&nbsp;&nbsp;</span><span style="color: #0000ff">try</span><span style="color: #000000">&nbsp;<br /></span><span style="color: #008080">32</span>&nbsp;<span style="color: #000000">&nbsp;&nbsp;&nbsp;&nbsp;{<br /></span><span style="color: #008080">33</span>&nbsp;<span style="color: #000000">&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;SmtpMail.Send(mailMsg);<br /></span><span style="color: #008080">34</span>&nbsp;<span style="color: #000000">&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;</span><span style="color: #0000ff">return</span><span style="color: #000000">&nbsp;</span><span style="color: #800000">""</span><span style="color: #000000">;<br /></span><span style="color: #008080">35</span>&nbsp;<span style="color: #000000">&nbsp;&nbsp;&nbsp;&nbsp;}<br /></span><span style="color: #008080">36</span>&nbsp;<span style="color: #000000">&nbsp;&nbsp;&nbsp;&nbsp;</span><span style="color: #0000ff">catch</span><span style="color: #000000">&nbsp;(Exception&nbsp;ex)&nbsp;<br /></span><span style="color: #008080">37</span>&nbsp;<span style="color: #000000">&nbsp;&nbsp;&nbsp;&nbsp;{<br /></span><span style="color: #008080">38</span>&nbsp;<span style="color: #000000">&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;</span><span style="color: #0000ff">return</span><span style="color: #000000">&nbsp;ex.Message;<br /></span><span style="color: #008080">39</span>&nbsp;<span style="color: #000000">&nbsp;&nbsp;&nbsp;&nbsp;}<br /></span><span style="color: #008080">40</span>&nbsp;<span style="color: #000000">}</span></div></div></div>
<p>&nbsp;</p> <img src="aggbug/1658685.html?type=0" width="1" height="1" alt=""/><p>评论: 0　<a href="http://www.cnblogs.com/geovindu/archive/2010/01/28/1658685.html#pagedcomment" target="_blank">查看评论</a>　<a href="http://www.cnblogs.com/geovindu/archive/2010/01/28/1658685.html#commentform" target="_blank">发表评论</a></p><hr/><p>最新新闻：<br/>· <a href="http://news.cnblogs.com/n/56793/" target="_blank">知名扩展 Firebug 的简化版登陆 Chrome</a><span style="color:gray">(2010-02-09 22:59)</span><br/>· <a href="http://news.cnblogs.com/n/56792/" target="_blank">Google 悄悄地启用 1e100.net，打枪地不要</a><span style="color:gray">(2010-02-09 22:57)</span><br/>· <a href="http://news.cnblogs.com/n/56791/" target="_blank">从 Google 代码库找到的好东西</a><span style="color:gray">(2010-02-09 22:46)</span><br/>· <a href="http://news.cnblogs.com/n/56789/" target="_blank">苹果在线商店临时关闭 或将推新Macbook</a><span style="color:gray">(2010-02-09 22:39)</span><br/>· <a href="http://news.cnblogs.com/n/56788/" target="_blank">豆瓣网推出豆瓣电台iPhone客户端</a><span style="color:gray">(2010-02-09 21:51)</span><br/></p><p>编辑推荐：<a href="http://news.cnblogs.com/n/56782/" target="_blank">2010年2月编程语言排行榜</a><br/></p><p>网站导航：<a href="http://www.cnblogs.com" target="_blank">博客园首页</a>&nbsp;&nbsp;<a href="http://home.cnblogs.com/" target="_blank">个人主页</a>&nbsp;&nbsp;<a href="http://news.cnblogs.com" target="_blank">新闻</a>&nbsp;&nbsp;<a href="http://home.cnblogs.com/ing/" target="_blank">闪存</a>&nbsp;&nbsp;<a href="http://home.cnblogs.com/group/" target="_blank">小组</a>&nbsp;&nbsp;<a href="http://space.cnblogs.com/q/" target="_blank">博问</a>&nbsp;&nbsp;<a href="http://space.cnblogs.com" target="_blank">社区</a>&nbsp;&nbsp;<a href="http://kb.cnblogs.com" target="_blank">知识库</a></p>]]></description></item><item><title>用户体验研究----乱谈后台导航</title><link>http://www.cnblogs.com/joylee/archive/2010/01/25/1656208.html</link><dc:creator>joylee</dc:creator><author>joylee</author><pubDate>Mon, 25 Jan 2010 12:59:00 GMT</pubDate><guid>http://www.cnblogs.com/joylee/archive/2010/01/25/1656208.html</guid><description><![CDATA[<p>阅读: 1770 评论: 9 作者: <a href="" target="_blank">joylee</a> 发表于 2010-01-25 20:59 <a href="http://www.cnblogs.com/joylee/archive/2010/01/25/1656208.html" target="_blank">原文链接</a></p><p>今天看到<a href="http://news.cnblogs.com/n/55753/" target="_blank">《传马云支付宝年会上骂哭总裁邵晓锋》</a>的新闻，暂且不论是否媒体炒作，我们只是研究下马云发怒的导火线就是支付宝的用户体验无法满足客户的需求，这里我们就初步探讨下如何才能让用户有个好的体验。</p> <p>先来研究下事件的罪魁祸首----支付宝。看下支付宝的后台操作界面</p> <p>导航栏</p> <p><a href="http://images.cnblogs.com/cnblogs_com/joylee/WindowsLiveWriter/653214a151f9_113C7/image_2.png" target="_blank"><img style="border-bottom: 0px; border-left: 0px; display: inline; border-top: 0px; border-right: 0px" title="image" border="0" alt="image" src="http://images.cnblogs.com/cnblogs_com/joylee/WindowsLiveWriter/653214a151f9_113C7/image_thumb.png" width="660" height="75"></a> </p> <p>采用横向排列菜单，我们来对比下淘宝网</p> <p><a href="http://images.cnblogs.com/cnblogs_com/joylee/WindowsLiveWriter/653214a151f9_113C7/image5.png" target="_blank"><img style="border-bottom: 0px; border-left: 0px; display: inline; border-top: 0px; border-right: 0px" title="image" border="0" alt="image" src="http://images.cnblogs.com/cnblogs_com/joylee/WindowsLiveWriter/653214a151f9_113C7/image5_thumb.png" width="660" height="391"></a> </p> <p>淘宝网采用纵向排列菜单</p> <p>由此可以很明显的看到，纵向排列的菜单不受菜单多少的显示，可以显示出所有的菜单更加直观，而支付宝的横向菜单因受到宽度限制，无法显示所有内容。</p> <p><strong><font size="4">结论一：对于后台菜单较多这一情况，纵向菜单比横向菜单更加直观。</font></strong></p> <p>支付宝已经培养了很大一部分用户的使用习惯，现在更改成纵向菜单已经不合实际，我们来看下新版支付宝是如何因对这样的困难。</p> <p>支付宝公测的后台界面（如下图）</p> <p><a href="http://images.cnblogs.com/cnblogs_com/joylee/WindowsLiveWriter/653214a151f9_113C7/image9.png" target="_blank"><img style="border-bottom: 0px; border-left: 0px; display: inline; border-top: 0px; border-right: 0px" title="image" border="0" alt="image" src="http://images.cnblogs.com/cnblogs_com/joylee/WindowsLiveWriter/653214a151f9_113C7/image9_thumb.png" width="660" height="69"></a> </p> <p>有如下几个改变值得研究：</p> <p>1、一级菜单和二级菜单的显示已经由旧版的点击才能显示改成鼠标移动就能显示</p> <p>2、添加下拉菜单“我的生活助手”</p> <p>3、菜单更加精简</p> <p>显然，新版的界面更加简洁、直观，而且操作起来更加方便。</p> <p><font size="4"><strong>结论二：鼠标移动切换比鼠标点击切换有更好的体验。（</strong></font>这在阿一兄<a href="http://www.cnblogs.com/JustinYoung/archive/2010/01/25/internet-project.html" target="_blank">《抛砖：如何进行互联网项目开发》</a>一文中也有提及）</p> <p><font size="4"><strong>结论三：菜单的分类应更加直观，易于用户理解</strong></font>。（旧版中“我要收款”，“我要付款”和“交易管理”意思重复）</p> <p>&nbsp;</p> <p>我们再来看下支付宝登录后的首页。</p> <p>旧版（如下图）</p> <p><a href="http://images.cnblogs.com/cnblogs_com/joylee/WindowsLiveWriter/653214a151f9_113C7/QQ.jpg" target="_blank"><img style="border-bottom: 0px; border-left: 0px; display: inline; border-top: 0px; border-right: 0px" title="QQ截图未命名" border="0" alt="QQ截图未命名" src="http://images.cnblogs.com/cnblogs_com/joylee/WindowsLiveWriter/653214a151f9_113C7/QQ_thumb.jpg" width="660" height="214"></a> </p> <p>新版（如下图）</p> <p><a href="http://images.cnblogs.com/cnblogs_com/joylee/WindowsLiveWriter/653214a151f9_113C7/image13.png" target="_blank"><img style="border-bottom: 0px; border-left: 0px; display: inline; border-top: 0px; border-right: 0px" title="image" border="0" alt="image" src="http://images.cnblogs.com/cnblogs_com/joylee/WindowsLiveWriter/653214a151f9_113C7/image13_thumb.png" width="660" height="257"></a>&nbsp;</p> <p>显然新版的导航更加直观、美观。</p> <p><font size="4"><strong>结论四：善用图标，突出重点。对常用功能有直达按钮。</strong></font></p> <p><font size="2">接着我们来看下常用的几个操作，我们看下“我要付款”</font></p> <p><font size="2">旧版（如下图）</font></p> <p><a href="http://images.cnblogs.com/cnblogs_com/joylee/WindowsLiveWriter/653214a151f9_113C7/image17.png" target="_blank"><img style="border-bottom: 0px; border-left: 0px; display: inline; border-top: 0px; border-right: 0px" title="image" border="0" alt="image" src="http://images.cnblogs.com/cnblogs_com/joylee/WindowsLiveWriter/653214a151f9_113C7/image17_thumb.png" width="660" height="288"></a> </p> <p>新版（如下图）</p> <p><a href="http://images.cnblogs.com/cnblogs_com/joylee/WindowsLiveWriter/653214a151f9_113C7/image24.png" target="_blank"><img style="border-bottom: 0px; border-left: 0px; display: inline; border-top: 0px; border-right: 0px" title="image" border="0" alt="image" src="http://images.cnblogs.com/cnblogs_com/joylee/WindowsLiveWriter/653214a151f9_113C7/image24_thumb.png" width="660" height="384"></a> </p> <p>&nbsp;</p> <p>旧版无法突出重新，最吸引让的是盾牌图片，喧宾夺主。帮助说明不明显。新版的步骤说明最能吸引人，让用户能很清楚的了解自己现在在做什么，下一步要做什么。页面中也有添加回到顶部按钮。</p> <p><font size="4"><strong>结论五：页面应主次分明，切不可喧宾夺主。</strong></font></p> <p><font size="4"><strong>结论六：时刻让用户知道自己现在在做什么，下一步应该怎么做。</strong></font></p> <p><font size="4"><strong>结论七：对于所有有纵向滚动条的页面，特别是特长的页面，必须有“回到顶部”的。</strong></font></p> <p><font size="2">这是我个人针对支付宝的一个小的研究，用户体验是对于一个网站来说是至关重要的，特别是在Web 2.0和AJAX平民化后，用户体验已经被提到一个新的高度。</font></p><img src="aggbug/1656208.html?type=0" width="1" height="1" alt=""/><p>评论: 9　<a href="http://www.cnblogs.com/joylee/archive/2010/01/25/1656208.html#pagedcomment" target="_blank">查看评论</a>　<a href="http://www.cnblogs.com/joylee/archive/2010/01/25/1656208.html#commentform" target="_blank">发表评论</a></p><hr/><p>最新新闻：<br/>· <a href="http://news.cnblogs.com/n/56793/" target="_blank">知名扩展 Firebug 的简化版登陆 Chrome</a><span style="color:gray">(2010-02-09 22:59)</span><br/>· <a href="http://news.cnblogs.com/n/56792/" target="_blank">Google 悄悄地启用 1e100.net，打枪地不要</a><span style="color:gray">(2010-02-09 22:57)</span><br/>· <a href="http://news.cnblogs.com/n/56791/" target="_blank">从 Google 代码库找到的好东西</a><span style="color:gray">(2010-02-09 22:46)</span><br/>· <a href="http://news.cnblogs.com/n/56789/" target="_blank">苹果在线商店临时关闭 或将推新Macbook</a><span style="color:gray">(2010-02-09 22:39)</span><br/>· <a href="http://news.cnblogs.com/n/56788/" target="_blank">豆瓣网推出豆瓣电台iPhone客户端</a><span style="color:gray">(2010-02-09 21:51)</span><br/></p><p>编辑推荐：<a href="http://news.cnblogs.com/n/56782/" target="_blank">2010年2月编程语言排行榜</a><br/></p><p>网站导航：<a href="http://www.cnblogs.com" target="_blank">博客园首页</a>&nbsp;&nbsp;<a href="http://home.cnblogs.com/" target="_blank">个人主页</a>&nbsp;&nbsp;<a href="http://news.cnblogs.com" target="_blank">新闻</a>&nbsp;&nbsp;<a href="http://home.cnblogs.com/ing/" target="_blank">闪存</a>&nbsp;&nbsp;<a href="http://home.cnblogs.com/group/" target="_blank">小组</a>&nbsp;&nbsp;<a href="http://space.cnblogs.com/q/" target="_blank">博问</a>&nbsp;&nbsp;<a href="http://space.cnblogs.com" target="_blank">社区</a>&nbsp;&nbsp;<a href="http://kb.cnblogs.com" target="_blank">知识库</a></p>]]></description></item></channel></rss>