protected void send_mail()
    {
        string mail_id = "xtream.hell97@gmail.com";
        string mail_password = "************";
        MailMessage msg = new MailMessage();
        msg.From = new MailAddress(mail_id, "Apiit Library");
        msg.To.Add(new MailAddress(txt_email.Text));
        msg.Subject = "Password Information Of LMS";
        msg.Body = "Your UserID is" + ": " + txt_email.Text.Trim() +" And Your Password is" + ": " + txt_fname.Text;
 
        msg.IsBodyHtml = true;
        SmtpClient smtp = new SmtpClient("smtp.gmail.com", 587);
        
        smtp.Credentials = new NetworkCredential(mail_id, mail_password);
        smtp.EnableSsl = true;
        try
        {
           
            smtp.Send(msg);
            lblresult.Text = "Email send successfully:";
           
        }
        catch (Exception ex)
        {
            lblresult.Text = ex.Message;
        }
    }
Error :The SMTP server requires a secure connection or the client was not authenticated. The server response was: 5.5.1 Authentication RequiredThe SMTP server requires a secure connection or the client was not authenticated.error: 
This code is run preffect on my local system but when i uploaded at server is not sending email. P