Uploaded image for project: 'Camel'
  1. Camel
  2. CAMEL-9943

Expose mail session as a URI option for camel-mail endpoints

    Details

    • Type: New Feature
    • Status: Resolved
    • Priority: Major
    • Resolution: Fixed
    • Affects Version/s: None
    • Fix Version/s: 2.17.2, 2.18.0
    • Component/s: camel-mail
    • Labels:
      None
    • Estimated Complexity:
      Unknown

      Description

      In a JavaEE container, mail sessions are typically managed resources that are looked up from JNDI or injected as resources into objects.

      Right now the only way I see to configure a custom session for camel-mail is by:

      mailEndpoint.getConfiguration().setSession(myMailSession);
      

      Or by implementing a custom JavaMailSender.

      It'd be nicer if we could do something like:

      from("direct:start")
      .to("smtp://localhost?session=#myMailSession")
      

        Attachments

          Activity

            People

            • Assignee:
              davsclaus Claus Ibsen
              Reporter:
              jamesnetherton James Netherton
            • Votes:
              0 Vote for this issue
              Watchers:
              4 Start watching this issue

              Dates

              • Created:
                Updated:
                Resolved: