jmail的组件在ASP中应用
<%
dim body
body="test” ‘定义邮件内容
Set msg = Server.CreateObject(“JMail.Message”)
msg.ContentType = “text/html” ‘定义邮件格式为文本还是超文本
msg.Priority = 1 ‘优先级
msg.silent = true
msg.Logging = true
msg.Charset = “gb2312″ ‘编码
msg.MailServerUserName = “test@7dit.com” ‘输入smtp服务器验证登陆名 (邮局中任何一个用户的Email地址)
msg.MailServerPassword = “test” ‘输入smtp服务器验证密码 (用户Email帐号对应的密码)
msg.From = “test@7dit.com” ‘发件人Email
msg.FromName = “奇点” ‘发件人姓名
msg.AddRecipient “rec@7dit.com” ‘收件人Email
msg.Subject = “test” ‘信件主题
msg.Body = body
msg.Send (“mail.test.com”) ‘smtp服务器地址(企业邮局地址)
set msg = nothing
%>