Recently, I was trying to configure the OpenMRS email capabilities (MessageService and MailSender / Mail Session) to test out email capabilities.
I was using Gmail as an email service, and in order to configure this successfully, I found that I needed to set the following properties when creating the mail Session:
This was is not possible to define using the existing Mail configuration, which only supports a subset of these properties. Specifically, mail.smtp.ssl.protocols and mail.smtp.socketFactory.class are not able to be configured.
This ticket aims to fix this by supporting a wider, more general range of mail configuration settings based on the "mail." prefix.