title: sending image in mail in asp
body: <p>i am using c# code to sent the mail to another user.
  it works fine when i send text in it..
  now i want to send image so that the image what i sent should open in his inbox. means the image should go as message body not the attachments..
  i am using the code to sent the image as:</p>
  
  <pre><code>    System.Net.Mail.Attachment attach =
                  new System.Net.Mail.Attachment(
                      "C:\\Documents and Settings\\All Users\\Documents\\My Pictures\\Sample Pictures\\Winter.jpg");
              Random Rgen = new Random();
              attach.ContentId = Rgen.Next(100000, 9999999).ToString();
              attach.ContentDisposition.Inline = true;
    MailMessage m = new MailMessage();
   m.From = new MailAddress("swe@gmail.com");
              m.To.Add(new MailAddress("qwe@gmail.com"));
    m.IsBodyHtml = true;
  
              m.Body = "&lt;html&gt;&lt;body&gt;&lt;h1&gt;Picture&lt;/h1&gt;&lt;br&gt;&lt;img src='cid:" + attach.ContentId + "'&gt;&lt;/body&gt;&lt;/html&gt;";
              //m.Body = inline.ToString();
              // m.Body = "&lt;img src='cid:" + attach.ContentId + "'&gt;";
              SmtpClient client = new SmtpClient("smtp.gmail.com");
              client.Credentials = new System.Net.NetworkCredential("swe@gmail.com", "swe");
              client.EnableSsl = true;
  
              client.Send(m);
  </code></pre>
  
  <p>but it is not sending the image as message..</p>
  
  <p>please help me out..</p>