- 域名頻道首頁
- 客服中心
- 常見問題
- 空間租用
- 業(yè)務(wù)相關(guān)
- jmail組件發(fā)信服務(wù)器需驗(yàn)證實(shí)例
jmail組件發(fā)信服務(wù)器需驗(yàn)證實(shí)例
作者:技術(shù)支持來源:域名頻道發(fā)布時(shí)間:2006-9-18 22:32:08瀏覽:
'以下的代碼是發(fā)信服務(wù)器需要認(rèn)證的,例如我們的郵箱服務(wù)器
<%
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 "發(fā)送成功"
%>
<%
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 "發(fā)送成功"
%>