Jump to content
mgarey

Need Synchronous SslSmtpClient

Recommended Posts

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

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

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now
×