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 "發送成功"
%>