How to send email using GMAIL API having HTML body + attachment in ASP.NET

var msg = new AE.Net.Mail.MailMessage { Subject = subject, Body = bodyhtml, From = new System.Net.Mail.MailAddress("myemail") }; foreach (string add in vendorEmailList.Split(',')) { if (string.IsNullOrEmpty(add)) continue; msg.To.Add(new System.Net.Mail.MailAddress(add)); } msg.ReplyTo.Add(msg.From); // Bounces without this!! msg.ContentType = "text/html"; ////attachment code foreach (string path in attachments) { var bytes = File.ReadAllBytes(path); string mimeType = MimeMapping.GetMimeMapping(path); AE.Net.Mail.Attachment attachment … Read more