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

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

    XMLWordPrintableJSON

Details

    • New Feature
    • Status: Resolved
    • Major
    • Resolution: Fixed
    • None
    • 2.17.2, 2.18.0
    • camel-mail
    • None
    • 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

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

            Dates

              Created:
              Updated:
              Resolved: