Currently, simpleMailSender bean is activated when SimpleEmailServiceJavaMailSender
is not in the classpath but the bean itself depends on one class
in the same package that SimpleEmailServiceJavaMailSender.
This commit improves the condition by activating when javax.mailSession
is not in the classpath.
Currently,
simpleMailSender
bean is activated whenSimpleEmailServiceJavaMailSender
is not in the classpath but the bean itself depends on one class in the same package thatSimpleEmailServiceJavaMailSender
. This commit improves the condition by activating whenjavax.mailSession
is not in the classpath.