- 域名頻道首頁(yè)
- 客服中心
- 常見問(wèn)題
- 空間租用
- 業(yè)務(wù)相關(guān)
- 為什么使用jmail發(fā)信時(shí)發(fā)信失敗?
為什么使用jmail發(fā)信時(shí)發(fā)信失敗?
作者:技術(shù)支持來(lái)源:域名頻道發(fā)布時(shí)間:2006-9-18 22:28:23瀏覽:
最可能的原因是你指定的發(fā)信服務(wù)器需要發(fā)信認(rèn)證,而你在程序中沒(méi)有指定發(fā)信用戶名和密碼,具體的編碼為:
set mail=CreateObject("jmail.Message")
mail.Charset ="gb2312"
mail.From ="from@dns110.com"
mail.AddRecipient "to@dns110.com"
mail.MailDomain="mail.dns110.com"
mail.MailServerUserName = " from @dns110.com"
mail.MailServerPassWord = "****"
mail.subject=”test”
mail.body= “歡迎”
'On Error Resume Next
mail.Send("mail.dns110.com")
mail.close()
set mail=nothing
set mail=CreateObject("jmail.Message")
mail.Charset ="gb2312"
mail.From ="from@dns110.com"
mail.AddRecipient "to@dns110.com"
mail.MailDomain="mail.dns110.com"
mail.MailServerUserName = " from @dns110.com"
mail.MailServerPassWord = "****"
mail.subject=”test”
mail.body= “歡迎”
'On Error Resume Next
mail.Send("mail.dns110.com")
mail.close()
set mail=nothing