Exemplo n.º 1
0
 private static void SetRecipient(GXMailRecipientCollection gxColl, MailAddressCollection coll)
 {
     foreach (var to in coll)
     {
         gxColl.Add(new GXMailRecipient(to.DisplayName, to.Address));
     }
 }
Exemplo 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));
         }
     }
 }
Exemplo 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         = "";
 }