示例#1
0
        public string getHTMLFormattedPasswdChangeNotify(string emailID, int languageID=1)
        {
            TemplateMgmt objTpl = new TemplateMgmt();
            string strTpl = objTpl.GetGeneralEmailTpl(Constant.DocTemplate + "PasswdChange.tpl");
            if (strTpl != "")
            {
                ReportUtils objRptUtil = new ReportUtils();
                UserDA objUDA = new UserDA();
                List<UserBE> objUBE = objUDA.GetUserDetailDA(emailID);
                List<WebinarEmailBE> objWBE = objEmailDA.GetGeneralEmailDefault("Password Changed",languageID);

                strTpl = strTpl.Replace("##HEADER##", objRptUtil.getEmailRptHeader());
                strTpl = strTpl.Replace("##CONTENT##", objWBE[0].EmailContent);
                strTpl = strTpl.Replace("##FOOTER##", objRptUtil.getEmailRptFooter());
                strTpl = strTpl.Replace("##PSWDCHANGEDATETIME##", objUBE[0].PasswordChangedOn);
            }
            return strTpl;
        }
示例#2
0
 private void getSetting()
 {
     UserDA objUserDA = new UserDA();
     List<UserBE> objUBE = objUserDA.GetUserDetailDA(Convert.ToInt32(Session["UserID"]));
     if (objUBE.Count > 0)
     {
         chkEmailUpdate.Checked = objUBE[0].isEmailWeeklyUpdate;
         rcmbTimeZone.SelectedValue = objUBE[0].TimeZoneID.ToString();
         chkDaylight.Checked = objUBE[0].isAutoDLSave;
     }
 }
示例#3
0
        public string getHTMLFormattedNewAccountNotify(string emailID, string passwd, string gendate, int languageID=1)
        {
            TemplateMgmt objTpl = new TemplateMgmt();
            string strTpl = objTpl.GetGeneralEmailTpl(Constant.DocTemplate + "NewUserAccount.tpl");
            if (strTpl != "")
            {
                ReportUtils objRptUtil = new ReportUtils();
                UserDA objUDA = new UserDA();
                List<UserBE> objUBE = objUDA.GetUserDetailDA(emailID);
                List<WebinarEmailBE> objWBE = objEmailDA.GetGeneralEmailDefault("New User Account", languageID);

                strTpl = strTpl.Replace("##HEADER##", objRptUtil.getEmailRptHeader());
                strTpl = strTpl.Replace("##CONTENT##", objWBE[0].EmailContent);
                strTpl = strTpl.Replace("##FOOTER##", objRptUtil.getEmailRptFooter());
                strTpl = strTpl.Replace("##ACCTDATETIME##", gendate);
                strTpl = strTpl.Replace("##USEREMAILADDRESS##", emailID);
                strTpl = strTpl.Replace("##PASSWORD##", passwd);
            }
            return strTpl;
        }