Open Closed

Email Not Working #9263


0
nitinrpatel created

Hello, I am getting error whilw sending an email.I am attaching error log & Screent of SMTP Settings.It was working fine before few weeks and accidently stoped working now.

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. Learn more at 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 Abp.Net.Mail.Smtp.SmtpEmailSender.SendEmail(MailMessage mail) at Abp.Net.Mail.EmailSenderBase.Send(MailMessage mail, Boolean normalize) at Abp.Net.Mail.EmailSenderBase.Send(String to, String subject, String body, Boolean isBodyHtml) at TechnoForms.Configuration.Host.HostSettingsAppService.<SendTestEmail>d__21.MoveNext() in F:\Projects\TechnoForms_Git_Working\TechnoForms.Application\Configuration\Host\HostSettingsAppService.cs:line 271 --- End of stack trace from previous location where exception was thrown --- at System.Runtime.CompilerServices.TaskAwaiter.ThrowForNonSuccess(Task task) at System.Runtime.CompilerServices.TaskAwaiter.HandleNonSuccessAndDebuggerNotification(Task task) at Abp.Threading.InternalAsyncHelper.<AwaitTaskWithPostActionAndFinally>d__1.MoveNext() --- End of stack trace from previous location where exception was thrown --- at System.Runtime.CompilerServices.TaskAwaiter.ThrowForNonSuccess(Task task) at System.Runtime.CompilerServices.TaskAwaiter.HandleNonSuccessAndDebuggerNotification(Task task) at Abp.Threading.InternalAsyncHelper.<AwaitTaskWithFinally>d__0.MoveNext()


3 Answer(s)
  • 0
    ismcagdas created
    Support Team

    Hi @nitinrpatel,

    Can you send email using those credentials with another program ?

  • 0
    nitinrpatel created

    Yes, I am able to share with all another programs.

  • 0
    maliming created
    Support Team

    hi @nitinrpatel You can try turning off SSL https://support.aspnetzero.com/QA/Questions/5720/SMTP-Gmail

    Or download the smtp test application and try to send email from this program. If this program sends successfully then configure the same settings for aspnet zero website. If this program fails to send email then you have a configuration problem!

    http://www.alexnolan.net/software/SMTPProber.exe