title: Emails not sent due to SMTP Exception
body: <p>I have a general mailbox that could be used to send emails from my website. It has stopped working and throws an exception. The following is a screenshot of the error.</p>
  
  <p><a href="http://img7.imageshack.us/img7/7227/42097647.png" rel="nofollow noreferrer">error http://img7.imageshack.us/img7/7227/42097647.png</a></p>
  
  <p>The code is </p>
  
  <pre><code>  protected void Submit_Click(object sender, EventArgs e)
     {
      if (ValidateBox.Text == "6")
      {
          MailMessage message = new MailMessage();
          message.From = new MailAddress(EmailBox.Text.ToString());
          message.To.Add(new MailAddress("praveendaniel86@gmail.com"));
          message.Subject = "Message via CAM Website General Mailbox";
          string body = "Name: " + NameBox.Text.ToString() + Environment.NewLine + Environment.NewLine +
                        "Home Tel: " + HomeTelBox.Text.ToString() + Environment.NewLine + Environment.NewLine +
                        "Work Tel: " + WorkTelBox.Text.ToString() + Environment.NewLine + Environment.NewLine +
                        "Comment/Question: " + CommentBox.Text.ToString();
  
          message.Body = body;
  
  
          SmtpClient client = new SmtpClient();
          client.Send(message);
  
          Response.Redirect("~/Thank-You.aspx");
      }
  
      else
      {
          Label1.Visible = true;
      }
  
  
  
  }
  </code></pre>
  
  <p>Could this be an error from the SMTP Client mentioned in my webconfig, How can I check if its working fine ? Thanks.</p>