开发者社区> 问答> 正文

jmail发信失败


在本地服务器上顺利执行,能正常发送邮件,
传到阿里云后出现以下错误
jmail.Message   错误 '8000ffff'
The message was undeliverable. All servers failed to receive the message

主机类型:独享虚拟主机经济版(美国)

贴上代码:
 strMailAddress = "smtp.163.com"
 strMailUser = "*****@163.com" '发件人用户名
 strMailPass = "*******" '发件账户密码
Subject = "邮件标题"  '邮件标题
Email = "*****@sina.com"
Sender = "Wu"
Content= "test" 
 Set JMail = Server.CreateObject("JMail.Message")

 JMail.Charset = "gb2312" '邮件字符集,默认为"US-ASCII"
 JMail.Silent=False
 JMail.ContentType = "text/html" '邮件正文格式
 JMail.MailServerUserName = strMailUser '发件服务器的用户名
 JMail.MailServerPassword = strMailPass '发件服务器的密码
 JMail.MailDomain = strMailAddress '域名
 JMail.AddRecipient email '收信人
 JMail.Subject = subject  '主题
 JMail.Body = content  '邮件正文(纯文本格式)
 JMail.FromName = sender '发送者姓名
 JMail.From = strMailUser '发信人email
 JMail.Priority = 3 
 JMail.Send(strMailAddress)

展开
收起
中国泵阀网 2018-09-19 18:04:33 1148 0
1 条回答
写回答
取消 提交回答
  • 程序就是我的人生!
    虚拟主机并不一定支持jmail发送邮件组件,如果不支持的话,是发不了邮件的。
    2018-09-20 07:41:18
    赞同 展开评论 打赏
问答排行榜
最热
最新

相关电子书

更多
低代码开发师(初级)实战教程 立即下载
冬季实战营第三期:MySQL数据库进阶实战 立即下载
阿里巴巴DevOps 最佳实践手册 立即下载