HI
If you can take a look am sending an email to Anele.Ngqandu@live.nmmu.ac.za
using gmail account. so I can change and send it to any email address
and this works for me well.
MailMessage message = new MailMessage();
message.From = new MailAddress("Ngqandu.Anele@gmail.com");
message.To.Add(new MailAddress("Anele.Ngqandu@live.nmmu.ac.za"));
message.Subject = subject;
message.Body = body;
SmtpClient client = new SmtpClient();
client.Credentials = new System.Net.NetworkCredential("Ngqandu.Anele@gmail.com", "password");
client.Port = 587;
client.Host = "smtp.gmail.com";
client.EnableSsl = true;
try
{
client.Send(message);
}
catch (Exception ex)
{
System.Windows.Forms.MessageBox.Show(ex.Message);
}