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(); }
public static Task <MailSentStatus> SendVia(this EMail EMail, SMTPClient SMTPClient, Byte NumberOfRetries = 3) { return(SMTPClient.Send(EMail, NumberOfRetries)); }