コード例 #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");
            }
        }
コード例 #2
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");
            }
        }