public void NotifyExecution(Order order) { var orderMessage = OrderMessage.Create(order); _emailNotifier.SendEmail(new Email( "NEW ORDER EXECUTION", "*****@*****.**", "*****@*****.**", orderMessage)); }
/// <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); }