umbarco The SMTP server does not support the STARTTLS extension.
Am using Umbraco 10.2 am trying to add SMTP for forgot password and invite user to back office users.
I add my SMTP configuration in app settings.
but i got this error :
System.NotSupportedException: The SMTP server does not support the STARTTLS extension.
at MailKit.Net.Smtp.SmtpClient.ConnectAsync(String host, Int32 port, SecureSocketOptions options, Boolean doAsync, CancellationToken cancellationToken)
at Umbraco.Cms.Infrastructure.Mail.EmailSender.SendAsyncInternal(EmailMessage message, String emailType, Boolean enableNotification)
at Umbraco.Cms.Infrastructure.Mail.EmailSender.SendAsync(EmailMessage message, String emailType)
at Umbraco.Cms.Web.BackOffice.Controllers.AuthenticationController.PostRequestPasswordReset(RequestPasswordResetModel model)
at Microsoft.AspNetCore.Mvc.Infrastructure.ActionMethodExecutor.TaskOfIActionResultExecutor.Execute(IActionResultTypeMapper mapper, ObjectMethodExecutor executor, Object controller, Object[] arguments)
at Microsoft.AspNetCore.Mvc.Infrastructure.ControllerActionInvoker.
umbarco The SMTP server does not support the STARTTLS extension.
Am using Umbraco 10.2 am trying to add SMTP for forgot password and invite user to back office users.
I add my SMTP configuration in app settings.
but i got this error : System.NotSupportedException: The SMTP server does not support the STARTTLS extension. at MailKit.Net.Smtp.SmtpClient.ConnectAsync(String host, Int32 port, SecureSocketOptions options, Boolean doAsync, CancellationToken cancellationToken) at Umbraco.Cms.Infrastructure.Mail.EmailSender.SendAsyncInternal(EmailMessage message, String emailType, Boolean enableNotification) at Umbraco.Cms.Infrastructure.Mail.EmailSender.SendAsync(EmailMessage message, String emailType) at Umbraco.Cms.Web.BackOffice.Controllers.AuthenticationController.PostRequestPasswordReset(RequestPasswordResetModel model) at Microsoft.AspNetCore.Mvc.Infrastructure.ActionMethodExecutor.TaskOfIActionResultExecutor.Execute(IActionResultTypeMapper mapper, ObjectMethodExecutor executor, Object controller, Object[] arguments) at Microsoft.AspNetCore.Mvc.Infrastructure.ControllerActionInvoker.
what settings have you used? Sounds like your smtp server doesn't support the protocol/port you have chosen
yes it smpt server: "Smtp": { "enableSsl": null, "From": "xxxxxxxx", "Host": "xxxxxxx, "Port": , "SecureSocketOptions": "StartTls", "Username": "xxxxxxxxxxxx", "Password": "xxxxxxxxxxxxxxx" }
try setting "SecureSocketOptions" to "Auto" plus you also need to provide the port number
These are my settings, but you will need to check with your mailhost as to what is supported.
i got a new error Unable to parse status code returned by the server.
what smtp ports/protocols does your mailhost support?
i just change the port to 587 and now it is working thanks.
is working on a reply...