Made parsing of SMTP credentials on Cloud Foundry more flexible. Changed Spring connector for SMTP to return JavaMailSender instead of MailSender.