When I use SmtpClient\'s SendAsync to send email, how do I dispose the smtpclient instance correctly?
Let\'s say:
MailMessage mail = new
You should dispose both the MailMessage and the SmtpClient in SendAsyncCallback.
Disposing the MailMessage will not dispose the SmtpClient automatically (because you might want to send two messages with the same SmtpClient, and you wouldn't want the client to be disposed as soon as you disposed the first message).