VS 2010 code analysis reports the following:
Warning 4 CA2000 : Microsoft.Reliability : In method \'Mailer.SendMessage()\', object \'client\' is not disposed along
This is the neater solution that will pass the code police test (and dispose will always be called if Send fails):
public void SendMessage() { using (SmtpClient client = new SmtpClient()) { client.Send(Message); DisposeAttachments(); } }