title: Error when attaching a logo to asp.net generated email
body: <p>I have an asp.net app that is sending out an email. Within the email, I want to attach a corporate logo in the signature area (below the main body).  Looking at this site <a href="http://www.codeproject.com/Articles/16730/Embed-image-in-Email-ASP-NET-C" rel="nofollow">Embed image in Email - ASP.NET , C#</a><br>
  I get an error at<br>
  <code>AlternateView av1 = AlternateView.CreateAlternateViewFromString("&lt;html&gt;&lt;body&gt;" + msgBody, null, MediaTypeNames.Text.Html + "&lt;br&gt;&lt;img src=cid:companylogo/&gt;&lt;br&gt;&lt;/body&gt;&lt;/html&gt;");</code>  </p>
  
  <p>The error is: <strong>The specified media type is invalid.</strong>  </p>
  
  <p>My code is:  </p>
  
  <pre><code>msgBody += "Contact Email: " + contactemailaddr + "&lt;br/&gt;&lt;br/&gt;";
  LinkedResource logo = new LinkedResource("C:\\Data\\Images\\companylogo.jpg");
  logo.ContentId = "corpLogo";
  
  AlternateView av1 = AlternateView.CreateAlternateViewFromString("&lt;html&gt;&lt;body&gt;" + msgBody, null, MediaTypeNames.Text.Html + "&lt;br&gt;&lt;img src=cid:companylogo/&gt;&lt;br&gt;&lt;/body&gt;&lt;/html&gt;");
  av1.LinkedResources.Add(logo);
  message.AlternateViews.Add(av1);
  </code></pre>
  
  <p>Any ideas what could be causing this?</p>