title: Using SmtpClient to send a file attachment
body: <p>I am using the <code>SmtpClient</code> class to send mail and also attach files. Everything seems to work fine, except that the filename in the email attachment says <code>filestest.docx</code> instead of <code>test.docx</code>. It is by default appending the folder name the file is located under. I would like to see only the actual file name.</p>
  
  <pre><code>msg.Attachments.Add(new Attachment("I:/files/test.docx"));
  </code></pre>
  
  <p>Any ideas?</p>