I am developing an Asp.Net application, where I am sending a mail to the user\'s email address, if he forgets the password.
I want to check if the mail has been sent
Put the .Send(msg) method in a try catch block, and catch SmtpFailedRecipientException.
try { mail.Send(msg); } catch (SmtpFailedRecipientException ex) { // ex.FailedRecipient and ex.GetBaseException() should give you enough info. }