made the SMTP port available in case it's dynamically determined
need to look up the mailSender bean instead of using ref()
defend against null/unstarted server
0.2 release