mgarey 0 Posted October 14, 2019 Would it be possible to get a synchronous version of the SslSmtpClient? I have a process that loops through orders and sends emails so I need it to complete before going to the next order. As it is, I can only do one at a time and the user has to click Send Email multiple times to send all of them. Thanks. Share this post Link to post
FPiette 383 Posted October 14, 2019 You'd better replace your loop by an event chain. This is easy to do once you understood event driven programming. This being said, you can make a synchronous version by using a wait loop. This will waste CPU... Share this post Link to post
Angus Robertson 574 Posted October 14, 2019 Look at the new TIcsMailQueue component added to ICS earlier this year, it does exactly what you need. You can queue hundreds of emails at the same time, and they will be sent and retried over several minutes or days. The component is described half way down the page at http://wiki.overbyte.eu/wiki/index.php/ICS_V8.60 Angus Share this post Link to post
mgarey 0 Posted October 15, 2019 Thank you Angus, that will work perfectly! Share this post Link to post