Posted on: 7/24/2014 6:42:44 PM | Views : 352

The mail is not going from my script. I using Godaddy server  but the email is not going. Please I am looking for the help from experts having experience in mail using godaddy server
System.Net.Mail.MailMessage mail = new System.Net.Mail.MailMessage(); mail.To.Add("test@gmail.com"); mail.From = new MailAddress("info@domainame.com"); mail.Subject = "Subject"; mail.Body = "Body"; mail.IsBodyHtml = true; SmtpClient client = new SmtpClient(); client.Credentials = new System.Net.NetworkCredential("domainname.com", "password"); client.Host = "smtpout.secureserver.net"; try { client.Send(mail); } catch (Exception ex) { string ls = "Failure"; }

Go to the complete details ...