jmail组件发信服务器需验证实例
作者:技术支持来源:域名频道发布时间:2006-9-18 22:32:08浏览:
'以下的代码是发信服务器需要认证的,例如我们的邮箱服务器
<%
set mail=CreateObject("jmail.Message")
mail.Charset ="gb2312"
mail.From ="test@dns110.com"
mail.AddRecipient "test@dns110.com"
mail.MailDomain="mx.dns110.com"
mail.MailServerUserName = "test@dns110.com"
mail.MailServerPassWord = "*****"
mail.subject=Subject
mail.body= "hi dns110.com"
On Error Resume Next
mail.Send("mx.dns110.com")
mail.close()
set mail=nothing
response.write "发送成功"
%>
<%
set mail=CreateObject("jmail.Message")
mail.Charset ="gb2312"
mail.From ="test@dns110.com"
mail.AddRecipient "test@dns110.com"
mail.MailDomain="mx.dns110.com"
mail.MailServerUserName = "test@dns110.com"
mail.MailServerPassWord = "*****"
mail.subject=Subject
mail.body= "hi dns110.com"
On Error Resume Next
mail.Send("mx.dns110.com")
mail.close()
set mail=nothing
response.write "发送成功"
%>