mail.From = new MailAddress(Main.ml.Text); mail.Subject = subject.Text; mail.Body = message.Text; foreach (string s in to.Text.Split(';')) { mail.To.Add(s); } foreach (Attachment attach in attachment.Text.Split(';')) { mail.Attachments.Add(attach) } { mail.To.Add(s); } mail.Headers.Add("Disposition-Notification-To", Main.ml.Text); mail.DeliveryNotificationOptions = DeliveryNotificationOptions.OnSuccess; SmtpClient client = new SmtpClient(Main.smtp.Text); client.Port = 25; client.Credentials = new System.Net.NetworkCredential(emailusername.Text, emailpassword.Text); client.EnableSsl = true; client.Send(mail);
mail.Attachments.Add(new Attachment(attach));
var
This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)