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
Kirtan PatelPosted Aug 24, 2009, 8:03 AM
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);
}
asif bashaPosted Aug 24, 2009, 12:34 AM
Meetu ChoudharyPosted Aug 22, 2009, 5:46 AM
asif bashaPosted Aug 22, 2009, 3:43 AM
Meetu ChoudharyPosted Aug 22, 2009, 3:39 AM