title: How to capture SMTP transcript when using SmtpClient in .NET
body: <p>I would like to know if there is a simple way to capture a transcript of the SMTP session when sending email using the System.Net.Mail.MailClient.  In cases where an error is generated (ex: relaying denied) I would like to display the whole transcript to the user.</p>
  
  <p>If there are previous questions that discuss this I was unable to find them.  I am working with VB.NET, but C# examples are also appreciated.  Thanks in advance for any suggestions!</p>
  
  <p>Cheers,
  JE</p>