looking at the current code this does not seem to be possible.
We could add the ability to pass additional properties so that users can specify them in there config. These would be set on the javax.mail.Session.
I'm pretty sure this does not help you at the moment but I'll create a JIRA task for this so that you can track it.
Sorry about this.
OK, thanks for the reply. When you create a JIRA issue, please post the link here.
Just a few ideas related to the topic:
* I think I read that you plan to exted the email functionalities in JBoss by allowing users to configure more than one smtp server so probably it would be useful to make it possible to configure Session properties separately for these servers,
* the default Java mail API behavior - so when smtp properties are not explicitly set - is to load them from System.getProperties(). It might be useful to have this option in JBoss, too (at least as an option).
* based on this case I think that everyone would benefit from classes that are a bit more extensible. I mean regarding the Email class, it's basically OK (composing the body, adding attachments etc.) , but I wish I could extend it and modify only the session creation process but too many methods are marked private instead of (at least protected). anyway, this is a general remark.