邮件发送失败!错误原因:The message was undeliverable. All servers failed to receive the message

dfboyxing 2007-05-24 10:42:06
on error resume next
body="66666s"
MailServerUserName="dfboyxing@126.com"
MailServerPassword="111111"
mailaddress="dfboyxing@sina.com"

mailtopic="你好"
body=Request.Form("Mailbody")
smtpmail="dfboyxing@126.com"
smtp="smtp.126.com"

Set JMail=Server.CreateObject("JMail.Message")
JMail.Charset="gb2312"
jmail.ContentType = "text/html"
JMail.AddRecipient mailaddress
JMail.Subject = mailtopic
JMail.Body = body
JMail.From = smtpmail
JMail.MailServerUserName = MailServerUserName
JMail.MailServerPassword = MailServerPassword
JMail.Send smtp
Set JMail=nothing



If Err Then

Response.Write "邮件发送失败!错误原因:" & Err.Description & "<br>"

else
.......


怎么测试都提示这个错误
邮件发送失败!错误原因:The message was undeliverable. All servers failed to receive the message
兄弟们帮帮忙啊,弄了一上午了.
...全文
9800 21 打赏 收藏 转发到动态 举报
写回复
用AI写文章
21 条回复
切换为时间正序
请发表友善的回复…
发表回复
abuying 2010-07-14
  • 打赏
  • 举报
回复
jmessage.Send("smtp.163.com", false);
可以置为
jmessage.Send("smtp.163.com", true);
wanglei451 2010-03-09
  • 打赏
  • 举报
回复
xsyxhl 2009-11-21
  • 打赏
  • 举报
回复
我也遇到同样的问题啊 郁闷
x03640206 2008-11-07
  • 打赏
  • 举报
回复
我也出现了类似的情况,不过现在弄好了。
private void button1_Click(object sender, EventArgs e)
{
try
{
jmail.Message jmessage = new jmail.Message();
jmessage.Charset = "GB2312";
jmessage.From = "ck-167@163.com";
jmessage.FromName = "ck-167";
jmessage.ReplyTo = "ck-167@163.com";
jmessage.Subject = "test email from jmessage";
jmessage.AddRecipient("ck-167@163.com", "ck-167", "123");
jmessage.Body = "jmail 内容";
jmessage.MailServerUserName = "发件邮箱用户名";
jmessage.MailServerPassWord = "发件邮箱密码";
jmessage.Send("smtp.163.com", false);
MessageBox.Show("email sent successfully!");
jmessage.Close();
}
catch (Exception ex)
{
Console.WriteLine(ex.Message);
}
}
但是还有个小小的问题,
我在我的收件箱里找的邮件,可是内容是:(如下)
jmail 内容


__________ Information from ESET NOD32 Antivirus, version of virus signature database 3592 (20081106) __________

The message was checked by ESET NOD32 Antivirus.

http://www.eset.com

怎么把杀毒的信息也搞到里面去了~~~~请高手帮忙看看
onlyxing 2008-11-01
  • 打赏
  • 举报
回复
我也出现这种情况了,怎么弄的啊?请教一下
dfboyxing 2007-05-29
  • 打赏
  • 举报
回复
回楼上的,加上 Jmail.Silent=true 虽然不报错,但是实际上邮件并没有发出去啊.收信箱收不到邮件.
jingxiaoping 2007-05-29
  • 打赏
  • 举报
回复
应该是没有加上容错

Jmail.Silent=true

'JMAIL不会抛出例外错误,返回的值为FALSE跟TRUE
dfboyxing 2007-05-29
  • 打赏
  • 举报
回复
无耐啊,还没解决.只好自己慢慢想办法了,还是非常感谢大家
dfboyxing 2007-05-24
  • 打赏
  • 举报
回复
jmail好像是4.3版的
dfboyxing 2007-05-24
  • 打赏
  • 举报
回复
是2003的.怎么设置允许w3wp.exe 这个进程发邮件啊!
wangwm 2007-05-24
  • 打赏
  • 举报
回复
如果系统是win2003的话,比较麻烦,因为在win2000里面,jmail 发送邮件的进程是 dllhost.exe 在win2003里面发送邮件进程是 w3wp.exe,所以在杀毒软件要设置允许w3wp.exe 这个进程发邮件
dfboyxing 2007-05-24
  • 打赏
  • 举报
回复
防火墙,杀毒软件都关了.还是不行啊
dfboyxing 2007-05-24
  • 打赏
  • 举报
回复
换成163的还是一样的错啊,晕死掉了.
wangwm 2007-05-24
  • 打赏
  • 举报
回复
通常我们遇到的错误是:\'The message was undeliverable. All servers failed to receive the message \',这其实是JMAIL返回的错误,并不是ASP代码产生的,根本原因是MAIL SERVER拒绝了JMAIL的请求.

究其原因,是那些服务器不提供SMTP服务或者没有开启smtp服务;或是在服务器端开启了\'禁止邮件中继服务\'选项,也就是说不在其允许的IP段或指定范围内的空间里的程序是无法使用其SMTP服务的,最终导致\'8000ffff\'错误发生。


换成163的邮箱就可以了,别忘了smtp="smtp.163.com"
wangwm 2007-05-24
  • 打赏
  • 举报
回复
如果你设置成163的Email,就是smtp="smtp.163.com",就可以了


通常我们遇到的错误是:\'The message was undeliverable. All servers failed to receive the message \',这其实是JMAIL返回的错误,并不是ASP代码产生的,根本原因是MAIL SERVER拒绝了JMAIL的请求.

究其原因,是那些服务器不提供SMTP服务或者没有开启smtp服务;或是在服务器端开启了\'禁止邮件中继服务\'选项,也就是说不在其允许的IP段或指定范围内的空间里的程序是无法使用其SMTP服务的,最终导致\'8000ffff\'错误发生。
dfboyxing 2007-05-24
  • 打赏
  • 举报
回复
自己顶一下
huncker 2007-05-24
  • 打赏
  • 举报
回复
应该是smtp的用户名密码有误...
wangwm 2007-05-24
  • 打赏
  • 举报
回复
1、杀毒软件或者防火墙的原因
2、Jmail.dll组件的Everyone完全控制权限
3、如果机器上网是通过代理服务器的话,就无法使用JMail发送邮件。
dfboyxing 2007-05-24
  • 打赏
  • 举报
回复
中午为调试它,我把诺顿都删了.用我自己的邮箱还是没调出来不还是很感谢您的帮助.
wangwm 2007-05-24
  • 打赏
  • 举报
回复
我这边jmail在win2003下面发送成功,杀毒软件是诺顿,没有进行设置,smtp="smtp.163.com"
加载更多回复(1)

28,391

社区成员

发帖
与我相关
我的任务
社区描述
ASP即Active Server Pages,是Microsoft公司开发的服务器端脚本环境。
社区管理员
  • ASP
  • 无·法
加入社区
  • 近7日
  • 近30日
  • 至今
社区公告
暂无公告

试试用AI创作助手写篇文章吧