How can a proxy be connected (http \ s | socks4 \ 5). There is such a method:
static void Send(string login, string password , string mailSend, string subject , string body , string proxyHost, int proxyPort) { SmtpClient smtp = new SmtpClient("smtp.mail.ru", 587); smtp.Credentials = new System.Net.NetworkCredential(login, password); MailMessage mail = new MailMessage(); mail.From = new MailAddress(login); mail.To.Add(new MailAddress(mailSend)); mail.Subject = subject; mail.Body = body; smtp.EnableSsl = true; smtp.Send(mail); } Is it possible at all? Tried some decisions made on SO, but did not help.