本文介绍了邮件发送时出错的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧! 问题描述 29岁程序员,3月因学历无情被辞! 在我的应用程序(.Net v2)中,我需要发送邮件设施。 代码如下 尝试 { MailMessage mail = new MailMessage(); mail.To [email protected]; mail.Cc [email protected]; mail.From = txtEmail.Text; mail.Subject =评论; mail.Body =Comment+:+ txtComment.Text +++Address+:+ txtAddress.Text +++Phone+: + txtPhone.Text; mail.BodyFormat = MailFormat.Html; SmtpMail.SmtpServer =webmail.me.net; SmtpMail.Send(mail); lblDisplay.Text =成功发布; } catch(Exception ex) { lblDisplay.Text = ex.Message; } 我上传但显示错误。 邮件无法发送到SMTP服务器。 传输错误代码为0x800ccc6a。 服务器响应为451 ESMTP MailEnable Service在07暂时拒绝连接/ 30/10 10:40:50来自IP(67.228.202.164),因为服务器太忙了。 我不知道问题或解决方案。解决方案 请添加smtp端口。默认情况下,smtp端口为25,但如果您的邮件服务器具有不同的smtp端口,请检查不同。请检查Web服务器上是否安装了SMTP服务。如果已安装,则检查它是否运行。 希望它能为您提供帮助。 检查是否有换行问题, b $ b http://learnlinq.blogspot.com/2008/09/message-could-not-be-sent-to-smtp.html [ ^ ] 你好, 请验证此链接 http://aspalliance.com/149 问候 Nageswaran aspnetforum.blogspot.com In my application (.Net v2), I need to send mail facility.Code as belowtry { MailMessage mail = new MailMessage(); mail.To = "[email protected]"; mail.Cc = "[email protected]"; mail.From = txtEmail.Text; mail.Subject = "Comment"; mail.Body = "Comment" + ":" + txtComment.Text + " " + " " + "Address" + ":" + txtAddress.Text + " " + " " + "Phone" + ":" + txtPhone.Text; mail.BodyFormat = MailFormat.Html; SmtpMail.SmtpServer = "webmail.me.net"; SmtpMail.Send(mail); lblDisplay.Text = "Successfully Posted"; } catch (Exception ex) { lblDisplay.Text = ex.Message; }I uploaded it but it shows an error.The message could not be sent to the SMTP server.The transport error code was 0x800ccc6a.The server response was 451 ESMTP MailEnable Service temporarily refused connection at 07/30/10 10:40:50 from IP (67.228.202.164) because the server is too busy.I don't know the problem or the solution. 解决方案 please add also smtp port. by default smtp port is 25 but check for different if your mail server have different smtp port. Please check also SMTP services is installed or not on web server. if it is installed then check it for running or not.hope it will help you.Check if its a line feed issue,http://learnlinq.blogspot.com/2008/09/message-could-not-be-sent-to-smtp.html[^]Hi,Please verify this linkhttp://aspalliance.com/149RegardsNageswaranaspnetforum.blogspot.com 这篇关于邮件发送时出错的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持! 上岸,阿里云!
08-21 17:12