@@ -120,6 +120,43 @@ <h3>Configure once, reuse many times</h3>
120120 <constructor-arg value="username" />
121121 <constructor-arg value="password" />
122122</bean>
123+ </ code > </ pre >
124+ Or the default one from Spring support:
125+ < pre > < code >
126+ @Autowired Mailer mailer; // configured completely using default properties
127+ </ code > </ pre >
128+ </ div >
129+ </ section >
130+
131+
132+ < a href ="#section-add-recipients " id ="section-add-recipients " class ="section-link h3 "> §</ a >
133+ < h3 > Alternative API for almost everything</ h3 >
134+
135+ < section >
136+ < div class ="view ">
137+ < p >
138+ There alternative ways to do this in Email for almost everything, just to accomodate what you already have.
139+ </ p >
140+ </ div >
141+
142+ < div class ="side ">
143+ < p > < code class ="inline "> Email</ code > :</ p >
144+ < pre > < code > // You can add your own Recipient instances for example
145+ email.addRecipients(yourRecipient1, yourRecipient2...);
146+
147+ // or add comma / semicolon separated addresses (without names)
148+ 149+ emailNormal.addRecipients(list, RecipientType.BCC);
150+ </ code > </ pre >
151+ < p > < code class ="inline "> EmailBuilder</ code > :</ p >
152+ < pre > < code > .to(yourRecipient1, yourRecipient2...)
153+ 154+ ...
155+ .build();
156+ </ code > </ pre >
157+ < p > Through properties:</ p >
158+ < pre > < code class ="language-properties small "> simplejavamail.defaults.bcc.name=
159+ 123160</ code > </ pre >
124161 </ div >
125162 </ section >
@@ -131,11 +168,11 @@ <h3>Asynchronous parallel batch sending</h3>
131168 < section >
132169 < div class ="view ">
133170 < p >
134- The default mode is to send emails synchronously, blocking execution until the email was processed completely and the STMP server send a
171+ The default mode is to send emails synchronously, blocking execution until the email was processed completely and the STMP server sent a
135172 succesful result.
136173 </ p >
137174 < p >
138- You can also sent anyschronously in parallel or batches, or simply send in a fire-and-forget way. If an authenticated proxy is used, the < a
175+ You can also send anyschronously in parallel or batches, or simply send in a fire-and-forget way. If an authenticated proxy is used, the < a
139176 simplePageScroll href ="#section-proxy "> proxy briding server</ a > is kept alive until the last email has been sent.</ p >
140177 < p >
141178 Depending on the SMTP server (and proxy server if used) this can greatly influence how fast emails are sent.
0 commit comments