- 域名頻道首頁
- 客服中心
- 常見問題
- 空間租用
- 業(yè)務(wù)相關(guān)
- 為什么使用jmail發(fā)信時發(fā)信失?
為什么使用jmail發(fā)信時發(fā)信失?
作者:技術(shù)支持來源:域名頻道發(fā)布時間:2006-9-18 22:28:23瀏覽:
最可能的原因是你指定的發(fā)信服務(wù)器需要發(fā)信認證,而你在程序中沒有指定發(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