title: How do I embed an image in a .NET HTML Mail Message?
body: <p>I have an HTML Mail template, with a place holder for the image. I am getting the image I need to send out of a database and saving it into a photo directory. I need to embed the image in the HTML Message.</p>
  
  <p>I have explored using an AlternateView:</p>
  
  <pre><code>AlternateView htmlView = AlternateView.CreateAlternateViewFromString("&lt;HTML&gt; &lt;img src=cid:VisitorImage&gt; &lt;/HTML&gt;");
  
  LinkedResource VisitorImage = new LinkedResource(p_ImagePath);
  VisitorImage.ContentId= "VisitorImage";
  htmlView.LinkedResources.Add(VisitorImage);
  </code></pre>