title: How to put a chart in an smtp email
body: <p>I am looking to include a pie chart in a html smtp email.</p>
  
  <p>I thought about an ASP.NET chart first, but this is on the front end. Then I thought about High Charts but I can't attach the javascript for them. Finally I decided on Google Chart API.</p>
  
  <p>I searched around and found if I put the URL into an image tag it will put the image returned from the URL into my email. But I've done this and am only getting the "alt" text. A bit of googling said I need to make my smtp HTML. But I've done that too and still no image.</p>
  
  <pre><code>var mail = new MailMessage();
  mail.From = new MailAddress("email@address.com");
  mail.To.Add("email@address.com");
  mail.Subject = "Chart Test";
  mail.Body = "&lt;img src='https://chart.googleapis.com/chart?chs=250x100&amp;chd=t:60,40&amp;cht=p3&amp;chl=Hello|World' alt='chart' /&gt;";
  mail.IsBodyHtml = true;
  
  var smtp = new SmtpClient();
  smtp.Send(mail);
  </code></pre>
  
  <p>Any suggestions would be greatly appreciated.</p>
  
  <p>Ps - This is my first post so be gentle lol</p>