SMTP connection is validated by sending mail like in below.
SmtpClient client = new SmtpClient(host);
client.Credentials = new NetworkCredential(username,password);
client.UseDefaultCredentials = false;
client.Send(mail);
But we need to validate the SMTP credentials(Host,Port,Username,Password) without sending the mail.
Is there any way to achieve this by programmatically?