Example #1
0
 internal virtual void PrepReceivers(MailMessage mail, Qualifier qualifier)
 {
     if (Settings.ToFunction != null)
     {
         foreach (var address in Settings.ToFunction(qualifier))
         {
             mail.To.Add(address);
         }
     }
     if (Settings.ToFunction != null)
     {
         foreach (var address in Settings.CCFunction(qualifier))
         {
             mail.CC.Add(address);
         }
     }
     if (Settings.ToFunction != null)
     {
         foreach (var address in Settings.BccFunction(qualifier))
         {
             mail.Bcc.Add(address);
         }
     }
 }