this my code :
protected void sendEmail()
{
MailMessage msg = new MailMessage();
msg.From = new MailAddress("support@inetcareer.com", "xxxxx");
msg.To.Add("lehuuhien1991@inetcareer.com");
msg.Subject = "Hello";
msg.Body = "wellcome to me :)";
msg.IsBodyHtml = true;
// MailMessage instance to a specified SMTP server
SmtpClient smtp = new SmtpClient("relay-hosting.secureserver.net", 25);
// Sending the email
smtp.Send(msg);
// destroy the message after sent
msg.Dispose();
}
it cant run localhost and upload host Godaddy :(
it run to "smtp.Send(msg)" and error ,
Pls help me ! thanks alll
Go to the complete details ...