示例#1
0
 public static void queueRegistrationTerminationNotice(string emailTo, string appName)
 {
     var mail = new MailItem();
     mail.To.Add(emailTo);
     mail.Subject = appName + " Registration Expiration";
     mail.isHtml = true;
     mail.Body += "<div style=\"text-align: center; font-size: 24pt\">" + appName + " Registration Expiration Notice</div>";
     mail.Body += "<div style=\"font-size: 14pt\">Your registration has expired. Please use the website to renew your registration. You will not be able to borrow bikes until you renew your registration.</div>";
     mail.Body += "<hr />";
     mail.Body += "<p>Thanks, and have many safe and enjoyable rides!</p>";
     queueMail(mail);
 }
示例#2
0
        public static void queueRegistrationTerminationNotice(string emailTo, string appName)
        {
            var mail = new MailItem();

            mail.To.Add(emailTo);
            mail.Subject = appName + " Registration Expiration";
            mail.isHtml  = true;
            mail.Body   += "<div style=\"text-align: center; font-size: 24pt\">" + appName + " Registration Expiration Notice</div>";
            mail.Body   += "<div style=\"font-size: 14pt\">Your registration has expired. Please use the website to renew your registration. You will not be able to borrow bikes until you renew your registration.</div>";
            mail.Body   += "<hr />";
            mail.Body   += "<p>Thanks, and have many safe and enjoyable rides!</p>";
            queueMail(mail);
        }
示例#3
0
        public static void queueCheckoutNotice(string emailTo, DateTime dueDate)
        {
            var mail = new MailItem();

            mail.To.Add(emailTo);
            mail.Subject = "Bike Checked Out";
            mail.Body = "Thank you for checking out a bike! You have the bike for 24 hours. Enjoy your ride and be safe!";
            if (DateTime.Now.ToString("ddd") == "Fri")
            {
                mail.Body = "Thank you for checking out a bike! You have the bike until Monday morning. Enjoy your ride and be safe!";
            }
            mail.isHtml = false;
            queueMail(mail);
        }
示例#4
0
        public static void queueCheckoutNotice(string emailTo, DateTime dueDate)
        {
            var mail = new MailItem();

            mail.To.Add(emailTo);
            mail.Subject = "Bike Checked Out";
            mail.Body    = "Thank you for checking out a bike! You have the bike for 24 hours. Enjoy your ride and be safe!";
            if (DateTime.Now.ToString("ddd") == "Fri")
            {
                mail.Body = "Thank you for checking out a bike! You have the bike until Monday morning. Enjoy your ride and be safe!";
            }
            mail.isHtml = false;
            queueMail(mail);
        }
示例#5
0
 public static void queueRegistrationNotice(string emailTo, string programNotice, string legalNotice, string legalPDFPath, int registrationDays, string phone, string firstName, string lastName, string appName)
 {
     var mail = new MailItem();
     mail.To.Add(emailTo);
     mail.Subject = appName + " Registration Confirmation";
     mail.isHtml = true;
     mail.Body += "<div style=\"text-align: center; font-size: 24pt\">" + appName + " Registration Confirmation</div>";
     mail.Body += "<div style=\"font-size: 14pt\">This email serves as confirmation of your registration with this bike sharing program and your agreement to the terms and conditions of the service.</div>";
     mail.Body += "<div style=\"text-align: center; font-size: 24pt\">Registration Details</div>";
     mail.Body += "<div style=\"font-size: 14pt\"><strong>Registration Date:</strong> " + DateTime.Now.ToShortDateString() + " </div>";
     mail.Body += "<div style=\"font-size: 14pt\"><strong>First Name:</strong> " + firstName + " </div>";
     mail.Body += "<div style=\"font-size: 14pt\"><strong>Last Name:</strong> " + lastName + " </div>";
     mail.Body += "<div style=\"font-size: 14pt\"><strong>Phone Number:</strong> " + phone + " </div>";
     mail.Body += "<div style=\"font-size: 14pt\"><strong>Registration Expiration:</strong> " + DateTime.Now.AddDays(registrationDays).ToShortDateString() + " </div>";
     mail.Body += "<div style=\"text-align: center; font-size: 24pt\">Program Details</div>";
     mail.Body += "<div style=\"font-size: 14pt\">" + programNotice + " </div>";
     mail.Body += "<div style=\"text-align: center; font-size: 24pt\">Legal/Liability Requirements</div>";
     mail.Body += "<div style=\"font-size: 14pt\">" + legalNotice + " </div>";
     mail.Body += "<hr />";
     mail.Body += "<p>Thanks, and have many safe and enjoyable rides!</p>";
     mail.attachmentPath = legalPDFPath;
     queueMail(mail);
 }
示例#6
0
        public static void queueRegistrationNotice(string emailTo, string programNotice, string legalNotice, string legalPDFPath, int registrationDays, string phone, string firstName, string lastName, string appName)
        {
            var mail = new MailItem();

            mail.To.Add(emailTo);
            mail.Subject        = appName + " Registration Confirmation";
            mail.isHtml         = true;
            mail.Body          += "<div style=\"text-align: center; font-size: 24pt\">" + appName + " Registration Confirmation</div>";
            mail.Body          += "<div style=\"font-size: 14pt\">This email serves as confirmation of your registration with this bike sharing program and your agreement to the terms and conditions of the service.</div>";
            mail.Body          += "<div style=\"text-align: center; font-size: 24pt\">Registration Details</div>";
            mail.Body          += "<div style=\"font-size: 14pt\"><strong>Registration Date:</strong> " + DateTime.Now.ToShortDateString() + " </div>";
            mail.Body          += "<div style=\"font-size: 14pt\"><strong>First Name:</strong> " + firstName + " </div>";
            mail.Body          += "<div style=\"font-size: 14pt\"><strong>Last Name:</strong> " + lastName + " </div>";
            mail.Body          += "<div style=\"font-size: 14pt\"><strong>Phone Number:</strong> " + phone + " </div>";
            mail.Body          += "<div style=\"font-size: 14pt\"><strong>Registration Expiration:</strong> " + DateTime.Now.AddDays(registrationDays).ToShortDateString() + " </div>";
            mail.Body          += "<div style=\"text-align: center; font-size: 24pt\">Program Details</div>";
            mail.Body          += "<div style=\"font-size: 14pt\">" + programNotice + " </div>";
            mail.Body          += "<div style=\"text-align: center; font-size: 24pt\">Legal/Liability Requirements</div>";
            mail.Body          += "<div style=\"font-size: 14pt\">" + legalNotice + " </div>";
            mail.Body          += "<hr />";
            mail.Body          += "<p>Thanks, and have many safe and enjoyable rides!</p>";
            mail.attachmentPath = legalPDFPath;
            queueMail(mail);
        }
示例#7
0
 public static void queueMail(MailItem mail)
 {
     Mailing.mailQueue.Enqueue(mail);
 }
示例#8
0
 public static void queueMail(MailItem mail)
 {
     Mailing.mailQueue.Enqueue(mail);
 }