باسلام
من از اینhttp://barnamenevisan.org/Articles/Article2663.html آموزشتون استفاده کردم ولی با این خطا مواجه شدم ممنون میشم راهنمایی کنید
Line 60: smtp.Send(mm);
از جیمیل استفاده میکنید ؟
با تنظیمات حساب خارجی را فعال کنید
وارد لینک زیر شوید و گزینه Enable را انتخاب کنید
من این تنظیماتو انجام دادم ولی جواب نداد از gmail ام استفاده کردم.
متن ارور را ضمیمه کنید
Server Error in '/' Application. 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 Description: An unhandled exception occurred during the execution of the current web request. Please review the stack trace for more information about the error and where it originated in the code. Exception Details: System.Net.Mail.SmtpException: 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 Source Error: Line 57: smtp.Credentials = NetworkCred; Line 58: smtp.Port = 587; Line 59: smtp.Send(mm); Line 60: lblMessage.ForeColor = Color.Green; Line 61: lblMessage.Text = "Password has been sent to your email address.";
این ارور عدم اهراز هویت است
این لینک رو ببینید
هیچ کاربری تا کنون از این پست تشکر نکرده است
با ما تماس بگیرید تا در این مسیر همراهتان باشیم :)