-
Notifications
You must be signed in to change notification settings - Fork 0
/
RELEASE-NOTES.txt
260 lines (174 loc) · 9.37 KB
/
RELEASE-NOTES.txt
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
193
194
195
196
197
198
199
200
201
202
203
204
205
206
207
208
209
210
211
212
213
214
215
216
217
218
219
220
221
222
223
224
225
226
227
228
229
230
231
232
233
234
235
236
237
238
239
240
241
242
243
244
245
246
247
248
249
250
251
252
253
254
255
256
257
258
259
260
Commons Email Package
Version 1.3.2
Release Notes
INTRODUCTION:
-------------
Commons Email aims to provide a API for sending email. It builds on the JavaMail
API with the aim of presenting a simplified API which is easy for developers who
are not mail experts to use. It is a compact component with a small number of
classes.
The Commons Email website is the source for the most recent information,
downloads, reports, and bug status:
http://commons.apache.org/email/
This is a maintenance release which fixes several bugs present in the 1.3.1
release. All current users are encouraged to upgrade.
CHANGES FROM 1.3.1:
-----------------
== Compatibility ==
* Java 5 or later is required (unchanged since 1.3).
== Fixed Bugs ==
* Change visibility of DataSourceUrlResourceResolver.createUrl(String) to protected so
that sub-classes can override it.
Issue: EMAIL-135. Thanks to Andreas Kohn.
* Support default mime charset property "mail.mime.charset" when adding text content
to instances of either SimpleEmail or HtmlEmail.
Issue: EMAIL-104. Thanks to Hiroshi Ikeda.
* Added support for sending partial emails in case of invalid addresses.
Issue: EMAIL-132. Thanks to Allen Xudong Cheng.
* The MimeMessageParser will now correctly parse MIME multi-parts of type "text/plain"
and "text/html" with a content disposition header of "attachment". The parts will
be added to the list of attachments even if there is no other text or html content.
Issue: EMAIL-131. Thanks to Raju Y.
* Special characters in the body of an HTML email could lead to an exception when the
mime message was built.
Issue: EMAIL-127. Thanks to Dominik Stadler.
CHANGES FROM 1.3:
-----------------
== Compatibility ==
* Java 5 or later is required (unchanged since 1.3).
== Fixed Bugs ==
* DataSourceClassPathResolver will now correctly set the DataSource name for resolved
resources. Additionally, it is now possible to set the name for a ByteArrayDataSource.
Issue: EMAIL-125. Thanks to Jean-Marc.
* Header values are not folded twice anymore. The actual encoding and folding is
now only performed in Email.buildMimeMessage().
Issue: EMAIL-124. Thanks to Stefan Schueffler.
CHANGES FROM 1.2:
-----------------
== Compatibility ==
* Java 5 or later is now required.
== New Features ==
* Added new methods addTo(String[]), addCc(String[]) and addBcc(String[]) to Email.
Issue: EMAIL-114. Thanks to Gokul Nanthakumar C.
* HtmlmageEmail should support class path resources
Issue: EMAIL-108. Thanks to Elisabeth Kasimir, Alexander Kasimir.
* Added a MultiPartEmail.attach(File) method since attaching a file is a simple and common.
* Added MimeMessageParser and MimeMessageUtils.
== Fixed Bugs ==
* Use the provided Content-ID in HtmlEmail#embed(File, String) instead of creating
a random one. The used and returned Content-ID will be URL encoded (see RFC 2392).
Issue: EMAIL-101. Thanks to Andrew Starodub.
* Upgraded source and binary compatibility to JDK 1.5. Additionally the public/protected
methods and fields have been properly generified.
Issue: EMAIL-122. Thanks to sebb.
* Do not set the personal name of an address to the email address unless it is
explicitly specified (affects TO, CC, BCC and FROM addresses).
Issue: EMAIL-103. Thanks to David Rees.
* Removed emulation support for nested exceptions in EmailException.
Issue: EMAIL-117. Thanks to sebb.
* Prevent external modification of internal array in DataSourceCompositeResolver.
Issue: EMAIL-116. Thanks to sebb.
* Close temporary input stream in MultiPartEmail#attach(DataSource, String, String)
to prevent locking of file resources on windows systems.
Issue: EMAIL-120. Thanks to Mike Bell.
* The patch actually broke sending emails over a secured connection - disabled the
"MAIL_SMTP_SSL_CHECKSERVERIDENTITY" and "MAIL_SMTP_SSL_ENABLE" activation. Tested
the functionality using GMail, GMX and Office365 so the code is at least working for
a couple of existing SMTP servers. Also added 'sslCheckServerIdentity' including
setter and getter. Also added a chapter regarding "Security" to the user manual.
Issue: EMAIL-105. Thanks to Siegfried Goeschl.
* Maven Site fails with error in Checkstyle configuration.
Issue: EMAIL-113. Thanks to Peter Kofler.
* DataSourceFileResolverTest fails under IBM JDK 1.4 and 1.6 running on Windows.
Issue: EMAIL-112. Thanks to Peter Kofler.
* Update the current trunk to be binary compatible with the commons-email-1.2 release.
Issue: EMAIL-111. Thanks to Florian Pirchner.
* Added unit test to ensure that parsing the broken mime message does not cause an OutOfMemoryException.
Issue: EMAIL-110. Thanks to Thomas Pummer.
* Added mime.types to META-INF - the definition is actually found in activation.jar
but did not work. Issue: EMAIL-107. Thanks to Claus Polanka, Michael Jakl.
* STARTTLS can be used even without authenticator.
Issue: EMAIL-106. Thanks to Bruno Harbulot.
* Clarified the meaning of setTLS() which actually sends a "STARTTLS" command from the
client to the SMTP server. Please note that some "protected" variables were renamed
which could break existing code.
Issue: EMAIL-105. Thanks to Bruno Harbulot.
* Fixed HtmlEmail embed toLowerCase bug with Turkish locale.
Issue: EMAIL-102. Thanks to Okan Özeren.
* Specified Content-ID is now used when embedding a File object in an HtmlEmail.
Issue: EMAIL-101. Thanks to Andrew Starodub.
* Throwing an IllegalStateException when setting mail session properties for an already
created mail session because the settings would be ignored. Please note that this
change could potentially break existing (but invalid) code. Issue: EMAIL-96.
* Encoding and folding of headers is now done by commons-email.
Issue: EMAIL-98. Thanks to Mario Daepp.
* The default connection timeout is set to a reasonable default value of 60 seconds.
Issue: EMAIL-100. Thanks to David Parks.
* Moving the various constants from 'EMail' to 'EmailConstants'
* All setters are returning "this" to simplify building an email.
Issue: EMAIL-76. Thanks to Yu Kobayashi.
* Adding ImageHtmlEmail to create HTML emails with embedded images either
downloaded from HTTP or from the local file system.
Issue: EMAIL-92. Thanks to Dominik Stadler.
* Calling buildMimeMessage() before invoking send() caused
duplicated mime parts for HtmlEmail. The implementation now enforces
that an email can be only used once and throw an exception when
multiple invocations of buildMimeMessage() are detected.
Issue: EMAIL-95.
* Incorrect SMTP Port number shown in error message when an email fails
to send due to a blocked port and SSL is used.
Issue: EMAIL-91. Thanks to Kevin Lester.
CHANGES FROM 1.1:
-----------------
== Compatibility ==
* Java 1.4 or later is now required. Earlier versions are no longer
supported by Sun.
* JavaMail 1.4 or later and JavaBeans Activation Framework 1.1 or later are now
required.
== New Features ==
* Email.setFrom and Email.addTo are using Email.charset to properly encode
the name.
* SimpleEmail#setMsg() with UTF-8 content honors correct charset in header
and does encode the content correctly now.
* Created additional methods to support timeouts.
* Create an overridable method in Email.java to create the MimeMessage instance.
* Add getTo and getReplyTo to Email class.
== Fixed Bugs ==
* If setHostName() has not been called, getHostName() tries to return
this.session.getProperty(MAIL_HOST). If mail session has not been
created yet, this will throw a NullPointerException. Now getHostName()
checks that this.session is not null before trying to access it.
* Provide better diagnostics when attaching documents fail.
* When mail authentication is required and no username/password is supplied
than the provided mail session is used. If a username/password is found
the implementation creates a new mail session and a DefaultAuthenticator
as convenience implementation.
* Using Kenneth's implementation of HtmlEmail.buildMimeMessage() to fix a
couple of HtmlEmail layout issues. Also thanks to Martin Lau and Morten
Hattesen for providing in-depth analysis of the problem.
* During regression tests write out the generated MimeMessage instead of
WiserEmail.toString().
REQUIREMENTS:
J2SE environments
-----------------
Commons Email requires JavaMail 1.4.1 or later. The Oracle implementation
is available at:
http://www.oracle.com/technetwork/java/javamail/
However, the Apache Geronimo project (http://geronimo.apache.org)
provides a J2EE-certified implementation of the JavaMail 1.4
specification licensed under the Apache Software License.
Commons Email also requires the JavaBeans Activation Framework unless
you are running on Java SE 6 or later. The Oracle implementation is available
at:
http://www.oracle.com/technetwork/java/javase/downloads/index-135046.html
Apache Geronimo likewise provides an implementation under the Apache
Software License.
Commons Email has been tested with JDK 1.5 and 1.6.
J2EE environments
-----------------
Commons Email is compatible with all certified Java Enterprise Edition
5 implementations; no further dependencies are required.
Java 2 Enterprise Edition 1.4 users must ensure that the versions of
JavaMail and JAF indicated above are available to their applications;
the J2EE 1.4 specification only requires earlier versions.
Earlier versions of J2EE are not supported.