Send email in Kentico 8.xx
This is an example method to send data in Kentico 8.xx Send email method using CMS.EmailEngine; using CMS.EventLog; ::: ::: public static class CustomClass { public static void SendEmail(string EmailTemplateCode, MacroResolver mcr,string recipients) { EmailMessage msg = new CMS.EmailEngine.EmailMessage(); EmailTemplateInfo eti = EmailTemplateProvider.GetEmailTemplate(EmailTemplateCode, SiteContext.CurrentSiteID); msg.EmailFormat = EmailFormatEnum.Both; msg.From = eti.TemplateFrom; msg.Recipients = recipients; msg.Subject = eti.TemplateSubject; try { ...