How do I send emails on a timer in an ASP.NET webforms application?
My client is having issues with their legacy system (ASP.NET webforms) sending emails as they are bottlenecking. So I made the code asynchronous (eg. await smtpClient.SendMailAsync(newMail);) and this works, but I'm now being told that the delay may be on the client (receiver) side as their server does not seem to want to receive too many emails at once from the same email address. Therefore, they are asking if I can add code to send 20 emails, then wait 5 minutes, then send another 20 until they have all been sent. Can someone please tell me how I do this?
0 upvotes
View original discussion ↗
Comments
Sign in or sign up to comment and upvote.
No comments yet.