コード例 #1
0
        public static void NewPatientAlert(ApplicationUser user)
        {
            var emailTo   = "*****@*****.**";
            var emailName = "Mankgwanyane";
            var htmlMessageToPsychologist = @"Hello! New Patient has started the account creation process, Here are their details: <br/><br/>"
                                            + "Email: " + user.Email + "<br/><br/>" + "Cellphone Number: " + user.PhoneNumber +
                                            " <br/><br/> " +
                                            "Thanks,<br/>" +
                                            "The Caleni Practice System";

            var planTextMessage = " New Patient has started the account creation process, Here are their details: "
                                  + "Email: " + user.Email + " Cellphone Number: " + user.PhoneNumber;

            var SMSTextToSuperAdmin = "New patient has started the account creation process.";

            AuditLogExtenstion.LogActivity("System", SupportedLogOperation.Create, "New patient has started the account creation process.");
            Email.SendNewAccountEmail(emailTo, emailName, htmlMessageToPsychologist, planTextMessage);
            SMS.NotifyAdminAboutNewBooking(SMSTextToSuperAdmin);
        }
コード例 #2
0
        public static void ResentAddPsychologistNotification(int newPsychologistId)
        {
            var context        = new ApplicationDbContext();
            var toPsychologist = context.Psychologists.Find(newPsychologistId);


            var htmlMessageToPsychologist = @"Hello! Your account has been created, Here are your login details: <br/><br/>"
                                            + "Username: "******"<br/><br/>" + "Temporary Password: "******" <br/><br/>You will have to generate a new password when you login<br/><br/> " +
                                            "Thanks,<br/>" +
                                            "The Caleni Practice Team";

            var planTextMessage = "Here are your login details, Username: "******", Password: "******"Psychologist Email Resent";

            AuditLogExtenstion.LogActivity("System", SupportedLogOperation.Create, "Resend psychologist email");
            Email.SendNewAccountEmail(toPsychologist.EmailAddress, toPsychologist.FullName, htmlMessageToPsychologist, planTextMessage);
            SMS.NotifyAdminAboutNewBooking(SMSTextToSuperAdmin);
        }