为什么使用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 能发送附件吗?