What it says on the tin.
Why can't you send multiple emails asynchronously using the same SmtpClient instance?
3.9k views Asked by James At
2
There are 2 answers
9
On
According to MSDN:
After calling SendAsync, you must wait for the e-mail transmission to complete before attempting to send another e-mail message using Send or SendAsync.
So you could reuse the same instance but you must wait for the first mail to be sent.
According to the MSDN page on SmtpClient, the only purpose for SendAsync is to allow your current thread to continue processing instead of waiting for the transmission to process. The purpose of SendAsync isn't to allow you to send multiple messages at once, it's to allow you to continue processing while it sends the message. SendAsync and Send are both using the same pipeline, SendAsync just allows you to do other things while the message is sent.