title: c# MailMessage attachment location
body: <p>I want to add an attachment to use as a header image in an email.  But when I try to attach the file the path is reading from windows and not from my solution directory location.  How do I do that?</p>
  
  <pre><code> var msg = new MailMessage(fromMailAdress, toEmail) { Subject = subject, Body = emailBody };
              msg.Attachments.Add(new Attachment("../images/logo.jpg"));
  </code></pre>
  
  <p>reads from c:\windows\system32\images\logo.jpg'</p>
  
  <p>I want it from the solution level project/images/logo.jpg</p>