请教jmail 发信问题 “jmail.Message 错误 '8000ffff' ”

osdk osdk 墨衍会员 · AI 创作全网分发 墨衍智能分发 通过墨衍一键同步至各平台 可同步平台 CSDN微信公众号微博知乎掘金百家号博客园抖音小红书 你的文章也可以这样分发 墨衍会员 ¥399起/年,写一次发全网 我也要 + 加入社区
jmail.Message 错误 '8000ffff'

The message was undeliverable. All servers failed to receive the message


代码如下:

Function SendMail(MailtoAddress,Subject,MailBody,FromName,MailFrom,Priority)
'Function SendMail()
'on error resume next
Dim JMail, contentId
Set JMail = Server.CreateObject("JMail.Message")
if err then
SendMail= "<br><li>没有安装JMail组件</li>"
err.clear
exit Function
end if
JMail.Charset = "gb2312"
JMail.ContentType = "text/html" '邮件正文格式
JMail.ISOEncodeHeaders = False
JMail.From = MailFrom
JMail.FromName = FromName
JMail.Subject = Subject
JMail.MailServerUserName = "osdk"
JMail.MailServerPassword = "1234"
JMail.Priority = Priority
JMail.AddRecipient(MailtoAddress)
JMail.HTMLBody=MailBody '邮件正文(HTML格式)
JMail.Body=MailBody '邮件正文(纯文本格式)
'JMail.Body = "我们的邮件采用了HTML格式,但是您的邮件查看软件可能不支持。"
JMail.Send("osdk:1234@smtp.163.com")
SendMail =JMail.ErrorMessage
JMail.Close()
Set JMail = Nothing
End Function


各位大哥帮帮忙啊
...全文

相关推荐

评论 12
收藏 已收藏
分享
返回顶部
osdk
ASP 28,401 成员 356,940 内容