Validate smtp server credentials using java without actually sending mail.
- by Sathish
To verify smtp server credentials shall I use transport.connect()?
Session session = Session.getInstance(properties,authenticator);
Transport tr=session.getTransport("smtp");
tr.connect();
Is it correct method to check smtp server credentials?