public EmailResult OrderNotificationEmail(Order order)
        {
            var departure = order.ProductVariants.First().ProductVariant.Product.Departure;
            var tour = departure.Tour;
            var model = new OrderConfirmationEmail
              {
                  Order = order,
                  Tour = tour,
                  Departure = departure
              };

            To.Add(_orderNotificationEmailAddress);
            // TODO: from address should be configurable somewhere
            From = "*****@*****.**";
            Subject = string.Format("brite spokes order notification for Trip number: {0}", order.OrderNumber);
            return Email("OrderNotificationEmail", model);
        }
Example #2
0
        public EmailResult OrderNotificationEmail(Order order)
        {
            var departure = order.ProductVariants.First().ProductVariant.Product.Departure;
            var tour      = departure.Tour;
            var model     = new OrderConfirmationEmail
            {
                Order     = order,
                Tour      = tour,
                Departure = departure
            };

            To.Add(_orderNotificationEmailAddress);
            // TODO: from address should be configurable somewhere
            From    = "*****@*****.**";
            Subject = string.Format("brite spokes order notification for Trip number: {0}", order.OrderNumber);
            return(Email("OrderNotificationEmail", model));
        }