send a mail notification when clicking submit button..wen i click submit button : send a mail notification when clicking submit button..wen i click submit button..label is showing your message has been sent..but when i check my mail..i did nt get that
here my code it is
      protected void btnSubmit_Click(object sender, EventArgs e)
        {
            try
            {
                //Create the msg object to be sent
                MailMessage msg = new MailMessage();
                //Add your email address to the recipients
                msg.To.Add("sathishsatu222@gmail.com");
                //Configure the address we are sending the mail from **- NOT SURE IF I NEED THIS OR NOT?**
                MailAddress address = new MailAddress("satheezkumar93@gmail.com");
                msg.From = address;
                //Append their name in the beginning of the subject
                msg.Subject = "hy";
                msg.Body = "hy hw ru?";
                SmtpClient client = new SmtpClient("smtp-mail.gmail.com", 25);
                NetworkCredential credentials = new NetworkCredential("satheezkumar93@gmail.com", "mypassword here");
                client.Credentials = credentials;
                client.Host = "smtp-mail.gmail.com";
                client.Port = 25;
                client.EnableSsl = true;
                //Configure an SmtpClient to send the mail.
               
              
                //Display some feedback to the user to let them know it was sent
                lblResult.Text = "Your message was sent!";

                
            }
            catch
            {
                //If the message failed at some point, let the user know
                lblResult.Text = "Your message failed to send, please try again.";
            }
        }