private bool SendEmail(Email email, Constant.EmailCombinationEnum Combination)
        {
            //   Epi.Web.Enter.Common.Email.Email Email = new Web.Common.Email.Email();

            switch (Combination)
            {
            case Constant.EmailCombinationEnum.ResetPassword:
                email.Subject = "Your Epi Info Cloud Data Capture Password";
                email.Body    = string.Format("You recently accessed our Forgot Password service for Epi Info™ Cloud Data Capture. \n \n Your new temporary password is: {0}\n \n If you have not accessed password help, please contact the administrator. \n \nLog in with your temporary password. You will then be asked to create a new password.", email.Password);
                break;

            case Constant.EmailCombinationEnum.PasswordChanged:
                email.Subject = "Your Epi Info Cloud Data Capture Password has been updated";
                email.Body    = " You recently updated your password for Epi Info™ Cloud Data Capture. \n \n If you have not accessed password help, please contact the administrator for your organization. \n \n ";
                break;

            case Constant.EmailCombinationEnum.UpdateUserInfo:
                email.Subject = "Your Epi Info Cloud Data Capture Account info has been updated";
                email.Body    = " You account info has been updated in Epi Info™ Cloud Data Capture system.";
                break;

            case Constant.EmailCombinationEnum.InsertUser:
                email.Subject = "An Epi Info Cloud Data Capture account has been created for your organization.";

                break;

            default:
                break;
            }

            //email.Body = email.Body.ToString() + " \n \nPlease click the link below to launch Epi Cloud Data Capture. \n" + ConfigurationManager.AppSettings["BaseURL"] + "\nThank you.";
            email.From = ConfigurationManager.AppSettings["EMAIL_FROM"];

            return(Epi.Web.Enter.Common.Email.EmailHandler.SendMessage(email));
        }
Example #2
0
        private bool SendEmail(Email email, Constant.EmailCombinationEnum Combination)
        {
            switch (Combination)
            {
            case Constant.EmailCombinationEnum.InsertOrganization:
                email.Subject = "An Epi Info Cloud Data Capture account has been created for your organization.";

                break;

            default:
                break;
            }

            email.Body = email.Body.ToString();
            //+" \n \nPlease click the link below to launch Epi Cloud Data Capture. \n" + ConfigurationManager.AppSettings["BaseURL"] + "\n\nThank you."; //email.Body.ToString() + " \n \n" + ConfigurationManager.AppSettings["BaseURL"];
            email.From = ConfigurationManager.AppSettings["EMAIL_FROM"];

            return(Epi.Web.Enter.Common.Email.EmailHandler.SendMessage(email));
        }