In the SmtpClient
class, does SendAsyncCancel
cancel the SendMailAsync
method?
I see a few code examples on the www which imply it does.
However MSDN says,
Use the SendAsyncCancel method to cancel a pending SendAsync operation. If there is mail waiting to be sent, this method releases resources used to store the mail. If there is no mail waiting to be sent, this method does nothing.
... which implies that it cancels SendAsync
but not SendMailAsync
.
Is there a way to cancel SendMailAsync
? If not, why not?
If you want to cancel an asynchronous send (therefore use the old SendAsync
instead of the newer SendMailAsync
), what are any other disadvantages of using SendAsync
instead of SendMailAsync
?