Example #1
0
        public virtual MailMessage RenterReturnReminder(string toEmail, otr_project.Models.OrderDetailModel orderDeatil)
        {
            var mailMessage = new MailMessage {
                Subject = "Rambla - Return Reminder"
            };

            mailMessage.To.Add(toEmail);
            ViewData = new System.Web.Mvc.ViewDataDictionary(orderDeatil);
            PopulateBody(mailMessage, viewName: "RenterReturnReminder");

            return(mailMessage);
        }
Example #2
0
        public virtual MailMessage OwnerOrderClosed(string toEmail, otr_project.Models.OrderDetailModel orderDeatil)
        {
            var mailMessage = new MailMessage {
                Subject = "Rambla - Rental Complete"
            };

            mailMessage.To.Add(toEmail);
            ViewData = new System.Web.Mvc.ViewDataDictionary(orderDeatil);
            PopulateBody(mailMessage, viewName: "OwnerOrderClosed");

            return(mailMessage);
        }
Example #3
0
        public virtual MailMessage SendRenterCode(string toEmail, otr_project.Models.OrderDetailModel orderDeatil)
        {
            var mailMessage = new MailMessage {
                Subject = "Rambla Rental Security Code"
            };

            mailMessage.To.Add(toEmail);
            ViewData = new System.Web.Mvc.ViewDataDictionary(orderDeatil);
            PopulateBody(mailMessage, viewName: "SendRenterCode");

            return(mailMessage);
        }