<?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[新的Jmail（4.5版本）发送代码]]></title> 
<author>碟舞飞扬 &lt;webmaster@zhanghaijun.com&gt;</author>
<category><![CDATA[Web开发]]></category>
<pubDate>Sat, 23 Jun 2007 05:01:51 +0000</pubDate> 
<guid>http://www.zhanghaijun.com/post//</guid> 
<description>
<![CDATA[ 
	该段代码涉及到JMail v4.5的大部分常用方法。包括邮件基本信息、身份验证、附件等。无需很多的修改就可以使用，也可以改成函数或过程。 <br/><br/>&lt;%<br/>Dim JMail, contentId<br/>Set JMail = Server.CreateObject(&quot;JMail.Message&quot;) <br/><br/>JMail.Charset = &quot;gb2312&quot; &#039; 邮件字符集，默认为&quot;US-ASCII&quot;<br/>&#039; JMail.ISOEncodeHeaders = False &#039; 是否进行ISO编码，默认为True<br/><br/>&#039; 发送者信息（可用变量方式赋值）<br/>JMail.From = &quot;jiaz@21cn.com&quot; &#039; 发送者地址<br/>JMail.FromName = &quot;D.J.&quot; &#039; 发送者姓名<br/>JMail.Subject = &quot;您在炫网资讯的歌词快递（请将编码设为简体中文(gb2312)）&quot; &#039; 邮件主题<br/><br/>&#039; 身份验证<br/>JMail.MailServerUserName = &quot;user&quot; &#039; 身份验证的用户名<br/>JMail.MailServerPassword = &quot;password&quot; &#039; 身份验证的密码<br/><br/>&#039; 设置优先级，范围从1到5，越大的优先级越高，3为普通<br/>JMail.Priority = 3<br/><br/>JMail.AddHeader &quot;Originating-IP&quot;, Request.ServerVariables(&quot;REMOTE_ADDR&quot;)<br/><br/>&#039; 加入一个收件人【变量email：收件人地址】可以同一语句重复加入多个<br/>JMail.AddRecipient(email)<br/><br/>&#039; 加入附件【变量filename：附件文件的绝对地址，确保用户IUSR_????有访问的权限】<br/>&#039; 【参数设置是(True)否(False)为Inline方式】<br/>contentId = JMail.AddAttachment (filename, True)<br/><br/>&#039; 邮件主体（HTML(注意信件内链接附件的方式)）<br/>JMail.HTMLBody = &quot;&lt;html&gt;&lt;head&gt;&lt;META content=zh-cn http-equiv=Content-Language&gt;&lt;meta http-equiv=&quot;&quot;Content-Type&quot;&quot; content=&quot;&quot;text/html; charset=gb2312&quot;&quot;&gt;&lt;style type=text/css&gt;A:link { FONT-SIZE: 9pt; TEXT-DECORATION: none; color: #000000}A:visited {FONT-SIZE: 9pt; TEXT-DECORATION: none; color: #666666}A:hover {COLOR: #ff6600; FONT-SIZE: 9pt; TEXT-DECORATION: underline}BODY {FONT-SIZE: 9pt} --&gt;&lt;/style&gt;&lt;/head&gt;&lt;body bgcolor=&quot;&quot;#FFFFFF&quot;&quot; text=&quot;&quot;#666666&quot;&quot; leftmargin=&quot;&quot;0&quot;&quot; topmargin=&quot;&quot;30&quot;&quot; link=&quot;&quot;#FF9900&quot;&quot;&gt;&lt;center&gt;点击这里&lt;a href=&#039; cid:&quot; &amp; contentId &amp; &quot;&#039; &gt;[附件文件]&lt;/a&gt;将文件保存&lt;/center&gt;&lt;/body&gt;&lt;/html&gt;&quot;<br/><br/>&#039; 邮件主体（文本部分）<br/>JMail.Body = &quot;我们的邮件采用了HTML格式，但是您的邮件查看软件可能不支持。您可以访问以下地址来查看：http://music.liuxuan.com&quot;<br/><br/>&#039; 发送【调用格式：objJMail.Send([username:password@]SMTPServerAddress[:Port])】<br/>JMail.Send(&quot;user:password@smtp.21cn.com&quot;)<br/><br/>&#039; 关闭并清除对象<br/>JMail.Close()<br/>Set JMail = Nothing<br/>%&gt;
]]>
</description>
</item><item>
<link>http://www.zhanghaijun.com/post//#blogcomment</link>
<title><![CDATA[[评论] 新的Jmail（4.5版本）发送代码]]></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>