Details
-
New Feature
-
Status: Resolved
-
Major
-
Resolution: Fixed
-
None
-
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")