在asp.net中发送电子邮件请求 [英] sending request for email in asp.net
本文介绍了在asp.net中发送电子邮件请求的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!
问题描述
如何清除错误并在页面中添加身份验证标签代码
How to remove the error and add the authentication tag code in page
The SMTP server requires a secure connection or the client was not authenticated. The server response was: 5.5.1 Authentication Required. Learn more at
smcl.Credentials = new System.Net.NetworkCredential(ea@gmail.com;Password;);
Line 50: smcl.EnableSsl = true;
Line 51: smcl.Send(mm);
Line 52: Response.Write("<script>alert('Your account has been sucessecfully created please check your Email Id to verify Your Account')</script>");
Line 53:
推荐答案
我认为这篇文章可以为您提供帮助:
使用C#发送带有或不带有附件的电子邮件:通用例程. [ ^ ]
Hi,
I think this article can help you:
Sending an Email in C# with or without attachments: generic routine.[^]
由于您已经创建了网络凭据并通过对SMTP服务器的调用传递了它们,因此我认为凭据本身不是有效.
万一您错过了代码中的某些内容,可以检查此 [ ^ ]教程并进行比较您的代码.
如果您没有很好的答案,请使用改进问题"小部件向您的问题添加代码段,以便我们可以看到相关邮件的创建和发送.
干杯.
Since you have created your network credentials and passed them through with the call to the SMTP server, I would assume that the credentials themselves are not valid.
Just in case you have missed something in your code, you can check this[^] tutorial and compare your code to it.
If you haven''t got a good answer, please add a code snippet to your question using the Improve Question widget so that we can see the relevant mail message creation and send.
Cheers.
这篇关于在asp.net中发送电子邮件请求的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!
查看全文