RELEASE-NOTES.txt 11 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318
  1. Commons Email Package
  2. Version 1.5
  3. Release Notes
  4. INTRODUCTION:
  5. -------------
  6. Commons Email aims to provide a API for sending email. It builds on the JavaMail
  7. API with the aim of presenting a simplified API which is easy for developers who
  8. are not mail experts to use. It is a compact component with a small number of
  9. classes.
  10. The Commons Email website is the source for the most recent information,
  11. downloads, reports, and bug status:
  12. http://commons.apache.org/email/
  13. This is a major release which adds some new features and fixes several bugs
  14. present in the 1.4.0 release. All current users are encouraged to upgrade.
  15. CHANGES FROM 1.4:
  16. -----------------
  17. == Compatibility ==
  18. * Java 6 or later is required.
  19. * JavaMail dependency has been upgraded to version 1.5.6,
  20. as a consequence, the maven dependency has changed to:
  21. <dependency>
  22. <groupId>com.sun.mail</groupId>
  23. <artifactId>javax.mail</artifactId>
  24. <version>1.5.6</version>
  25. </dependency>
  26. == New Features ==
  27. * Add Support for International Domain Names. This change requires JDK 1.6+.
  28. Issue: EMAIL-160
  29. * Add Email#getHeader(String) and Email#getHeaders() methods.
  30. Issue: EMAIL-154. Thanks to Ken Geis, Balachandran Sivakumar
  31. == Updates ==
  32. * Update Oracle JavaMail dependency from 1.5.2 to 1.5.6.
  33. Issue: EMAIL-165.
  34. * Remove "javax.activation" dependency since it is included in JDK 1.6
  35. Issue: EMAIL-161.
  36. == Fixed Bugs ==
  37. * DataSourceClassPathResolver doesn't close InputStream when resolving resources
  38. Issue: EMAIL-167. Thanks to Lucian Burja.
  39. CHANGES FROM 1.3.3:
  40. -----------------
  41. == Compatibility ==
  42. * Java 5 or later is required (unchanged since 1.3).
  43. * JavaMail dependency has been upgraded to version 1.5.2,
  44. as a consequence, the maven dependency has changed to:
  45. <dependency>
  46. <groupId>com.sun.mail</groupId>
  47. <artifactId>javax.mail</artifactId>
  48. <version>1.5.2</version>
  49. </dependency>
  50. == New Features ==
  51. * Added getter for the bounce address of an email to class Email.
  52. Issue: EMAIL-146. Thanks to Alexander Lehmann.
  53. * Added support for mapping of content-ids to DataSource in "MimeMessageParser".
  54. Issue: EMAIL-141. Thanks to Stephen Kruger.
  55. == Updates ==
  56. * Update Oracle JavaMail dependency from 1.4.5 to 1.5.2.
  57. Issue: EMAIL-144.
  58. == Fixed Bugs ==
  59. * "Email" threw an "EmailException" when trying to send the email if neither a from
  60. nor bounce address was specified, although a "mail.from" property was set in the mail session.
  61. Issue: EMAIL-149. Thanks to Richard DiCroce.
  62. * "ImageHtmlEmail" failed to embed attachments if their data source name was null.
  63. Issue: EMAIL-151. Thanks to Andreas Kohn.
  64. * Html emails did not have the correct content-type set when using the Apache Geronimo
  65. JavaMail implementation v1.8.x.
  66. Issue: EMAIL-147. Thanks to Can Eskikaya.
  67. * An "HtmlEmail" with both, an html and plain text content but no attachments or embedded
  68. images will now be created with mimetype "multipart/alternative" instead of "multipart/mixed".
  69. Issue: EMAIL-142. Thanks to Marcin Tomiak.
  70. CHANGES FROM 1.3.2:
  71. -----------------
  72. == Compatibility ==
  73. * Java 5 or later is required (unchanged since 1.3).
  74. == Fixed Bugs ==
  75. * The filename of an attachment was not properly encoded in case it contained
  76. non-ascii characters.
  77. Issue: EMAIL-138. Thanks to qed.
  78. * MimeMessageParser did not correctly parse MimeMessage objects created by
  79. calling HtmlEmail.buildMimeMessage() and HtmlEmail.getMimeMessage().
  80. Issue: EMAIL-137. Thanks to Alex Kogan.
  81. * Fix Javadoc 1.8 errors.
  82. Issue: EMAIL-136. Thanks to Ville Skyttä.
  83. CHANGES FROM 1.3.1:
  84. -----------------
  85. == Compatibility ==
  86. * Java 5 or later is required (unchanged since 1.3).
  87. == Fixed Bugs ==
  88. * Change visibility of DataSourceUrlResourceResolver.createUrl(String) to protected so
  89. that sub-classes can override it.
  90. Issue: EMAIL-135. Thanks to Andreas Kohn.
  91. * Support default mime charset property "mail.mime.charset" when adding text content
  92. to instances of either SimpleEmail or HtmlEmail.
  93. Issue: EMAIL-104. Thanks to Hiroshi Ikeda.
  94. * Added support for sending partial emails in case of invalid addresses.
  95. Issue: EMAIL-132. Thanks to Allen Xudong Cheng.
  96. * The MimeMessageParser will now correctly parse MIME multi-parts of type "text/plain"
  97. and "text/html" with a content disposition header of "attachment". The parts will
  98. be added to the list of attachments even if there is no other text or html content.
  99. Issue: EMAIL-131. Thanks to Raju Y.
  100. * Special characters in the body of an HTML email could lead to an exception when the
  101. mime message was built.
  102. Issue: EMAIL-127. Thanks to Dominik Stadler.
  103. CHANGES FROM 1.3:
  104. -----------------
  105. == Compatibility ==
  106. * Java 5 or later is required (unchanged since 1.3).
  107. == Fixed Bugs ==
  108. * DataSourceClassPathResolver will now correctly set the DataSource name for resolved
  109. resources. Additionally, it is now possible to set the name for a ByteArrayDataSource.
  110. Issue: EMAIL-125. Thanks to Jean-Marc.
  111. * Header values are not folded twice anymore. The actual encoding and folding is
  112. now only performed in Email.buildMimeMessage().
  113. Issue: EMAIL-124. Thanks to Stefan Schueffler.
  114. CHANGES FROM 1.2:
  115. -----------------
  116. == Compatibility ==
  117. * Java 5 or later is now required.
  118. == New Features ==
  119. * Added new methods addTo(String[]), addCc(String[]) and addBcc(String[]) to Email.
  120. Issue: EMAIL-114. Thanks to Gokul Nanthakumar C.
  121. * HtmlmageEmail should support class path resources
  122. Issue: EMAIL-108. Thanks to Elisabeth Kasimir, Alexander Kasimir.
  123. * Added a MultiPartEmail.attach(File) method since attaching a file is a simple and common.
  124. * Added MimeMessageParser and MimeMessageUtils.
  125. == Fixed Bugs ==
  126. * Use the provided Content-ID in HtmlEmail#embed(File, String) instead of creating
  127. a random one. The used and returned Content-ID will be URL encoded (see RFC 2392).
  128. Issue: EMAIL-101. Thanks to Andrew Starodub.
  129. * Upgraded source and binary compatibility to JDK 1.5. Additionally the public/protected
  130. methods and fields have been properly generified.
  131. Issue: EMAIL-122. Thanks to sebb.
  132. * Do not set the personal name of an address to the email address unless it is
  133. explicitly specified (affects TO, CC, BCC and FROM addresses).
  134. Issue: EMAIL-103. Thanks to David Rees.
  135. * Removed emulation support for nested exceptions in EmailException.
  136. Issue: EMAIL-117. Thanks to sebb.
  137. * Prevent external modification of internal array in DataSourceCompositeResolver.
  138. Issue: EMAIL-116. Thanks to sebb.
  139. * Close temporary input stream in MultiPartEmail#attach(DataSource, String, String)
  140. to prevent locking of file resources on windows systems.
  141. Issue: EMAIL-120. Thanks to Mike Bell.
  142. * The patch actually broke sending emails over a secured connection - disabled the
  143. "MAIL_SMTP_SSL_CHECKSERVERIDENTITY" and "MAIL_SMTP_SSL_ENABLE" activation. Tested
  144. the functionality using GMail, GMX and Office365 so the code is at least working for
  145. a couple of existing SMTP servers. Also added 'sslCheckServerIdentity' including
  146. setter and getter. Also added a chapter regarding "Security" to the user manual.
  147. Issue: EMAIL-105. Thanks to Siegfried Goeschl.
  148. * Maven Site fails with error in Checkstyle configuration.
  149. Issue: EMAIL-113. Thanks to Peter Kofler.
  150. * DataSourceFileResolverTest fails under IBM JDK 1.4 and 1.6 running on Windows.
  151. Issue: EMAIL-112. Thanks to Peter Kofler.
  152. * Update the current trunk to be binary compatible with the commons-email-1.2 release.
  153. Issue: EMAIL-111. Thanks to Florian Pirchner.
  154. * Added unit test to ensure that parsing the broken mime message does not cause an OutOfMemoryException.
  155. Issue: EMAIL-110. Thanks to Thomas Pummer.
  156. * Added mime.types to META-INF - the definition is actually found in activation.jar
  157. but did not work. Issue: EMAIL-107. Thanks to Claus Polanka, Michael Jakl.
  158. * STARTTLS can be used even without authenticator.
  159. Issue: EMAIL-106. Thanks to Bruno Harbulot.
  160. * Clarified the meaning of setTLS() which actually sends a "STARTTLS" command from the
  161. client to the SMTP server. Please note that some "protected" variables were renamed
  162. which could break existing code.
  163. Issue: EMAIL-105. Thanks to Bruno Harbulot.
  164. * Fixed HtmlEmail embed toLowerCase bug with Turkish locale.
  165. Issue: EMAIL-102. Thanks to Okan Özeren.
  166. * Specified Content-ID is now used when embedding a File object in an HtmlEmail.
  167. Issue: EMAIL-101. Thanks to Andrew Starodub.
  168. * Throwing an IllegalStateException when setting mail session properties for an already
  169. created mail session because the settings would be ignored. Please note that this
  170. change could potentially break existing (but invalid) code. Issue: EMAIL-96.
  171. * Encoding and folding of headers is now done by commons-email.
  172. Issue: EMAIL-98. Thanks to Mario Daepp.
  173. * The default connection timeout is set to a reasonable default value of 60 seconds.
  174. Issue: EMAIL-100. Thanks to David Parks.
  175. * Moving the various constants from 'EMail' to 'EmailConstants'
  176. * All setters are returning "this" to simplify building an email.
  177. Issue: EMAIL-76. Thanks to Yu Kobayashi.
  178. * Adding ImageHtmlEmail to create HTML emails with embedded images either
  179. downloaded from HTTP or from the local file system.
  180. Issue: EMAIL-92. Thanks to Dominik Stadler.
  181. * Calling buildMimeMessage() before invoking send() caused
  182. duplicated mime parts for HtmlEmail. The implementation now enforces
  183. that an email can be only used once and throw an exception when
  184. multiple invocations of buildMimeMessage() are detected.
  185. Issue: EMAIL-95.
  186. * Incorrect SMTP Port number shown in error message when an email fails
  187. to send due to a blocked port and SSL is used.
  188. Issue: EMAIL-91. Thanks to Kevin Lester.
  189. REQUIREMENTS:
  190. J2SE environments
  191. -----------------
  192. Commons Email requires JavaMail 1.5.2 or later. The reference implementation
  193. is available at:
  194. https://java.net/projects/javamail/pages/Home
  195. However, the Apache Geronimo project (http://geronimo.apache.org)
  196. provides a J2EE-certified implementation of the JavaMail 1.4
  197. specification licensed under the Apache Software License.
  198. Commons Email also requires the JavaBeans Activation Framework unless
  199. you are running on Java SE 6 or later. The Oracle implementation is available
  200. at:
  201. http://www.oracle.com/technetwork/java/javase/downloads/index-135046.html
  202. Apache Geronimo likewise provides an implementation under the Apache
  203. Software License.
  204. Commons Email has been tested with JDK 1.6 and 1.7.
  205. J2EE environments
  206. -----------------
  207. Commons Email is compatible with all certified Java Enterprise Edition
  208. 5 implementations; no further dependencies are required.
  209. Java 2 Enterprise Edition 1.4 users must ensure that the versions of
  210. JavaMail and JAF indicated above are available to their applications;
  211. the J2EE 1.4 specification only requires earlier versions.
  212. Earlier versions of J2EE are not supported.