Esempio n. 1
0
        private void sendClick(object sender, EventArgs e)
        {
            Cursor.Current = Cursors.WaitCursor;

            var emailConfig = new EmailConfig
            {
                Subject    = subject.Text,
                Message    = messageText.Text,
                ServerSMTP = server.Text,
                Port       = int.Parse(port.Text),
                Ssl        = ssl.Checked,
                FromEmail  = user.Text,
                Password   = password.Text
            };

            _send.SendEmail(_dt, emailConfig);

            this.Close();
        }