예제 #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);
 }
예제 #2
0
파일: Email.cs 프로젝트: BNSStore/Website
        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);
        }
예제 #3
0
파일: Email.cs 프로젝트: BNSStore/Website
        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);
        }