Details
-
Improvement
-
Status: Closed
-
Minor
-
Resolution: Won't Fix
-
2.20.1
-
None
-
None
-
Unknown
Description
When a custom javaMailSender is used, no property setters are called on the custom javaMailSender. This in constrast with the DefaultJavaMailSender.
In MailEndpoint.createProducer() the custom javaMailSender does not get the 'replication' of the configuration properties as the createJavaMailSender() does.
The benefit of using the URL parameters is, when a custom sender is specified by reference, and it is pulled from the spring registry, and is marked as "prototype" scope, it allows the URL to configure this newly created custom sender, thereby allowing multiple configured smtp producers from camel.