《asp.net 项目开发全程实录》注册时收不到回复的邮件
发表在ASP.NET图书答疑
2008-09-04
是否精华
是
否
版块置顶:
是
否
设置时间:
非永久
永久
起始时间:
结束时间:
是否扣分:
是
否
请问到哪下载jmail.dll?我下一个311K但运行时的报错。如下:
[COMException (0x8000ffff): This function is not included in this version of jmail.]
jmail.MessageClass.Send(String mailServer, Boolean enque) +0
log.bindEmail() in e:\asp.net\TM\09\WuLiu\login.aspx.cs:59
log.btnQyLogin_Click(Object sender, EventArgs e) in e:\asp.net\TM\09\WuLiu\login.aspx.cs:117
System.Web.UI.WebControls.Button.OnClick(EventArgs e) +75
System.Web.UI.WebControls.Button.RaisePostBackEvent(String eventArgument) +97
System.Web.UI.WebControls.Button.System.Web.UI.IPostBackEventHandler.RaisePostBackEvent(String eventArgument) +7
System.Web.UI.Page.RaisePostBackEvent(IPostBackEventHandler sourceControl, String eventArgument) +11
System.Web.UI.Page.RaisePostBackEvent(NameValueCollection postData) +33
System.Web.UI.Page.ProcessRequestMain(Boolean includeStagesBeforeAsyncPoint, Boolean includeStagesAfterAsyncPoint) +4921
是不是版本问题?
[COMException (0x8000ffff): This function is not included in this version of jmail.]
jmail.MessageClass.Send(String mailServer, Boolean enque) +0
log.bindEmail() in e:\asp.net\TM\09\WuLiu\login.aspx.cs:59
log.btnQyLogin_Click(Object sender, EventArgs e) in e:\asp.net\TM\09\WuLiu\login.aspx.cs:117
System.Web.UI.WebControls.Button.OnClick(EventArgs e) +75
System.Web.UI.WebControls.Button.RaisePostBackEvent(String eventArgument) +97
System.Web.UI.WebControls.Button.System.Web.UI.IPostBackEventHandler.RaisePostBackEvent(String eventArgument) +7
System.Web.UI.Page.RaisePostBackEvent(IPostBackEventHandler sourceControl, String eventArgument) +11
System.Web.UI.Page.RaisePostBackEvent(NameValueCollection postData) +33
System.Web.UI.Page.ProcessRequestMain(Boolean includeStagesBeforeAsyncPoint, Boolean includeStagesAfterAsyncPoint) +4921
是不是版本问题?
精彩评论 17
2008-09-05
4L
出错信息如下,另附上Jmail.dll
“/WuLiu”应用程序中的服务器错误。
--------------------------------------------------------------------------------
This function is not included in this version of jmail.
说明: 执行当前 Web 请求期间,出现未处理的异常。请检查堆栈跟踪信息,以了解有关该错误以及代码中导致错误的出处的详细信息。
异常详细信息: System.Runtime.InteropServices.COMException: This function is not included in this version of jmail.
源错误:
行 57: myJmail.AddRecipient(Receiver, "", ""); //添加收件人
行 58: myJmail.Body = Content; //邮件的正文
行 59: myJmail.Send(server, true); //发送邮件
行 60: }
行 61:
源文件: e:\asp.net\TM\09\WuLiu\login.aspx.cs 行: 59
堆栈跟踪:
[COMException (0x8000ffff): This function is not included in this version of jmail.]
jmail.MessageClass.Send(String mailServer, Boolean enque) +0
log.bindEmail() in e:\asp.net\TM\09\WuLiu\login.aspx.cs:59
log.btnQyLogin_Click(Object sender, EventArgs e) in e:\asp.net\TM\09\WuLiu\login.aspx.cs:117
System.Web.UI.WebControls.Button.OnClick(EventArgs e) +75
System.Web.UI.WebControls.Button.RaisePostBackEvent(String eventArgument) +97
System.Web.UI.WebControls.Button.System.Web.UI.IPostBackEventHandler.RaisePostBackEvent(String eventArgument) +7
System.Web.UI.Page.RaisePostBackEvent(IPostBackEventHandler sourceControl, String eventArgument) +11
System.Web.UI.Page.RaisePostBackEvent(NameValueCollection postData) +33
System.Web.UI.Page.ProcessRequestMain(Boolean includeStagesBeforeAsyncPoint, Boolean includeStagesAfterAsyncPoint) +4921
2008-09-08
10L
您好:
你把以下代码修改以下:
string Subject = "欢迎登陆**物流信息管理平台";
string Content = "您登陆物流信息管理平台帐号为:" + name + "密码为:" + pass;
string Receiver = txtEmail.Text;
string server = "SMTP.sina.com";//------------修改为这个代码试下----------------
jmail.MessageClass myJmail = new jmail.MessageClass();
myJmail.Charset = "GB2312"; //设置使用的邮件字符集,默认US-ASCII 中国则为GB2312
myJmail.ISOEncodeHeaders = false; //邮件头是否使用iso-8859-1编码 默认值为true;
myJmail.From = "devilsu@sina.com"; //返回或设置发件人的地址
myJmail.Subject = Subject; //邮件的主题(标题)
myJmail.AddRecipient(Receiver, "", ""); //添加收件人
myJmail.Body = Content; //邮件的正文
myJmail.Send(server, true); //发送邮件
把server变量值改为:SMTP.sina.com试下。发送给外网的邮箱如:***@sina.com。如果不好使请给我留言。
你把以下代码修改以下:
string Subject = "欢迎登陆**物流信息管理平台";
string Content = "您登陆物流信息管理平台帐号为:" + name + "密码为:" + pass;
string Receiver = txtEmail.Text;
string server = "SMTP.sina.com";//------------修改为这个代码试下----------------
jmail.MessageClass myJmail = new jmail.MessageClass();
myJmail.Charset = "GB2312"; //设置使用的邮件字符集,默认US-ASCII 中国则为GB2312
myJmail.ISOEncodeHeaders = false; //邮件头是否使用iso-8859-1编码 默认值为true;
myJmail.From = "devilsu@sina.com"; //返回或设置发件人的地址
myJmail.Subject = Subject; //邮件的主题(标题)
myJmail.AddRecipient(Receiver, "", ""); //添加收件人
myJmail.Body = Content; //邮件的正文
myJmail.Send(server, true); //发送邮件
把server变量值改为:SMTP.sina.com试下。发送给外网的邮箱如:***@sina.com。如果不好使请给我留言。