Exemple #1
0
        private void DoDirectMail(MessageItem[] items)
        {
            if (Configuration.DirectMail == DirectMailType.Off || items.Length == 0)
            {
                return;
            }
            var package = new DirectMail {
                Items = items
            };

            if (Configuration.DirectMail == DirectMailType.Always)
            {
                Transport.Broadcast(package);
            }
            else
            {
                foreach (var server in Transport.Servers)
                {
                    SendMail(server, package);
                }
            }
        }