Beispiel #1
0
        public MailManager(StackHashEmailSettings mailSettings, String profileName)
        {
            if (mailSettings == null)
            {
                throw new ArgumentNullException("mailSettings");
            }

            m_MailSettings = mailSettings;
            m_ProfileName  = profileName;
        }
Beispiel #2
0
        /// <summary>
        /// Change the current email settings.
        /// </summary>
        /// <param name="mailSettings">New email settings.</param>
        public void SetEmailSettings(StackHashEmailSettings mailSettings)
        {
            Monitor.Enter(this);

            try
            {
                m_MailSettings = mailSettings;
            }
            finally
            {
                Monitor.Exit(this);
            }
        }