Broadleaf provides out of box configuration and helper classes that can be used for applications that want to use JavaMail.
See the reference example Gmail Example as a sample implementation of a JavaMailSender.