I have been struggling since 1 week, I am not able to send an email from Godady to using my Gmail account, please find my code below:
MailMessage msg = new MailMessage();
//Add your email address to the recipients
//Configure the address we are sending the mail from
msg.From = address;
msg.Subject = "Enquiry ";
msg.Body = "Hello Testing ";
SmtpClient client = new SmtpClient();
client.Host = "relay-hosting.secureserver.net";
client.Port = 25;
//Send the msg
client.Send(msg);
//Display some feedback to the user to let them know it was sent
lblResult.Text = "Your message was sent!";