public Invoices_ComposeOverdueInvoiceReminder()
        {
            Dictionary <string, string> messagevalues = new Dictionary <string, string>();

            messagevalues.Add("[[CORPORATENAME]]", System.Configuration.ConfigurationManager.AppSettings["CompanyName"]);
            messagevalues.Add("[[CORPORATEPHONE]]", System.Configuration.ConfigurationManager.AppSettings["billingphone"]);
            this.Message = ScreeningONESendMail.GetMessageTemplate(0, "Finance Charge Assessment", messagevalues);
            this.Subject = ConfigurationManager.AppSettings["CompanyName"] + " Payment Reminder";
            DateTime nPlease = DateTime.Now;

            this.UserFinanceChargeDate = new DateTime?(new DateTime(nPlease.Year, nPlease.Month, 1));
            this.UserFinanceChargeDate = new DateTime?(this.UserFinanceChargeDate.Value.AddMonths(1));
            this.UserFinanceChargeDate = new DateTime?(new DateTime(this.UserFinanceChargeDate.Value.Year, this.UserFinanceChargeDate.Value.Month, 1));
        }
        public Invoices_ComposeCurrentInvoiceReminder()
        {
            DateTime nPlease     = DateTime.Now;
            var      invoiceDate = new DateTime(nPlease.Year, nPlease.Month, 1);

            Dictionary <string, string> messagevalues = new Dictionary <string, string>();

            messagevalues.Add("[[CORPORATENAME]]", System.Configuration.ConfigurationManager.AppSettings["CompanyName"]);
            messagevalues.Add("[[CORPORATEPHONE]]", System.Configuration.ConfigurationManager.AppSettings["billingphone"]);
            messagevalues.Add("[[CORPORATEEMAIL]]", System.Configuration.ConfigurationManager.AppSettings["BillingEmail"]);

            messagevalues.Add("[[INVOICEDATE]]", HttpUtility.HtmlEncode(invoiceDate.ToString("MM.dd.yyyy")));
            this.Message = ScreeningONESendMail.GetMessageTemplate(0, "Invoice Email Reminder", messagevalues);
            this.Subject = "Invoice Reminder";
        }