seq-app-htmlemail icon indicating copy to clipboard operation
seq-app-htmlemail copied to clipboard

Retry Sends?

Open zx48 opened this issue 3 years ago • 2 comments

We now and again get a send issue from the app like this:

System.Net.Mail.SmtpException: Error in processing. The server response was: 4.3.111 Temporary server error. Please try again later MRH1 [Hostname=GVXP192MB1782.EURP192.PROD.OUTLOOK.COM] at System.Net.Mail.DataStopCommand.CheckResponse(SmtpStatusCode statusCode, String serverResponse) at System.Net.Mail.DataStopCommand.Send(SmtpConnection conn) at System.Net.Mail.SmtpClient.Send(MailMessage message) at Seq.App.EmailPlus.EmailApp.On(Event`1 evt) in C:\projects\seq-apps\src\Seq.App.EmailPlus\EmailApp.cs:line 145 at SeqCli.Apps.Hosting.AppContainer.SendTypedEventAsync(String clef) in C:\projects\seqcli\src\SeqCli\Apps\Hosting\AppContainer.cs:line 132

Would it be possible to have it retry on a backoff? (for example using Polly)

zx48 avatar Jun 01 '22 12:06 zx48

Hi @cjindustries,

That is an interesting idea and I think it is possible. In your particular circumstance are you able to gather from O365 why the server rejects the mail? Many of the possible reasons seem like things that won't be helped by a retry (mailbox full etc).

liammclennan avatar Jun 02 '22 05:06 liammclennan

In case it helps in the meantime: https://serverfault.com/questions/1102376/error-sending-email-with-office-365 has some configuration suggestions on the O365 end.

nblumhardt avatar Jul 11 '22 06:07 nblumhardt