 <p>This looks correct.</p> <p>Note that <code>MailMessage</code> does not override <code>ToString</code>, so your logs will simply say <code>[MailMessage] Send cancelled</code>.<br> You might want to use the <code>Subject</code> proeprty (or some other property) instead.</p>