I want to send email thorw my godaddy email Server, I using this code
MailMessage msg = new MailMessage();
msg.To.Add(txtemail.Text.Trim());
MailAddress address = new MailAddress("[email protected]");
msg.From = address;
msg.Subject = "Email";
string htmlBody = @"
Hi welcome
Thank you for register
msg.Body = htmlBody;
msg.IsBodyHtml = true;
SmtpClient client = new SmtpClient();
client.Host = "smtpout.secureserver.net";
client.Port = 465;
client.UseDefaultCredentials = false;
client.Credentials = new System.Net.NetworkCredential("[email protected]", "password");
//Send the msg
client.Send(msg);
But its shows operation timeout error.

Srinivasan RamamoorthiPosted Nov 13, 2021, 10:27 AM