I hosted the application. But when I check the email test functionality it is getting failed showing the below error in log:
MailKit.Net.Smtp.SmtpProtocolException: The SMTP server has unexpectedly disconnected. at MailKit.Net.Smtp.SmtpStream.ReadAheadAsync(Boolean doAsync, CancellationToken cancellationToken) at MailKit.Net.Smtp.SmtpStream.ReadResponseAsync(Boolean doAsync, CancellationToken cancellationToken) at MailKit.Net.Smtp.SmtpClient.ConnectAsync(String host, Int32 port, SecureSocketOptions options, Boolean doAsync, CancellationToken cancellationToken) at Grand.Services.Messages.EmailSender.SendEmail(EmailAccount emailAccount, String subject, String body, String fromAddress, String fromName, String toAddress, String toName, String replyToAddress, String replyToName, IEnumerable`1 bccAddresses, IEnumerable`1 ccAddresses, String attachmentFilePath, String attachmentFileName, IEnumerable`1 attachedDownloads) in F:\Samson\Workspace\Qomash\Staging\Grand.Services\Messages\EmailSender.cs:line 147 at Grand.Services.Tasks.QueuedMessagesSendScheduleTask.Execute() in F:\Staging\Grand.Services\Tasks\QueuedMessagesSendScheduleTask.cs:line 62
But the same settings works perfectly fine when ruining in local environment. Kindly advice if I need to do anything on the settings