How can I hardcode in my program what normally would be retrieved from javamail.default.providers and javamail.providers files?
David Larsson I received this answer from Bill Shannon, one of the authors to JavaMail:
No. Those files should not be in your source tree. You should use mail.jar directly, not extract the pieces of it.