using System.Net.Mail; MailMessage Msg = new MailMessage(); Msg.From =new System.Net.Mail.MailAddress("FromID"); Msg.To.Add("ToId"); Msg.Subject = "hai"; Msg.Body = "sss"; Msg.Headers.Add("Disposition-Notification-To", "ReturnID"); SmtpClient smtp = new SmtpClient("servername",port); smtp.UseDefaultCredentials = false; smtp.Credentials = new NetworkCredential("sendingID", "MyPwd","Domain"); smtp.Host = "Hostname"; smtp.Send(Msg);
var
This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)