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?
This question: ‘Verify mail server connection programmatically in ColdFusion’ has a java solution as part of the accepted answer: