Beispiel #1
0
        private void Mail(EtlMailReportConfiguration config)
        {
            foreach (var subscription in config.Subscriptions)
            {
                //todo: localize message
                System.Console.WriteLine("Sending mail \"{0}\"...", subscription.Subject);

                var result = Mail(subscription);

                //todo: localize message
                System.Console.WriteLine(result ? "Mail has been sent" : "Mail has not been sent");
            }
        }
        private void Mail(EtlMailReportConfiguration config)
        {
            foreach (var subscription in config.Subscriptions)
            {
                //todo: localize message
                System.Console.WriteLine("Sending mail \"{0}\"...", subscription.Subject);

                var result = Mail(subscription);

                //todo: localize message
                System.Console.WriteLine(result ? "Mail has been sent" : "Mail has not been sent");
            }
        }