I have one web application which hosted on Godaddy server. I am stuck with Failure sending mail error. I place my code here
public void Mailing()
{
MailMess
Check the code below. You have to change client.Host = "smtpout.secureserver.net."
MailMessage msg = new MailMessage(txtemail.Text, "shopover@vibrantinfosystems.com");
msg.Subject = "Contact Us";
string body = "Name: " + txtname.Text.Trim() + "";
body += "
Email:" + txtemail.Text + "";
body += "
Subject :" + txtsubject.Text + "";
body += "
Message : " + txtmessage.Text + "";
msg.Body = body;
msg.IsBodyHtml = true;
SmtpClient client = new SmtpClient();
client.Host = "smtpout.secureserver.net.";
client.Send(msg);
client.Timeout = 10000;
ClientScript.RegisterStartupScript(GetType(), "alert", "alert('Mail Sent Successfully!!');", true);