janhebnes / startlist.club

Flight Log for flight clubs - created for handling flight log operations for soaring flight clubs in northern Europe.
https://startlist.club/about
MIT License
13 stars 10 forks source link

Live and Demo are having issues on sending to SMTP server on Azure. #204

Closed janhebnes closed 2 years ago

janhebnes commented 2 years ago

`Server Error in '/' Application.

The SMTP server requires a secure connection or the client was not authenticated. The server response was: 5.7.0 Authentication required 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.7.0 Authentication required Source Error: An unhandled exception was generated during the execution of the current web request. Information regarding the origin and location of the exception can be identified using the exception stack trace below. Stack Trace:

[SmtpException: The SMTP server requires a secure connection or the client was not authenticated. The server response was: 5.7.0 Authentication required] System.Net.Mail.MailCommand.CheckResponse(SmtpStatusCode statusCode, String response) +116 System.Net.Mail.MailCommand.Send(SmtpConnection conn, Byte[] command, MailAddress from, Boolean allowUnicode) +48 System.Net.Mail.SmtpTransport.SendMail(MailAddress sender, MailAddressCollection recipients, String deliveryNotify, Boolean allowUnicode, SmtpFailedRecipientException& exception) +88 System.Net.Mail.SmtpClient.Send(MailMessage message) +1857 FlightJournal.Web.Models.EmailService.SendAsync(IdentityMessage message) in D:\a\startlist.club\startlist.club\FlightJournal.Web\App_Start\IdentityConfig. cs:177 [Exception: Failed to send to larssverrerasmussen@gmail.com from no- reply@startlist.club] FlightJournal.Web.Models.EmailService.SendAsync(IdentityMessage message) in D:\a\startlist.club\startlist.club\FlightJournal.Web\App_Start\IdentityConfig. cs:186 Microsoft.AspNet.Identity.<SendEmailAsync>d136.MoveNext() +329 System.Runtime.CompilerServices.TaskAwaiter.ThrowForNonSuccess(Task task) +102 System.Runtime.CompilerServices.TaskAwaiter.HandleNonSuccessAndDebuggerNotific ation(Task task) +64 FlightJournal.Web.Controllers.<GenerateEmailConfirmationEmail>d17.MoveNext()`

janhebnes commented 2 years ago

A clean up on accounts on the mail server had flushed the service account. Account has been restored.