恢复asp.net的密码控制 [英] Recover password control of asp.net
本文介绍了恢复asp.net的密码控制的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!
问题描述
你好朋友,
我在我的应用程序中使用恢复密码"控件.
我已经在web.config中进行了更改,例如
Hello friends,
i am using Recover Password control in my application.
I have done changes in web.config such as
<system.net>
<mailSettings>
<smtp from="rashidchamp1@gmail.com" deliveryMethod="Network">
<network host="smtp.gmail.com" port="587" userName="abc@gmail.com" password="XXXX" defaultCredentials="false"/>
</smtp>
</mailSettings>
</system.net>
并相应地使用了成员资格表.
但是,当我单击提交"以通过电子邮件恢复新密码时,它显示了
错误
and have used membership tables accordingly.
But when i click on submit to recover a new password via email it shows me error of
System.Net.Mail.SmtpException: The SMTP server requires a secure connection or the client was not authenticated. The server response was: 5.7.0 Must issue a STARTTLS command first. x8sm12425810pbr.11
请帮助
推荐答案
解决方案是gmail要求您使用安全连接.可以使用enableSsl属性在您的web.config中将其设置为true,如下所示:
Solution is that gmail requires you to use a secure connection. It can be set in your web.config using enableSsl attribute as true like this:
<network host="smtp.gmail.com" enablessl="true" port="587" username="abc@gmail.com" password="XXXX" defaultcredentials="false" />
这篇关于恢复asp.net的密码控制的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!
查看全文