Uploaded image for project: 'OpenMRS Core'
  1. OpenMRS Core
  2. TRUNK-6063

Email configuration does not support all required configuration parameters

    XMLWordPrintable

Details

    • Low

    Description

      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:

      mail.from=myaddress@gmail.com
      mail.user=myaddress@gmail.com
      mail.password=anapikeythatisgeneratedingmailsecuritysettings
      mail.transport.protocol=smtp
      mail.smtp.host=smtp.gmail.com
      mail.smtp.port=465
      mail.smtp.auth=true
      mail.smtp.starttls.enable=true
      mail.smtp.ssl.protocols=TLSv1.2
      mail.smtp.socketFactory.class=javax.net.ssl.SSLSocketFactory
      

      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.

      dkayiwa / ibacher let me know if you have any thoughts or concerns about this.

      Gliffy Diagrams

        Attachments

          Activity

            People

              mseaton Mike Seaton
              mseaton Mike Seaton
              Votes:
              0 Vote for this issue
              Watchers:
              2 Start watching this issue

              Dates

                Created:
                Updated:
                Resolved: