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

Tenant-specific routes for dynamically loaded modules

I am using ASP.NET MVC to develop an application framework. Essentially, the end goal is to be able to log into an admin interface, create a new tenant with custom settings, enable the modules they want (blog, shopping basket, etc)… job done – satisfied customer with new website. I’m not using separate applications because there will be a lot of shared code and it would be easier to maintain this way, and also because it would be pretty easy to bring a new, identical node online at peak times.