title: Error in sending mail from server smtp?
body: <p>My mail sending code is as follows which has been hosted on the server:</p>
  
  <pre><code>try
      {
          MailMessage msgMail = new MailMessage();
  
          MailMessage myMessage = new MailMessage();
          myMessage.From = new MailAddress("*****");
          myMessage.To.Add(TextBox1.Text);
          myMessage.Subject = "Subject";
          myMessage.IsBodyHtml = true;
  
          myMessage.Body = "Message Body";
  
  
          SmtpClient mySmtpClient = new SmtpClient();
          System.Net.NetworkCredential myCredential = new System.Net.NetworkCredential("email", "password");
          mySmtpClient.Host = "****";  //Have specified the smtp host name
          mySmtpClient.UseDefaultCredentials = false;
          mySmtpClient.Credentials = myCredential;
  
  
          mySmtpClient.Send(myMessage);
          myMessage.Dispose();
      }
      catch (Exception ex)
      {
          Response.Write(ex.ToString());
      }
  </code></pre>
  
  <p>I keep on getting this error </p>
  
  <pre><code>System.Net.Mail.SmtpFailedRecipientException: Mailbox unavailable. The server response was: #5.1.0 Address rejected abc@yahoo.com at System.Net.Mail.SmtpTransport.SendMail(MailAddress sender, MailAddressCollection recipients, String deliveryNotify, SmtpFailedRecipientException&amp; exception) at System.Net.Mail.SmtpClient.Send(MailMessage message) at Mail.Button1_Click(Object sender, EventArgs e) in d:\hosting\9110120\html\FB\Mail.aspx.cs:line 37
  </code></pre>
  
  <p>I have tried everything.It keeps giving the same error </p>
  
  <p>My site is hosted on Godaddy server</p>