Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Add support for config files #42

Closed
bbottema opened this issue Jun 14, 2016 · 1 comment
Closed

Add support for config files #42

bbottema opened this issue Jun 14, 2016 · 1 comment
Milestone

Comments

@bbottema
Copy link
Owner

Add support for config files, so that the SMTP and proxy server details can be configured there as well as a default subject, cc. bcc, from-address and reply-to-address.

Make the config path configurable, so that you can have different configuration files per environment.

@bbottema bbottema added this to the 4.0.0 milestone Jun 14, 2016
bbottema referenced this issue Jun 19, 2016
…re solved cyclic package dependencies and bugs from findbugs and Intellij analyses. Added a lot of junit tests
@bbottema
Copy link
Owner Author

Alright, I've added robust support for loading property files, inpustreams or classpath files.

There are two levels of property files:

  1. default simplejavamail.properties from the classpath. If available, automatically loads properties from there.
  2. Loading manually from classpath file, system file or inpustream

When loading properties manually, you can choose to replace the entire list, or just add the new properties to the existing one.

An example where this might be useful is when you wish to provide defaults in the application and per environment provide more specific values.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

1 participant