コード例 #1
0
 public void SendParallel(MailMessage Message, Sender From, IEnumerable <Recipient> To)
 {
     foreach (var item in To)
     {
         ThreadPool.QueueUserWorkItem(_ => Send(Message, From, item));
     }
 }
コード例 #2
0
 public void Send(MailMessage Message, Sender From, IEnumerable <Recipient> To)
 {
     foreach (var item in To)
     {
         Send(Message, From, item);
     }
 }