== spring.mail.host, port, username, default-encoding, ssl.enabled and two mail.* properties
bean            : JavaMailSenderImpl
host / port     : smtp.example.test / 2525
protocol        : smtp
defaultEncoding : UTF-8
session props   : {mail.smtp.auth=true, mail.smtp.ssl.checkserveridentity=true, mail.smtp.ssl.enable=true, mail.smtp.timeout=7000}

== no spring.mail.host
JavaMailSender bean present: false

== no spring.mail.host, and a bean that needs a JavaMailSender
No qualifying bean of type 'org.springframework.mail.javamail.JavaMailSender' available: expected at least 1 bean which qualifies as autowire candidate. Dependency annotations: {}

== spring.mail.test-connection=true against a port nothing listens on
org.springframework.beans.factory.BeanCreationException: Error creating bean with name 'org.springframework.boot.mail.autoconfigure.MailSenderValidatorAutoConfiguration': Failed to instantiate [org.springframework.boot.mail.autoconfigure.MailSenderValidatorAutoConfiguration]: Constructor threw exception
org.springframework.beans.BeanInstantiationException: Failed to instantiate [org.springframework.boot.mail.autoconfigure.MailSenderValidatorAutoConfiguration]: Constructor threw exception
java.lang.IllegalStateException: Mail server is not available
org.eclipse.angus.mail.util.MailConnectException: Couldn't connect to host, port: 127.0.0.1, 1; timeout -1
java.net.ConnectException: Connection refused
