Below is my code of sending email from my mail but I am getting an error please help !
Error: Email not sent!System.Net.Mail.SmtpException: The operation has timed out. at System.Net.Mail.SmtpClient.Send(MailMessage message) at _Default.Button1_Click(Object sender, EventArgs e)
try{
        MailMessage mailmessage = new MailMessage();
        mailmessage.To.Add(TextBox3.Text);
        mailmessage.From=new MailAddress("sadiazar05@gmail.com");
        mailmessage.Subject = "User SignUp";
        mailmessage.Body = "Hello You're registered!";
        SmtpClient smtpclient = new SmtpClient("smtp.gmail.com",465);
        mailmessage.Priority = MailPriority.High;
        smtpclient.Timeout = 60000;
        smtpclient.Send(mailmessage);
        Response.Write("Email sent successfully!");
        }
        catch(Exception exp)
        {
            Response.Write("Email not sent!" +exp);
        }
    }
 
     
     
     
     
     
    