How to embed dynamic image in mail while sending the mail
How to embed dynamic image in mail while sending the mail..My problem actually means that I should be able to embed dynamic image in the mail such I could get the response when the user views that mail....In the sense I should get response with help of image

Meetu ChoudharyRank #1,984 · 735 reputationPosted Aug 21, 2009, 11:39 PM EDT
asif basha33 reputationPosted Aug 21, 2009, 11:43 PM EDT
Meetu ChoudharyRank #1,984 · 735 reputationPosted Aug 22, 2009, 1:46 AM EDT
asif basha33 reputationPosted Aug 23, 2009, 8:34 PM EDT
Kirtan PatelRank #292 · 8.6K reputationPosted Aug 24, 2009, 4:03 AM EDT
dont forget to mark " Do you like Answer" it will give me some credits :)
protected void Button1_Click(object sender, EventArgs e)
{
//your Image Path
string imagepath = "http://xyz.com/x.jpg";
SmtpClient sclient = new SmtpClient("smtp.gmail.com", 25);
sclient.Credentials = new NetworkCredential("[email protected]", "mypassword");
sclient.EnableSsl = true;
MailMessage m = new MailMessage(new MailAddress("[email protected]"), new MailAddress("[email protected]"));
m.IsBodyHtml = true;
// you Can Create Any Other HTML Content Here
m.Body = "
">";
sclient.Send(m);
}