日期:2014-05-20  浏览次数:20721 次

Jmail不能发信的问题?
错误信息:
The   message   was   undeliverable.   All   servers   failed   to   receive   the   message   .

代码:
myJmail.Message   jmessage   =   new   myJmail.MessageClass();
jmessage.Charset   =   "GB2312 ";//编码
jmessage.From   =   "tflb_ok@126.com ";//发送人的邮件地址
jmessage.FromName   =   "系统管理员 ";//发送人的姓名
jmessage.Subject   =   "你的密码! ";//邮件主题
jmessage.AddRecipient( "tflb1@163.com ",   " ",   " ");//接名
jmessage.Body   =   "你在本网站的帐号密码已经成功找回,请你妥善保管! ";
jmessage.MailServerUserName   =   "tflb_ok ";//发送者邮箱的用户名
jmessage.MailServerPassWord   =   "tflb521 ";//发送者邮箱的密码
jmessage.Send( "smtp.126.com ",   false);//发送着邮箱的smtp服务器地 ",   false
jmessage.Close();

换成163也不行.

安装过程
1.安装jmail4.3  

2.找到jmail.dll(Program   Files\Dimac\w3JMail4下)

3.执行Program   Files\Microsoft   Visual   Studio   .NET\FrameworkSDK\Bin\ildasm.exe(可使用Visual   Studio   .Net   2003   命令提示),

格式如下:tlbimp   c:\Program   Files\Dimac\w3JMail4\jmail.dll   /out:myJmail.dll   /namespace:myJmail

生成myJmail.dll后,copy到web的根目录的bin目录。

用的是卡巴斯基网络套装,把邮件功能停了也不行.

在网上看了好多这方面的资料,一般都说是防火墙的事.但我看我的应该没什么问题呀!请各位指点一下.十分感谢!




------解决方案--------------------
我前段时间在ASP下用Jmail通过126的smtp服务器也发不了邮件
------解决方案--------------------
up
------解决方案--------------------
我以前做asp时遇到类似情况,当时解决办法是如下:
1、确认正确安装
2、查找jmail的端口
3、在防火中设置该端口允许通过
问题解决!!!帮忙顶下我的问题,谢谢!!!
http://community.csdn.net/Expert/topic/5293/5293251.xml?temp=.1769983
------解决方案--------------------
漏掉jmail.dll需要注册,但正确安装已经注册了,供你参考