為什么使用jmail發信時發信失敗?
作者:技術支持來源:域名頻道發布時間:2006-9-18 22:28:23瀏覽:
最可能的原因是你指定的發信服務器需要發信認證,而你在程序中沒有指定發信用戶名和密碼,具體的編碼為:
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
- 前一篇:JMAIL 需要單獨的發信服務器嗎?
- 后一篇:Jmail 能發送附件嗎?