try { MailAddress from = new MailAddress("from@yahoo.com", "name", Encoding.UTF8); MailAddress to = new MailAddress("to@yahoo.com"); MailMessage message = new MailMessage(from, to); message.Subject = "Test"; message.SubjectEncoding = Encoding.UTF8; message.Body = "Test"; message.BodyEncoding = Encoding.UTF8; SmtpClient client = new SmtpClient(); client.Host = "ssl://181.40.105.33"; client.Port = 465; client.EnableSsl = true; client.Credentials = new NetworkCredential("example@yahoo.com", "Password"); client.Send(message); MessageBox.Show("sending Successfully!!!"); } catch (SmtpException ex) { MessageBox.Show(ex.ToString()); }
var
This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)