title: Image not showing in gmail mail body after sending it from asp.net c# net.mail as mail.body
body: <p>I need to send the qrcode generated from the email to his gmail account. I debugged the code and checked with html visualizer and the qrcode is displaying correctly but cannot see it in gmail message</p>
  
  <pre><code>public void generate_qrcode()
              {
                  try
                  {
                      string imgurl;
                      string code = txtCode.Text;
                      QRCodeGenerator qrGenerator = new QRCodeGenerator();
                      QRCodeGenerator.QRCode qrCode = qrGenerator.CreateQrCode(code, QRCodeGenerator.ECCLevel.Q);
                      System.Web.UI.WebControls.Image imgBarCode = new System.Web.UI.WebControls.Image();
                      imgBarCode.Height = 150;
                      imgBarCode.Width = 150;
                      using (Bitmap bitMap = qrCode.GetGraphic(20))
                      {
                          using (MemoryStream ms = new MemoryStream())
                          {
                              bitMap.Save(ms, System.Drawing.Imaging.ImageFormat.Png);
                              byte[] byteImage = ms.ToArray();
                              imgBarCode.ImageUrl = "data:image/png;base64," + Convert.ToBase64String(byteImage);
                              imgurl = "data:image/png;base64," + Convert.ToBase64String(byteImage);
                          }
                          //plBarCode.Controls.Add(imgBarCode);
                      }
                      SendMail(imgurl);
                  }
                  catch (Exception ex)
                  {
                  }
              }
   public void SendMail(String imgurl)
          {
              string body = "Hello ,&lt;br /&gt;&lt;br /&gt;Please find your QRcode below&lt;br /&gt;&lt;br /&gt;&lt;img src=' " + imgurl + " ' height='100' width='100'/&gt;&lt;br/&gt;&lt;br/&gt;Thanks...";
              SmtpClient Smtp_Server = new SmtpClient();
              MailMessage e_mail = new MailMessage();
              Smtp_Server.UseDefaultCredentials = false;
              Smtp_Server.Credentials = new System.Net.NetworkCredential("samplemail527@gmail.com", "Sample527");
              Smtp_Server.Port = 587;
              Smtp_Server.EnableSsl = true;
              Smtp_Server.Host = "smtp.gmail.com";
              e_mail = new MailMessage();
              e_mail.From = new MailAddress("samplemail527@gmail.com");
              e_mail.To.Add(txtCode.Text);
              e_mail.Subject = "Email Sending";
              e_mail.IsBodyHtml = true;
              e_mail.Body = body;
              Smtp_Server.Send(e_mail);
          }
  </code></pre>
  
  <p><a href="https://i.stack.imgur.com/nYkGV.png" rel="nofollow noreferrer"><img src="https://i.stack.imgur.com/nYkGV.png" alt="Image not displaying in gmail"></a></p>