private void EmailManager(string ManagerEmail, string EmpName)
{
MailMessage mail = new MailMessage();
mail.From = new MailAddress("mailaddress");
mail.To.Add("ManagerEmail");
mail.Subject = "Birthday Wish";
var contentID = "Desert";
var inlineLogo = new Attachment(@"C:\Users\Public\Pictures\Sample Pictures\Down.jpg");
inlineLogo.ContentId = contentID;
inlineLogo.ContentDisposition.Inline = true;
inlineLogo.ContentDisposition.DispositionType = DispositionTypeNames.Inline;
mail.IsBodyHtml = true;
mail.Attachments.Add(inlineLogo);
mail.Body = "<html><body><div style ='background-image:url(\"cid:" + contentID + "\"); width: 100%; height: 500px; padding: 15px; background-repeat: no-repeat;'><span style = 'font-size: 40px; font-family: monotype corsiva; margin: 110px 110px 0 140px; display: inline-block; color: darkgreen;'>Happy Bday '" + EmpName + "'</br> Many-Many Happy Returns of the Day...</br> Stay Blessed </span></div></body></html>";
SmtpClient smtp = new SmtpClient("address");
smtp.Send(mail);
}
here i m sending an image using a location of my drive but i need that the diff images has been sent to different user...how can i do that