Beispiel #1
0
        public static string GetPlainTextTestEmail(DateTime date)
        {
            if (plainTextTestEmailTemplate == null)
            {
                plainTextTestEmailTemplate = StoragePath.ReadPhysicalFile("Email/Templates/PlainTextTestEmail.template");
            }

            string emailMessage = plainTextTestEmailTemplate
                                  .Replace("{date}", date.ToString(CultureInfo.CurrentCulture), StringComparison.InvariantCulture);

            return(emailMessage);
        }
Beispiel #2
0
        public static string GetPlainTextTestEmail(DateTime date)
        {
            if (plainTextTestEmailTemplate == null)
            {
                plainTextTestEmailTemplate = StoragePath.ReadPhysicalFile("Email/Templates/PlainTextTestEmail.template");
            }

            string emailMessage = plainTextTestEmailTemplate
                                  .Replace("{date}", date.ToString());

            return(emailMessage);
        }
Beispiel #3
0
        public static string GetTestEmail(string recepientName, DateTime testDate)
        {
            if (testEmailTemplate == null)
            {
                testEmailTemplate = StoragePath.ReadPhysicalFile("Email/Templates/TestEmail.template");
            }

            string emailMessage = testEmailTemplate
                                  .Replace("{user}", recepientName, StringComparison.InvariantCulture)
                                  .Replace("{testDate}", testDate.ToString(CultureInfo.CurrentCulture), StringComparison.InvariantCulture);

            return(emailMessage);
        }
Beispiel #4
0
        public static string GetTestEmail(string recepientName, DateTime testDate)
        {
            if (testEmailTemplate == null)
            {
                testEmailTemplate = StoragePath.ReadPhysicalFile("Email/Templates/TestEmail.template");
            }

            string emailMessage = testEmailTemplate
                                  .Replace("{user}", recepientName)
                                  .Replace("{testDate}", testDate.ToString());

            return(emailMessage);
        }