Example #1
0
        public void NotifyExecution(Order order)
        {
            var orderMessage = OrderMessage.Create(order);

            _emailNotifier.SendEmail(new Email(
                                         "NEW ORDER EXECUTION", "*****@*****.**", "*****@*****.**", orderMessage));
        }
Example #2
0
        /// <summary>
        /// Send email.
        /// </summary>
        private void SendEmail(Account subscriber)
        {
            string email   = subscriber.Email;
            string subject = notification.Subject;
            string body    = ReplaceDatabaseField(subscriber, notification.Message, ref tags);

            EmailNotifier.SendEmail(email, subject, body);
        }