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