title: How to get success or failure notification Asynchronously sending Emails in C#?
body: <p>I prepared an email notification using Asynchronously for my current C# project.</p>
  
  <pre><code>smtpClient.SendMailAsync(message);
  </code></pre>
  
  <p>But there is not such way to get the success or failure notification from this email. Can you please suggest a proper method for this. 
  Here is the code below:</p>
  
  <pre><code>MailMessage mail = new MailMessage(); 
  mail.From = new MailAddress("me@mycompany.com"); 
  mail.To.Add("you@yourcompany.com"); 
  mail.Subject = "This is an email"; 
  mail.Body = "this is the body content of the email."; 
  SmtpClient smtp = new SmtpClient("127.0.0.1"); //specify the mail server address 
  object userState = mail; 
  smtp.SendCompleted += new SendCompletedEventHandler(SmtpClient_OnCompleted); 
  smtp.SendAsync( mail, userState ); 
  </code></pre>