alanrenouf/vCheck-vSphere — pull request #216 by smasterson (2014-06-10 20:29:12+00:00)
Title: Properly disposing of SMTP to prevent file lock

I noticed when sending email attachments that the SMTP client was at times leaving a lock on the file causing subsequent runs to fail (or sending the results of a previous run).
The included tweak will dispose of the email attachment as well as the message once it is sent.