spring-framework / org.springframework.mail.javamail / JavaMailSenderImpl / testConnection

testConnection

open fun testConnection(): Unit

Validate that this instance can connect to the server that it is configured for. Throws a MessagingException if the connection attempt failed.