//private EmailBE GetWebinarContent(string ReqType, int webinarID) //{ // EmailBE objEmailBE = new EmailBE(); // string tplValue = ""; // if (objWBEmail.Count > 0) // { // objEmailBE.EmailContent = objWBEmail[0].EmailContent; // objEmailBE.FromEmail = ""; // objEmailBE.RequestType = objWBEmail[0].RequestType; // objEmailBE.Subject = objWBEmail[0].Subject; // } //} private EmailBE GetWebinarContent(string ReqType, string emailSubject, string tplFileName) { EmailBE objEmailBE = new EmailBE(); string tplValue = ""; hWebinarID.Value = Request["ID"].ToString(); List<WebinarEmailBE> objWBEmail = objEmailDA.GetWebinarEmail(Convert.ToInt32(hWebinarID.Value), ReqType); if (objWBEmail.Count == 0) { TemplateMgmt objTemplateMgmt = new TemplateMgmt(); tplValue = objTemplateMgmt.GetReminderEmail(Constant.DocTemplate + tplFileName); SaveEmail(tplValue, emailSubject, ReqType, Convert.ToInt32(hWebinarID.Value)); objEmailBE.EmailContent = tplValue; objEmailBE.FromEmail = ""; objEmailBE.RequestType = ReqType; objEmailBE.Subject = emailSubject; } else { objEmailBE.EmailContent = objWBEmail[0].EmailContent; objEmailBE.FromEmail = ""; objEmailBE.RequestType = objWBEmail[0].RequestType; objEmailBE.Subject = objWBEmail[0].Subject; } return objEmailBE; }
private string getFormedEmailContent(string contentWithTags) { string rtn = ""; List<WebinarBE> objWebBE = objWebinarDA.GetWebinarDetailDA(Convert.ToInt32(hWebinarID.Value)); if (objWebBE.Count > 0) { WebinarReminderEmailTemplateBO objTpl = new WebinarReminderEmailTemplateBO(); objTpl.EventDate = objWebBE[0].StartDate.ToShortDateString(); objTpl.EventTime = objWebBE[0].StartTime; objTpl.TimeZoneName = objWebBE[0].TimeZoneID.ToString(); // need to call function to get zone name objTpl.WebinarID = objWebBE[0].WebinarID; objTpl.WebinarTitle = objWebBE[0].Title; objTpl.AudienceURL = ""; objTpl.RemainingDays = ""; TemplateMgmt objTemplate = new TemplateMgmt(); rtn = objTemplate.GetReminderEmail(objTpl, contentWithTags, false); } return rtn; }