SMTP Error After Hosting

Thursday, March 28, 2024 3:25:59 PM
  • Posted: Sunday, June 7, 2020 8:36 AM
  • 82
Dear Patryk,

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




0
  • Posted: Sunday, June 7, 2020 6:28 PM
  • 953
Hi,

Please try to play with email account settings. Probably it's something with "Secure socket options (specify the SSL and/or TLS encryption)".
Best regards,
Patryk

GrandNode Team
0
back to top
Filters