在本地服务器上顺利执行,能正常发送邮件,
传到阿里云后出现以下错误
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)