string Body = sendMessage; //"<img alt=\"\" hspace=0 src=\"cid:imageId\" align=baseline border=0 ><br><hr><br><b> your new password for the tool www.achbiz.com a/c name "+username+" is : "+password+""; AlternateView htmlView = AlternateView.CreateAlternateViewFromString(Body, null, "text/html"); LinkedResource imagelink = new LinkedResource(path + @"\images\paymentcard.png", "image/jpeg"); imagelink.ContentId = "imageId"; imagelink.TransferEncoding = System.Net.Mime.TransferEncoding.Base64; htmlView.LinkedResources.Add(imagelink); myMess.AlternateViews.Add(htmlView); myMess.IsBodyHtml = true;
var
This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)