Inheritance: System.Collections.ArrayList
        /// <summary>
        /// Default constructor.
        /// </summary>
        public MimeConstructor()
        {
            m_pAttachments = new Attachments();

            m_MsgDate = DateTime.Now;
            m_MsgID = "<" + Guid.NewGuid().ToString().Replace("-","") + ">";
            m_CharSet = "iso-8859-1";
        }
Exemplo n.º 2
0
        /// <summary>
        /// Default constructor.
        /// </summary>
        public MimeConstructor()
        {
            m_pHeader = new HeaderFieldCollection();
            m_pHeader.Add("From:","");
            m_pHeader.Add("To:","");
            m_pHeader.Add("Subject:","");
            m_pHeader.Add("Date:",DateTime.Now.ToUniversalTime().ToString("r",System.Globalization.DateTimeFormatInfo.InvariantInfo));
            m_pHeader.Add("Message-ID:","<" + Guid.NewGuid().ToString().Replace("-","") + "@" + System.Net.Dns.GetHostName() + ">");
            m_pHeader.Add("MIME-Version:","1.0");

            m_pAttachments = new Attachments();

            m_CharSet = "utf-8";
        }