System.Net.Mail.SmtpClient client = new System.Net.Mail.SmtpClient("host", port); client.Send("from", "recipients", "subject", "body");