Esempio n. 1
0
        private static string UserRegistrationBody(UserMasters model, string Password)
        {
            string Body = "";

            try
            {
                Body += "Thank you for registering. ";
                Body += "<br /><br />";
                Body += "Please find credentials to login.";
                Body += "<br />";
                Body += "<b>User Name: </b>" + model.USERNAME;
                Body += "<br />";
                Body += "<b>Password: </b>" + AESEncrytDecry.DecryptStringAES(Password);
                Body += "<br /><br />";
                Body += "<b>URL: </b>" + ConfigurationManager.AppSettings["WebSite"].ToString().Trim();
                Body += "<br /><br />";
                Body += "Note:- Please change your password after successful login.";
            }
            catch (Exception ex)
            {
                ExecptionLogger.FileHandling("BALMail(Header)", "Error_014", ex, "BALMail");
                Body = "";
            }
            return(Body);
        }
Esempio n. 2
0
        private static string OrganisationBody(OragnisationMaster _OragnisationMaster, string Password)
        {
            string Body = "";

            try
            {
                Body += "Thank you for registering. ";
                Body += "<br /><br />";
                Body += "Please find credentials to login.";
                Body += "<br />";
                Body += "<b>User Name: </b>" + _OragnisationMaster.LEmailId;
                Body += "<br />";
                Body += "<b>Password: </b>" + AESEncrytDecry.DecryptStringAES(Password);
                Body += "<br /><br />";
                Body += "<b>URL: </b>" + ConfigurationManager.AppSettings["WebSite"].ToString().Trim();
                Body += "<br /><br />";
                Body += "Our executive will contact you and after verification, we will activate your account.";
                Body += "<br />";
                Body += "Note:- Please change your password after successful login.";
            }
            catch (Exception ex)
            {
                ExecptionLogger.FileHandling("BALMail(Header)", "Error_014", ex, "BALMail");
                Body = "";
            }
            return(Body);
        }
Esempio n. 3
0
        private static string ResetOTPBody(UserMasters userMasters, string OTP)
        {
            string Body = "";

            try
            {
                Body += "<b>User Name: </b>" + userMasters.USERNAME;
                Body += "<br />";
                Body += "<b>OTP: </b>" + AESEncrytDecry.DecryptStringAES(OTP);
                Body += "<br /><br />";
            }
            catch (Exception ex)
            {
                ExecptionLogger.FileHandling("BALMail(Header)", "Error_014", ex, "BALMail");
                Body = "";
            }
            return(Body);
        }