Uploaded image for project: 'ServiceMix Components'
  1. ServiceMix Components
  2. SMXCOMP-767

It should be possible to set the username/password via a header/property for the servicemix-mail provider

    XMLWordPrintableJSON

Details

    • Improvement
    • Status: Resolved
    • Minor
    • Resolution: Fixed
    • None
    • 2010.02
    • servicemix-mail
    • None
    • Patch Available

    Description

      The main use-case for this is to actually avoid putting the username/password in the xbean.xml and instead obtain the username/password from an encrypted store and dynamically set these to be used by the servicemix-mail provider when it connects to the SMTP server. Currently the username, password, host and port are only read when the SU is deployed and it appears there's no header or property that the servicemix-mail provider checks before connecting to SMTP and sending the message.

      This patch adds this functionality, also removes a little duplicate code.

      Attachments

        1. SM-1956.txt
          7 kB
          Stanley J. Lewis

        Activity

          People

            lhein Lars Heinemann
            slewis Stanley J. Lewis
            Votes:
            0 Vote for this issue
            Watchers:
            0 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved: