- ABP Framework version: v5.3.2 commercial
- UI type: Blazor Server
- DB provider: EF Core
Hello,
We have noticed an intermittent issue with EmailSenderBase.QueueAsync() where emails are not always being sent (about 50% of the emails "queued" are never received by their recipients).
We have noticed that for the emails sent to QueueAsync(), some of the emails are immediately sent via our custom SendEmailAsync(MailMessage mail) override, whereas the others neither reach this method, nor are ever received by the recipient.
Simultaneously in our logs, we have noticed some SMTP errors indicating:
- Message Failure sending mail. Connection refused
- Exception type System.Net.Sockets.SocketException
- Failed method Volo.Abp.Emailing.Smtp.SmtpEmailSender+<SendEmailAsync>d__5.MoveNext
If we use SendAsync(), the emails are delivered 100% of the time.
We wonder if we have missing configuration that is causing the emails to be queued to be missent to perhaps the wrong endpoint. Can you point us to any documentation that might help us confirm if our queuing system is misconfigured?
Thanks. Russel