Esempio n. 1
0
        private void SendMail()
        {
            var to    = toTextBox.Text.Split(',').ToList <string>();
            var files = filesTextBox.Text.Split(',').ToList <string>();

            smtp.Send(settings.Email, to, subjectTextBox.Text, messageTextBox.Text, files);
            this.Close();
        }
Esempio n. 2
0
 public static Task <MailSentStatus> SendVia(this EMail EMail,
                                             SMTPClient SMTPClient,
                                             Byte NumberOfRetries = 3)
 {
     return(SMTPClient.Send(EMail, NumberOfRetries));
 }