Jmail错误,大家帮帮我!
我用jmail在windows 2003下发送正常 ,在windows 2000下就报如下错误:
jmail.Message 错误 '8000ffff'
The message was undeliverable. All servers failed to receive the message
/include/Function.Email.asp,行44
源码如下:
<%
Function sendMail(body)
'On error resume next
Dim JMail, contentId , result
Set JMail = Server.CreateObject("JMail.Message")
JMail.Charset = "gb2312" ' 邮件字符集,默认为"US-ASCII"
JMail.From = "xx@xx.com" ' 发送者地址
JMail.FromName = "xxxxm" ' 发送者姓名
JMail.Subject = "主题" ' 邮件主题
JMail.MailServerUserName = "xx@xx.com" ' 身份验证的用户名
JMail.MailServerPassword = "xxxxxx" ' 身份验证的密码
JMail.Priority = 3
JMail.AddHeader "Originating-IP", Request.ServerVariables("REMOTE_ADDR")
JMail.AddRecipient("xxx@xxxxx.com")
JMail.HTMLBody = body
JMail.Body =body
JMail.Send("mail.xxx.com") '第44行
JMail.Close()
Set JMail = Nothing
if err.number<>0 then
result = false
else
result = true
end if
sendMail = result
end function
%>
网上查的信息都说是25端口问题,我的25端口都开放了
也没有防火墙和杀毒软件
邮件服务器应该没有故障(我在windows2003 下发送正常)
区别就是系统变了
求解,谢谢各位