You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: src/main/webapp/src/app/components/configuration/configuration.html
+20-4Lines changed: 20 additions & 4 deletions
Original file line number
Diff line number
Diff line change
@@ -4,12 +4,14 @@ <h1>Configuration</h1>
4
4
5
5
<sectionclass="introduction">
6
6
<pclass="wide">
7
-
Simple Java Mail provides full configuration through <strong>programmatic API</strong> as well as <strong>properties files</strong>. For each
8
-
level of configuration detail, a constructor is available keep it simple.
7
+
Simple Java Mail provides full configuration through <strong>programmatic API</strong> as well as <strong>system variables</strong>, <strong>environment
8
+
variables</strong>
9
+
and <strong>properties files</strong>. For each level of configuration detail, a simple constructor is available as well.
9
10
</p>
10
11
<pclass="wide">
11
12
The Java API and config files complement each other; the more you configure in a properties file, the less you can provide through the
12
-
programmatic API. If you provide the overlapping configuration, the programmatic API takes priority, overriding property values.
13
+
programmatic API. If you provide the overlapping configuration, the programmatic API takes priority, overriding system and environment values,
14
+
overriding property values.
13
15
</p>
14
16
</section>
15
17
@@ -105,6 +107,10 @@ <h3>Other settings</h3>
105
107
// change SOCKS5 bridge port in case of authenticated proxy
106
108
Proxyconfig proxyConfig = new ProxyConfig(...);
107
109
proxyConfig.setProxyBridgePort(1081); // is always localhost
110
+
</code></pre>
111
+
<pre><code>
112
+
// change maximum number of threads when sending asynchronously
113
+
mailer.setThreadPoolSize(20);
108
114
</code></pre>
109
115
</div>
110
116
</section>
@@ -116,12 +122,21 @@ <h2>Properties files</h2>
116
122
<section>
117
123
<divclass="view">
118
124
<p>
119
-
With properties files you can define defaults and overrides.
125
+
With properties files you can define defaults and overrides. You can also provide overriding value by defining system variables.
120
126
</p>
121
127
<p>
122
128
Simple Java Mail will automatically load properties from <codeclass="inline">simplejavamail.properties</code>, if available on the classpath.
123
129
Alternatively, you can manually load additional properties files in a number of ways.
124
130
</p>
131
+
<p>
132
+
Properties are loaded in order of priority from high to low:
0 commit comments