Beispiel #1
0
 public static void SendVerifyEmail(string emailAddress, string verifyString, string langName)
 {
     Lang lang = new Lang(langName);
     lang.AddKeyword("Account.Email.VerifyEmail.Subject");
     lang.AddKeyword("Account.Email.VerifyEmail.Body");
     lang.GetTranslationFromSQL();
     string subject = lang.GetTrans("Account.Email.VerifyEmail.Subject");
     string body = lang.GetTrans("Account.Email.VerifyEmail.Body");
     body = body.Replace("\\n", "\n").Replace("{URL}", "http://account.UnsolvedCrime.ca/VerifyEmail/emailAddress=" + emailAddress + "/verifyString=" + verifyString + "/");
     SendAdminEmail(emailAddress, subject, body);
 }
Beispiel #2
0
        public static void SendVerifyEmail(string emailAddress, string verifyString, string langName)
        {
            Lang lang = new Lang(langName);

            lang.AddKeyword("Account.Email.VerifyEmail.Subject");
            lang.AddKeyword("Account.Email.VerifyEmail.Body");
            lang.GetTranslationFromSQL();
            string subject = lang.GetTrans("Account.Email.VerifyEmail.Subject");
            string body    = lang.GetTrans("Account.Email.VerifyEmail.Body");

            body = body.Replace("\\n", "\n").Replace("{URL}", "http://account.bnsstore.com/VerifyEmail/emailAddress=" + emailAddress + "/verifyString=" + verifyString + "/");
            SendNoReplyEmail(emailAddress, subject, body);
        }
Beispiel #3
0
        public static void SendShiftNotificationEmail(string emailAddress, string displayName, char store, string langName)
        {
            Lang lang = new Lang(langName);

            lang.AddKeyword("Store.Schedule.Notification.Email.Subject");
            lang.AddKeyword("Store.Schedule.Notification.Email.Body");
            lang.AddKeyword("Store.Name." + store.ToString().ToUpper());
            lang.GetTranslationFromSQL();
            string subject   = lang.GetTrans("Store.Schedule.Notification.Email.Subject");
            string body      = lang.GetTrans("Store.Schedule.Notification.Email.Body");
            string storeName = lang.GetTrans("Store.Name." + store.ToString().ToUpper());

            body = body.Replace("\\n", "\n");
            body = body.Replace("{DisplayName}", displayName);
            body = body.Replace("{StoreName}", storeName);
            SendHumanResourcesEmail(emailAddress, subject, body);
        }