• 1397/08/22

خطا هنگام ارسال ایمیل فعال سازی :

سلام وقتی مخوادایمیل ارسال بشه 

این خطا میده 

System.Net.Mail.SmtpException
  HResult=0x80131500
  Message=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=System.Net.Mail
  StackTrace:
   at System.Net.Mail.MailCommand.CheckResponse(SmtpStatusCode statusCode, String response)
   at System.Net.Mail.MailCommand.Send(SmtpConnection conn, Byte[] command, MailAddress from, Boolean allowUnicode)
   at System.Net.Mail.SmtpTransport.SendMail(MailAddress sender, MailAddressCollection recipients, String deliveryNotify, Boolean allowUnicode, SmtpFailedRecipientException& exception)
   at System.Net.Mail.SmtpClient.Send(MailMessage message)
   at Amlakyar.Core.Senders.SendEmail.Send(String to, String subject, String body) in E:\h\Webamlakyar\amlakyar.Core\Senders\SendEmail.cs:line 29
   at WebAmlakyar.Controllers.AccountController.Register(RegisterViewModel register) in E:\h\Webamlakyar\Webamlakyar\Controllers\AccountController.cs:line 76
   at Microsoft.Extensions.Internal.ObjectMethodExecutor.Execute(Object target, Object[] parameters)
   at Microsoft.AspNetCore.Mvc.Internal.ActionMethodExecutor.SyncActionResultExecutor.Execute(IActionResultTypeMapper mapper, ObjectMethodExecutor executor, Object controller, Object[] arguments)
   at Microsoft.AspNetCore.Mvc.Internal.ControllerActionInvoker.<InvokeActionMethodAsync>d__12.MoveNext()

علت چیست و چکار باید انجام بدم 

  • 1397/08/22
  • ساعت 16:42

سلام 

لینک های زیر رو دنبال کنید 

https://www.google.com/settings/security/lesssecureapps


2 --

http://www.smarterasp.net/support/kb/a1546/send-email-from-gmail-with-smtp-authentication-but-got-5_5_1-authentication-required-error.aspx


logo-samandehi