<?xml version="1.0" encoding="UTF-8" ?>
<rss version="2.0">
<channel>
<title><![CDATA[静怡家园]]></title> 
<link>http://www.zhanghaijun.com/index.php</link> 
<description><![CDATA[书山有路勤为径，学海无涯苦作舟！]]></description> 
<language>zh-cn</language> 
<copyright><![CDATA[静怡家园]]></copyright>
<item>
<link>http://www.zhanghaijun.com/post//</link>
<title><![CDATA[ASP发送E-MAIL]]></title> 
<author>碟舞飞扬 &lt;webmaster@zhanghaijun.com&gt;</author>
<category><![CDATA[Web开发]]></category>
<pubDate>Fri, 29 Jun 2007 18:36:11 +0000</pubDate> 
<guid>http://www.zhanghaijun.com/post//</guid> 
<description>
<![CDATA[ 
	如果你希望用ASP发送E-MAIL，你需要安装一个A S P部件。有几种第三方厂商的部件你可以使用。但是在IIS4下，你可以使用CDONTS。 <br/><br/>　　虽然名字奇怪，它是很容易使用的并且性能良好。如果你希望使用它，请跟随下面步骤。 <br/><br/>　　1.检查你是否安装了SMTP服务。OPTION PACK缺省安装时是包括SMTP服务的。 <br/><br/>　　SMTP服务安装后，在你的system32目录下会有一个文件叫CDONTS.DLL。 <br/><br/>　　2.你可以用下面的简单脚本通过A S P发送E-MAIL： <br/><br/>　　 <br/><br/>　　$#@60;% <br/><br/>　　Dim MailObject <br/><br/>　　Set MailObject = Server.CreateObject(&quot;CDONTS.NewMail&quot;) <br/><br/>　　MailObject.Send &quot;stelede@ozemail.com.au&quot;,&quot;stelede@ozemail.com.au&quot;,&quot;My subject&quot;,&quot;My text&quot; <br/><br/>　　%$#@62; <br/><br/>　　是不是很简单？ <br/><br/>　　 <br/><br/>　　发送附件 <br/><br/>　　CDONTS的一个常用特性是用来在E-MAIL中发送附件。代码也不难写。 <br/><br/>　　$#@60;% <br/><br/>　　Dim MailObject <br/><br/>　　Set MailObject = Server.CreateObject(&quot;CDONTS.NewMail&quot;) <br/><br/>　　att_file=&quot;c:&#92;attachments&#92;StandardPolicy.txt&quot; <br/><br/>　　f_name=&quot;Policy.txt&quot; <br/><br/>　　MailObject.From=&quot;stelede@ozemail.com.au&quot; <br/><br/>　　MailObject.To=&quot;j_smith@zentus.com&quot; <br/><br/>　　MailObject.Subject=&quot;Subject Text Here&quot; <br/><br/>　　MailObject.Body=&quot;Body Text Here&quot; <br/><br/>　　MailObject.AttachFile att_file,f_name <br/><br/>　　MailObject.Send <br/><br/>　　%$#@62; <br/><br/>　　第三方厂商部件 <br/><br/>如果你对CDONTS不满意，下面的地址清单是你可以找到的第三方厂商部件（大多数你需要花钱购买） <br/><br/>　　Blat - http://gepasi.dbs.aber.ac.uk/softw/Blat.html <br/><br/>　　Try Looking through: http://www.15seconds.com/ 
]]>
</description>
</item><item>
<link>http://www.zhanghaijun.com/post//#blogcomment</link>
<title><![CDATA[[评论] ASP发送E-MAIL]]></title> 
<author> &lt;user@domain.com&gt;</author>
<category><![CDATA[评论]]></category>
<pubDate>Thu, 01 Jan 1970 00:00:00 +0000</pubDate> 
<guid>http://www.zhanghaijun.com/post//#blogcomment</guid> 
<description>
<![CDATA[ 
	
]]>
</description>
</item>
</channel>
</rss>