Пример #1
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         = "";
 }
Пример #2
0
 public void Clear()
 {
     attachments.Clear();
     to.Clear();
     cc.Clear();
     bcc.Clear();
     replyto.Clear();
     dateReceived = DateTime.MinValue;
     dateSent     = DateTime.MinValue;
     from         = new GXMailRecipient();
     htmlText     = string.Empty;
     subject      = string.Empty;
     text         = string.Empty;
     MessageId    = string.Empty;
 }
Пример #3
0
        private void initialize()
        {
            string smtpclient = string.Empty;

            if (Config.GetValueOf("SMTPSession", out smtpclient) && smtpclient == "legacy")
            {
                session = new SMTPSession();
                GXLogging.Debug(log, "Using SMTP Session legacy implementation");
            }
            else
            {
                session = new SMTPMailClient();
            }
            authentication = 0;
            secure         = 0;
            host           = string.Empty;
            userName       = string.Empty;
            password       = string.Empty;
            attachDir      = string.Empty;
            port           = 25;
            timeout        = 30;
            sender         = new GXMailRecipient();
        }
Пример #4
0
 public void Add(GXMailRecipient recipient)
 {
     List.Add(new GXMailRecipient(recipient.Name, recipient.Address));
 }