private static void SetRecipient(GXMailRecipientCollection gxColl, MailAddressCollection coll)
 {
     foreach (var to in coll)
     {
         gxColl.Add(new GXMailRecipient(to.DisplayName, to.Address));
     }
 }
Esempio n. 2
0
 private void SendAllRecipients(MailAddressCollection coll, GXMailRecipientCollection gxcoll)
 {
     foreach (GXMailRecipient item in gxcoll)
     {
         if (!String.IsNullOrEmpty(item.Address))
         {
             coll.Add(new MailAddress(item.Address, item.Name));
         }
     }
 }
Esempio n. 3
0
 public GXMailMessage()
 {
     attachments  = new GxStringCollection();
     to           = new GXMailRecipientCollection();
     cc           = new GXMailRecipientCollection();
     bcc          = new GXMailRecipientCollection();
     replyto      = new GXMailRecipientCollection();
     dateReceived = DateTime.MinValue;
     dateSent     = DateTime.MinValue;
     from         = new GXMailRecipient();
     headers      = new Hashtable();
     htmlText     = "";
     subject      = "";
     text         = "";
 }