public EmailResult GiftOrderNotificationEmail(GiftOrder giftorder)
        {
            var model = new GiftOrderConfirmationEmail
            {
            GiftOrder = giftorder
            };

            To.Add(giftorder.User.Email);
            // TODO: from address should be configurable somewhere
            From = "*****@*****.**";
            Subject = string.Format("brite spokes order notification for Order number: {0}", giftorder.OrderNumber);
            return Email("GiftOrderNotificationEmail", model);
        }
Example #2
0
        public EmailResult GiftOrderNotificationEmail(GiftOrder giftorder)
        {
            var model = new GiftOrderConfirmationEmail
            {
                GiftOrder = giftorder
            };

            To.Add(giftorder.User.Email);
            // TODO: from address should be configurable somewhere
            From    = "*****@*****.**";
            Subject = string.Format("brite spokes order notification for Order number: {0}", giftorder.OrderNumber);
            return(Email("GiftOrderNotificationEmail", model));
        }
        public EmailResult GiftOrderConfirmationEmailToRecipient(GiftOrder giftorder,int index)
        {
            //var departure = order.ProductVariants.First().ProductVariant.Product.Departure;
            // var tour = departure.Tour;
            var model = new GiftOrderConfirmationEmail
            {
            GiftOrder = giftorder

            };

            To.Add(giftorder.GiftOrderDetail[index].RecipientEmail);
            // TODO: from address should be configurable somewhere
            From = "*****@*****.**";

            Subject = string.Format("brite spokes gift gift code: {0}", giftorder.GiftOrderDetail[index].RecipientGiftCode);

            return Email("RecipientGiftCodeEmail", model);
        }
Example #4
0
        public EmailResult GiftOrderConfirmationEmailToRecipient(GiftOrder giftorder, int index)
        {
            //var departure = order.ProductVariants.First().ProductVariant.Product.Departure;
            // var tour = departure.Tour;
            var model = new GiftOrderConfirmationEmail
            {
                GiftOrder = giftorder
            };

            To.Add(giftorder.GiftOrderDetail[index].RecipientEmail);
            // TODO: from address should be configurable somewhere
            From = "*****@*****.**";


            Subject = string.Format("brite spokes gift gift code: {0}", giftorder.GiftOrderDetail[index].RecipientGiftCode);

            return(Email("RecipientGiftCodeEmail", model));
        }
Example #5
0
        public EmailResult GiftOrderConfirmationEmail(GiftOrder giftorder)
        {
            //var departure = order.ProductVariants.First().ProductVariant.Product.Departure;
            // var tour = departure.Tour;
            var model = new GiftOrderConfirmationEmail
            {
                GiftOrder = giftorder
            };

            To.Add(giftorder.User.Email);
            // TODO: from address should be configurable somewhere
            From = "*****@*****.**";
            //foreach (var item in order.GiftOrderDetail)
            //{
            //    BCC.Add(item.RecipientEmail);
            //    Subject = string.Format("brite spokes order confirmation Gift Code: {0}", item.RecipientGiftCode);
            //}
            Subject = string.Format("brite spokes gift order confirmation number: {0}", giftorder.OrderNumber);

            return(Email("GiftOrderConfirmationEmail", model));
        }
        public EmailResult GiftOrderConfirmationEmail(GiftOrder giftorder)
        {
            //var departure = order.ProductVariants.First().ProductVariant.Product.Departure;
               // var tour = departure.Tour;
            var model = new GiftOrderConfirmationEmail
            {
            GiftOrder = giftorder

            };

            To.Add(giftorder.User.Email);
            // TODO: from address should be configurable somewhere
            From = "*****@*****.**";
            //foreach (var item in order.GiftOrderDetail)
            //{
            //    BCC.Add(item.RecipientEmail);
            //    Subject = string.Format("brite spokes order confirmation Gift Code: {0}", item.RecipientGiftCode);
            //}
            Subject = string.Format("brite spokes gift order confirmation number: {0}", giftorder.OrderNumber);

            return Email("GiftOrderConfirmationEmail", model);
        }