SmtpClient client = new SmtpClient("80.97.*.*", 25); client.UseDefaultCredentials = false; client.Credentials = new NetworkCredential("username", "password"); string toAddress = "inoth.g17@gmail.com.com"; string fromAddress = "from@domain.com"; string messageSubject = "Your Subject"; string body = "Body of your email here"; MailMessage mm = new MailMessage(toAddress, fromAddress, messageSubject, body); mm.BodyEncoding = UTF8Encoding.UTF8; client.Send(mm);
var
This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)