title: Send image in mail body
body: <p>I want to send image in Mail body not a attachment.</p>
  
  <p>Here is my code.</p>
  
  <pre><code>MailMessage mail = new MailMessage();
  mail.To.Add(new MailAddress(""toaddress"));
  
  mail.Subject = strSubject;
  mail.Body = "&lt;html&gt;&lt;body&gt;&lt;img src=cid:companylogo/&gt;&lt;br&gt;&lt;p&gt;Dear Member,&lt;/p&gt;" + strBody + "&lt;br/&gt;&lt;b&gt;Regards&lt;/b&gt;,&lt;br/&gt;Team&lt;/body&gt;&lt;/html&gt;";
  mail.IsBodyHtml = true;
  AlternateView altView = AlternateView.CreateAlternateViewFromString(mail.Body, null, MediaTypeNames.Text.Html);
  
  LinkedResource logo = new LinkedResource("logo.jpg", MediaTypeNames.Image.Jpeg);
  logo.ContentId = "companylogo";
  altView.LinkedResources.Add(logo);
  mail.AlternateViews.Add(altView);
  SmtpClient client = new SmtpClient();
  client.Send(mail);
  </code></pre>
  
  <p>Using this I am getting image as an attachment.</p>
  
  <p>How I will send it as a Mail body?</p>