forked from bbottema/simple-java-mail
-
Notifications
You must be signed in to change notification settings - Fork 0
/
RELEASE.txt
629 lines (409 loc) · 33.1 KB
/
RELEASE.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
261
262
263
264
265
266
267
268
269
270
271
272
273
274
275
276
277
278
279
280
281
282
283
284
285
286
287
288
289
290
291
292
293
294
295
296
297
298
299
300
301
302
303
304
305
306
307
308
309
310
311
312
313
314
315
316
317
318
319
320
321
322
323
324
325
326
327
328
329
330
331
332
333
334
335
336
337
338
339
340
341
342
343
344
345
346
347
348
349
350
351
352
353
354
355
356
357
358
359
360
361
362
363
364
365
366
367
368
369
370
371
372
373
374
375
376
377
378
379
380
381
382
383
384
385
386
387
388
389
390
391
392
393
394
395
396
397
398
399
400
401
402
403
404
405
406
407
408
409
410
411
412
413
414
415
416
417
418
419
420
421
422
423
424
425
426
427
428
429
430
431
432
433
434
435
436
437
438
439
440
441
442
443
444
445
446
447
448
449
450
451
452
453
454
455
456
457
458
459
460
461
462
463
464
465
466
467
468
469
470
471
472
473
474
475
476
477
478
479
480
481
482
483
484
485
486
487
488
489
490
491
492
493
494
495
496
497
498
499
500
501
502
503
504
505
506
507
508
509
510
511
512
513
514
515
516
517
518
519
520
521
522
523
524
525
526
527
528
529
530
531
532
533
534
535
536
537
538
539
540
541
542
543
544
545
546
547
548
549
550
551
552
553
554
555
556
557
558
559
560
561
562
563
564
565
566
567
568
569
570
571
572
573
574
575
576
577
578
579
580
581
582
583
584
585
586
587
588
589
590
591
592
593
594
595
596
597
598
599
600
601
602
603
604
605
606
607
608
609
610
611
612
613
614
615
616
617
618
619
620
621
622
623
624
625
626
627
628
629
https://www.simplejavamail.org
<dependency>
<groupId>org.simplejavamail</groupId>
<artifactId>simple-java-mail</artifactId>
<version>8.0.1</version>
</dependency>
v8.0.0 - v8.0.1
- v8.0.1 (30-April-2023): #456: Enhancement: make Content-Transfer encoder detection more lenient, supporting more values from the wild
- v8.0.0 (08-March-2023): #451: Feature: Make defaults and overrides a first class feature
- v8.0.0 (08-March-2023): #452: Enhancement: with ".disableAllClientValidation(true)", also ignore errors from the completeness check
- v8.0.0 (08-March-2023): #450: Bug: when using dispositionNotificationTo or returnReceiptTo mode, when the corresponding emails are not filled, it fails even though it should fall back to replyTo or From
- v8.0.0 (08-March-2023): #449: Bug: IllegalArgumentException on parsing empty header name and value (when parsing Outlook message)
- v8.0.0 (08-March-2023): #448: Bug: withEmailDefaults and withEmailOverrides does not work with CustomMailer
- v8.0.0 (08-March-2023): #447: Enhancement: allow defaults/overrides to ignore individual fields (turn off for specific properties)
- v8.0.0 (08-March-2023): #446: Enhancement: add missing defaults properties for DKIM
This release changes how Email instances are built, or more specifically, when defaults and overrides are applied.
There are now overloaded build methods that provide similar behaviour as previous versions.
v7.9.0 - v7.9.1
- v7.9.1 (22-February-2023): #444: Bugfix: encoded delimited recipients in EML not parsed properly
- v7.9.0 (21-February-2023): #344: Enhancement: make DKIM signing more flexible by allowing header exclusions in DKIM signature
v7.8.0 - v7.8.3
- v7.8.3 (21-February-2023): #293: Bugfix: Decoding missing in a few placed when parsing MimeMessage or sending an Email
- v7.8.2 (09-February-2023): #442: Enhancement: Simple Java Mail should throw an exception when trying to utilize S/MIME with smime-module on the classpath
- v7.8.1 (01-February-2023): #438: Bug: properly Fail-Fast in case of Transport claim timeout in the batch-module, rather than running into NPE further down the line
- v7.8.0 (24-January-2023): #436: Enhancement: add mailerBuilder.withTransportModeLoggingOnly() as mailer API entry point
- v7.8.0 (24-January-2023): #435: Enhancement: SMTP server config should be optional in case a CustomMailer is used
- v7.8.0 (24-January-2023): #427: Feature: set a maximum email size on Mailer level which throws EmailToBig exception when exceeded
v7.7.0 - [v7.7.1](https://search.maven.org/#artifactdetails%7Corg.simplejavamail%7Csimple-java-mail%7C7.7.1%7Cjar)
- v7.7.1 (18-January-2023): #434: Regression bug in #430: Email parameter missing in CustomMailer interface
- v7.7.0 (17-January-2023): #430: Enhancement: auto-reconnect (if needed) when reclaiming a Transport connection from the SMTP connection
- v7.7.0 (17-January-2023): #383: Feature: be able to set defaults and overrides on the Mailer level, rather than email or global level
7.7.0 moves the conversion of Email to MimeMessage to after a Transport instance has been selected (in case of a cluster of SMTP servers),
so we can apply defaults/overrides on the Mailer level, meaning you can configure 'global' values for individual SMTP servers
(like a fixed FROM per server).
v7.6.0 (05-January-2022)
- #421: Enhancement: Add support for OAUTH2 authentication
v7.5.0 - v7.5.2
- v7.5.2 (25-December-2022): #429: Bug: wrong username property used when password authentication is not needed
- v7.5.1 (12-December-2022): #416: Bug: Support encoder names regardless of their case ("base64" is the same as "BASE64")
- v7.5.1 (12-December-2022): #424: Maintenance: bump JMail dependency from 1.2.1 to 1.4.1
- v7.5.0 (28-July-2022): #411: Enhancement: expose validation sub steps in the MailerHelper class for the completeness check, CRLF inject scans and address validations
- v7.5.0 (28-July-2022): #410: Bug: CRLF injection scan missing for dispositionNotificationTo and returnReceiptTo
- v7.5.0 (28-July-2022): #390: Enhancement: make client sided validation optional, turning off address validation and CRLF injection detection
v7.4.0 (19-July-2022)
- #407: Enhancement: Process all Outlook message headers, either copying the as-is or translating them to respective Simple Java Mail API calls
- #404: Minor bugfix: the new attachment's contentDescription was missing in Email.toString()
v7.3.0 (15-July-2022)
- #405: Feature: Expand email builder API to support forced content Content-Transfer-Encoding for attachments, like quoted-printable, base64, 7BIT and others
- #404: Feature: Expand email builder API to support Content-Description on attachments
v7.2.0 - v7.2.1
- v7.2.1 (13-July-2022): #396: Enhancement: make Outlook support tolerant of invalid/empty nested Outlook message attachments
- v7.2.0 (13-July-2022): #399: Feature: Expand email builder API to support selective content encoding, like quoted-printable, base64, 7BIT and others
v7.1.0 - v7.1.3
- v7.1.3 (12-July-2022): #403: Security: Bump zip4j (only used during testing)
- v7.1.2 (12-July-2022): #401: Enhancement: Add HEIC and WEBP support when dynamically resolving embedded images from classpath
- v7.1.2 (12-July-2022): #402: Security: Update Log4j to 2.17.1
- v7.1.2 (12-July-2022): #393: Security: Update Apache POI and POI Scratchpad
- v7.1.1 (27-March-2022): #387: Bug: memory leak in SMPT connection pool when 3rd party deallocation failed with exception
- v7.1.0 (25-January-2022): #379: Maintenance: Adjust dependencies and make Java 9+ friendly
v7.0.1 - v7.0.2
- v7.0.2 (25-January-2022): #329: Enhancement: Exceptions cause error-level logging in addition to rethrowing the exception, but should just include the message in a custom exception
- v7.0.2 (25-January-2022): #378: Bug: package org.simplejavamail.internal.modules causes split package problem in Java9+
- v7.0.1 (22-January-2022): #375: Bug: [batch-module](https://www.simplejavamail.org/features.html#section-sending-asynchronously) gives error when there is a [custom mailer](https://www.simplejavamail.org/features.html#section-custom-mailer)
v7.0.0 (2-January-2022)
It has been two years since the last major release, but 7.0.0 finally here!
#### What's new ####
Major features:
- #322: Simple Java Mail migrated to Java 8 finally (see notes below)
- #295: And also switched to JavaMail's successor Jakarta Mail 2.0.1 (see notes below)
- #323: Solved the great CLI performance problem (now executes near instantly)
- #319: Replaced the underlying regex-based email-address validation library with the lexer based [JMail](https://github.com/RohanNagar/jmail), which is faster, correcter, documented better and is more up-to-date with RFC's
- #367: The sendMail/testConnection methods now has proper support for `CompletableFuture`
Bugfixes:
- #352: Bug: names regex groups are not supported in Android JVM
- #326: Bug: NullPointer when parsing Outlook Message with nested empty Outlook message
- #330: Bug: cli expected --mailer arguments duplicated 3 times
- #324: Bug: Add back missing log4j2 for CLI library
Maintenance:
- #368: Resolve log4j (Java8) [vulnerability](https://logging.apache.org/log4j/2.x/security.html) in Simple Java Mail's CLI module
- #330: Improved feedback from failing CLI commands
- #327: Implement toString() for Mailer instances for debugging purposes
#### About the migration ####
Updating to Java8/Jakarta 2.0.1 posed a challenge as the 3rd party S/MIME library https://github.com/markenwerk/java-utils-mail-smime has been abandoned/archived while developing Simple Java Mail. Furthermore, it was still under LGPL3 license while everything else is ApacheV2.
Thankfully, I obtained permissions from the maintainers -as well as original developers from decades ago on SourceForge- to take both java-utils-mail-smime and java-utils-mail-dkim under my wings at Simple Java Mail and change the licensing model! You can now post issues and pull requests here:
- https://github.com/simple-java-mail/java-utils-mail-smime
- https://github.com/simple-java-mail/java-utils-mail-dkim
v6.7.0 - v6.7.6
- v6.7.6 (22-January-2022): #375: Bug: batch-module gives error when there is a custom mailer
- v6.7.5 (26-December-2021): #338: Enhancement: Also return AsyncResponse from plain Mailer.sendEmail(singleArgument) as async can be configured through MailerBuilder now
- v6.7.4 (25-December-2021): #331: Enhancement: Coalesce empty SMTP server arguments to null to support CLI better
- v6.7.3 (25-December-2021): #335: Bugfix: Precondition nonNull check also checks nonEmpty and breaks on clearEmailAddressCriteria
- v6.7.2 (25-December-2021): #318: Maintenance: Allow zero data attachments so Outlook message conversions don't crash and burn
- v6.7.1 (25-December-2021): #346: Bugfix: Add option to parse MimeMessage without fetching attachment data from server - Properly return named datasource without fetching all the data if unwanted
- v6.7.0 (25-December-2021): #356: Enhancement: Improve for support for Android < 8.0 (Fix NoClassDefFoundError)
- v6.7.0 (25-December-2021): #351: Bugfix: emlToEmail() and mimeMessageToEmail() break on mesages with duplicate names and legacy empty nested messages
- v6.7.0 (25-December-2021): #347: Maintenance: Reduce log-spam and prevent exception on every module availability check
- v6.7.0 (25-December-2021): #346: Feature: Add option to parse MimeMessage without fetching attachment data from server
v6.6.0 - v6.6.2
- v6.6.2 (23-December-2021): #365: Resolve log4j vulnerability in Simple Java Mail
- v6.6.1 (12-June-2021): #321: Ignore malformed recipient addresses and continue parsing email data
- v6.6.0 (1-June-2021): #320: Added default S/MIME signing to Mailer lever and fixed crippling performance bug
v6.5.0 - v6.5.4
- v6.5.4 (22-May-2021): #315: Enhancement: Nested attachments of Outlook message attachments are now preserved as standard EML MimeMessage attachments
**NOTE:** This _removes_ the Kryo dependency
- v6.5.3 (4-May-2021): #314: Bugfix: Nested attachments of Outlook message attachments are now preserved, by utilizing Kryo
**NOTE:** This add Kryo as extra dependency to the outlook-module (and is subsequently removed in 6.5.4)
- v6.5.2 (15-April-2021): #307: Bugfix: text/calendar as string -> ClassCastException (if calendar type is not Inputstream)
- v6.5.1 (10-April-2021): #307 / #310: Bugfix: embedded image name got mangled if they included an extension
- v6.5.0 (16-February-2021): #298: Enhancement: Nested Outlook messages aren't discarded anymore, but parsed to serialized Email objects
- v6.5.0 (16-February-2021): #292: Bugfix: NullPointerException in SmimeUtilFixed when protocol is missing (which is valid)
- v6.5.0 (16-February-2021): #289: Bugfix: Support multiple headers with same key
This release breaks all GET/SET api regarding headers used as map (Map<String, T> -> Map<String, Collection<T>>)
This release might break api in the rare case you relied on the attachment list and you have nested Outlook .msg attachments (previously omitted in the results)
v6.4.0 - v6.4.5
- v6.4.5 (13-Februari-2021): #306: Maintenance: Update outlook-message-parser to 1.7.9
- v6.4.5 (13-Februari-2021): #304: Regression bugfix: batch-module needed for sending mails async, basic version should work without
- v6.4.5 (13-Februari-2021): #303: Bugfix: EML Attachments are modified/have the wrong size
- v6.4.4 (25-October-2019): #294: Always invoke async success/exception handlers even if set after sending email (behaving more like promises/futures)
- v6.4.4 (25-October-2019): #291: On Exception only log the email ID at error level and log the whole email at trace level
- v6.4.4 (25-October-2019): #290: Only perform expensive logging logic if respective logging level is enabled
- v6.4.3 (6-August-2019): #284: Improved support for Calendar attachments created by gMail
- v6.4.3 (6-August-2019): #283: Bugfix: Fix support for reading Calendar attachments with quoted-printable transfer-type
- v6.4.2 (3-August-2019): #281: Bugfix: Fix support for reading Calendar attachments
- v6.4.1 (26-July-2019): #252: Bugfix: Added missing support for S/MIME envloped signing
- v6.4.0 (19-July-2019): #268: Bugfix: Immediately resolve InputStreams when building emails, don't reuse (which resulted in errors)
* This primarily affects the builder api for S/MIME and DKIM signing / encryption.
v6.3.0 - v6.3.2 (11-July-2020 - 12-July-2020)
- #271: Bugfix: Attachment (file)names with special characters should not be encoded
- #248: Bugfix: MimeMessageHelper: use complete filename as resource name
- #279: Allow extra Session properties configured through simplejavamail.properties
- #277: Add API for using custom SSLSocketFactory
v6.2.0 (6-July-2020)
This release adds the following major new feature:
- #260: Add support for dynamic datasource resolution (file/url/classpath) for embedded images in HTML body
v6.1.0 (5-July-2020)
- #264: Switch from AssertionError to IllegalStateException
- Bumped outlook-message-parser from 1.7.3 to 1.7.5
- bugfix for parsing chinese unsent Outlook messages
- bugfix Outlook attachments with special characters in the name
- Bumped email-rfc2822-validator from 2.1.3 to 2.2.0
- bugfix properly handle brackets in email addresses when allowed
- Bumped log4j-core from 2.6.1 to 2.13.2
v6.0.2 - v6.0.5 (21-Januari-2020 - 13-June-2020)
- #270: Bug: CLI module missing Jetbrains @Nullable annotation dependency needed in runtime
- #262: Bug: Executor settings passed to the builder are ignored
- #249: Bug: MimeMessageParser doesn't handle multiple attachments with the same name correctly
- #245: Bug: JDK9+ Incorrect JPMS Automatic-Module-Name
- #246: Bug: Sending async emails with and without the Batch module cause lingering threads
v6.0.0-rc1 - v6.0.1 (18-December-2019 - 24-January-2020)
After almost two years of development the next major release 6.0.0 is finally here! And what a doozy it is, with the following major new features:
The core library is now even smaller compared to the 5.x.x series going from 183kb to 134kb!
- [CLI support!!](https://github.com/bbottema/simple-java-mail/issues/156),
- major performance improvement with [advanced batch processing](https://github.com/bbottema/simple-java-mail/issues/214) including support for mail server clusters.
- You can now replace the final sending of emails with [your own logic](https://github.com/bbottema/simple-java-mail/issues/121), using a 3rd party service of your choice.
- 6.0.0 also includes support for [S/MIME signed and encrypted emails](https://github.com/bbottema/simple-java-mail/issues/187)!
- All 3rd party dependencies have been made optional by splitting up Simple Java Mail into easy to use [modules](https://github.com/bbottema/simple-java-mail/issues/183).
- You can now monitor and [handle async processing](https://github.com/bbottema/simple-java-mail/issues/148) using Futures.
- MimeMessage results are now [structurally matched](https://github.com/bbottema/simple-java-mail/issues/144) to specific needs (only using alternative/mixed etc. when needed)
Here's the complete list of changes:
#### New features and enhancements ####
- #183: To manage all the optional dependencies and related code, Simple Java Mail should be split up into modules
- #156: Add CLI support
- #214: Support more advanced batch processing use cases
- #187: Simple Java Mail should have optional support for signed S/MIME attachments
- #121: Introduce interfaces for validation and sending, so these steps can be customized
- #144: Simple Java Mail should tailor the MimeMessage structure to specific needs
- #138: Add support for Calendar events (iCalendar vEvent)
- #235: Be able to fix the sent date for a new email
- #232: Improve encoding of attachment file names
- #222: Add config property support for trusting hosts and verifying server identity
- #212: Authenticated proxy server started even if already running, raising exception
- #207: Implement more comprehensive ThreadPoolExecutor and expose config options
- #211: SpringSupport should expose the intermediate builder for customization
- #193: Simple Java Mail should use default server ports when not provided by the user
#### Bugs solved ####
- #242: Renamed log4j2.xml to log4j2_example.xml so it doesn't clash with project config
- #241: EmailConverter.outlookMsgToEmail duplicates recipients
- #239: List of Recipients not ordered as added (insertion order not maintained)
- #236: Message ID should be mapped from Outlook messages as well
- #210: Connection/session timeout properties not set when not sending in batch mode
- #201: When parsing Outlook message, FROM address should default to a dummy address when missing
- #200: When parsing Outlook message, attachment name doesn't fallback on filename if proper name is empty
- #161: When reading (chinese) .msg files, HTML converted from RTF is completely garbled (encoding issue)
- #159: Can not parse email with blank email address headers
- #139: Multiple Bodyparts of same Content-Type not supported for text/html & text/plain within Multipart/mixed or Multipart/alternative
- #151: Attachment's file extension overwritten by resource's invalid extension
#### Maintenance updates ####
- #165: Move away from Findbugs (unofficial JSR-305) annotations
- #164: The DKIM dependency has been updated to benefit from the newer Apache V2 license
- #164: The DKIM dependency has been updated to benefit from the newer Apache V2 license
- #184: Update JavaMail dependency to 1.6.2, adding support for UTF-8 charset
- #186: Update JavaMail dependency to 1.6.2, adding support for authenticated HTTP web proxy
- #146: Added OSGI manifest and switched to spotbugs
#### Included changes from the outlook-message-parser dependency ####
- v6.0.1, v1.7.3: #27: When from name/address are not available (unsent emails), these fields are filled with binary garbage
- v6.0.1, v1.7.2: #26: To email address is not handled properly when name is omitted
- v6.0.0, v1.7.1: #25: NPE on ClientSubmitTime when original message has not been sent yet
- v6.0.0, v1.7.1: #23: Bug: __nameid_ directory should not be parsed (and causing invalid HTML body)
- v6.0.0, v1.7.0: #18: Upgrade Apache POI 3.9 -> 4.x (but managed back for Simple Java Mail due to incompatibility with Java 7)
- v6.0.0, v1.6.0: #21: Multiple TO recipients are not handles properly
- v6.0.0, v1.5.0: #20: CC and BCC recipients are not parsed properly
- v6.0.0, v1.5.0: #19: Use real Outlook ContentId Attribute to resolve CID Attachments
- v6.0.0, v1.4.1: #17: Fixed encoding error for UTF-8's Windows legacy name (cp)65001
- v6.0.0, v1.4.0: #9: Replaced the RFC to HTML converter with a brand new RFC-compliant convert! (thanks to @fadeyev!)
- v6.0.0, v1.3.0: #14: Dependency problem with Java9+, missing Jakarta Activation Framework
- v6.0.0, v1.3.0: #13: HTML start tags with extra space not handled correctly
- v6.0.0, v1.3.0: #11: SimpleRTF2HTMLConverter inserts too many <br/> tags
- v6.0.0, v1.3.0: #10: Embedded images with DOS-like names are classified as attachments
- v6.0.0, v1.3.0: #9: SimpleRTF2HTMLConverter removes some valid tags during conversion
- v6.0.0, v1.2.1: Ignore non S/MIME related content types when extracting S/MIME metadata
- v6.0.0, v1.2.1: Added toString and equals methods to the S/MIME data classes
- v6.0.0, v1.1.21: Upgraded mediatype recognition based on file extension for incomplete attachments
- v6.0.0, v1.1.21: Added / improved support for public S/MIME meta data
- v6.0.0, v1.1.20: #7: Fix missing S/MIME header details that are needed to determine the type of S/MIME application
- v6.0.0, v1.1.19: Log rtf compression error, but otherwise ignore it and keep going and extract what we can.
**A big shout out to @dnault ([runtime javadoc](https://github.com/dnault/therapi-runtime-javadoc)), @remkop ([picocli](https://picocli.info/)) and @markenwerk
([S/MIME](https://github.com/markenwerk/java-utils-mail-smime) and [DKIM](https://github.com/markenwerk/java-utils-mail-dkim)) for working with me to make the
libraries work with JDK7+ and do what Simple Java Mail needed! Finally a great many thanks the numerous contributors on Simple Java Mail as well as
[outlook-message-parser](https://github.com/bbottema/outlook-message-parser) - this release would not be there without you.**
v5.5.0 - [v5.5.1](https://search.maven.org/#artifactdetails%7Corg.simplejavamail%7Csimple-java-mail%7C5.5.1%7Cjar)
- v5.5.1 (20-October-2019): #230: Bugfix: Missing address value in address headers (ie. Return-Path) not handled properly, resulting in Exception
- v5.5.0 (15-October-2019): #229: Bugfix: Timeouts not working for synchronous sendMail calls.
If you had connection properties configured for non-async send jobs, only now they will actually start to take effect.
v5.4.0 (28-August-2019)
- #221: API bugfix: server identity verification should not be tied to host trusting
- #226: Bug fix: Attachments with spaces in name are not handled properly
- #218: Enhancement: make Email serializable
- #227: Enhancement: Make parsing recipients from EML file more lenient
- #225: Enhancement: Clarify dependency on Jakarta Activation: DataSources no longer work on Java 9+
v5.3.0 (16-August-2019)
- #215: Enhancement: Make DKIM header canonicalization RELAXED instead of SIMPLE
Note this release should have no impact, but nonetheless is a minor update so you can determine for yourself if this update would cause issues.
The release changes DKIM header canonicalization from SIMPLE to RELAXED.
v5.2.1 (16-August-2019)
- #219: Bug: MimeMessageParser rejects attachments with duplicate names
v5.2.0 (7-July-2019)
- #213: Update from javax.mail:1.6.0 to jakarta.mail:1.6.3
Note that dependencies that switched as well have been updated as part of this change. This includes the optional DKIM library and the email validation library:
- net.markenwerk:utils-mail-dkim (1.1.10 -> 1.2.0)
- com.github.bbottema:emailaddress-rfc2822 (1.1.2 -> 2.1.3)
v5.1.1 - v5.1.7
- v5.1.7 (22-May-2019): #171 Header validation tripping on known safe emails due to References header
- v5.1.6 (27-April-2019): #204A Concurrent exception when an async process starts when the previous connection pool didn't shutdown in time
- v5.1.6 (27-April-2019): #204B Exceptions in threads are now caught and logged and don't bubble up anymore
- v5.1.5 (24-April-2019): #202 Fixed ConcurrentModificationException when moving invalid embedded images as regular attachments
- v5.1.4 (5-April-2019): Fixed missing mimetype for attachments when parsing Outlook messages where mimeTag was not included
- v5.1.3 (15-Januari-2019): Updated to newer rfc-validator version, which fixed a regression bug in that library
- v5.1.2 (9-Januari-2019): #189 Bugfix for missing timeout config for .testConnection() function
- v5.1.1 (22-December-2018): #190 Fix for transitive dependency clash because of emailaddress-rfc2822 library
v5.1.0 (21-November-2018)
- #179 You can now test the connection to the SMTP server
v5.0.1 - v5.0.8
- v5.0.8 (27-Oktober-2018): #178 Fix the annoying vulnerability Github report about spring-core
- v5.0.7 (27-Oktober-2018): #175 Attachment names are not always parsed properly from MimeMessage
- v5.0.6 (3-Oktober-2018): #167 Email addresses validated despite cleared validation validation criteria
- v5.0.5 (3-Oktober-2018): #137 When replying to an email with HTML, the result body is empty
- v5.0.4 (22-September-2018): #168 Properties aquired through ConfigLoader should be typed explicitly and converted if necessary
- v5.0.3 (11-April-2018): #136 ServerConfig class should be public API
- v5.0.2 (7-April-2018): #135 trustingAllHosts should be public on the Builder API
- v5.0.2 (7-April-2018): #131 NamedDataSource should implement EncodingAware
- v5.0.1 (10-March-2018): #130 java.lang.ClassNotFoundException: net.markenwerk.utils.mail.dkim.DkimMessage. Solves the issue of missing optional class DKIM even when not used
v5.0.0 (14-Februari-2018)
Also see the migrating notes (https://www.simplejavamail.org/migration-notes-5.0.0.html#navigation)
New features
- #116 You can now test the connection to the SMTP server
- #115 Create mailers with a very robust MailerBuilder API, able to ignore defaults as well
- #114 Create emails with a very robust EmailBuilder API, able to ignore defaults as well. Now includes support for InternetAddress. Also copy
emails.
- #107 You can now easily forward or reply to emails!
Maintenance updates
Complete JavaDoc overhaul. Navigating the JavaDoc should be much more consistent now (builder API being the single *public* source of truth).
- #122 The email-rfc2822-validator library has been made a proper Maven dependency (not packaged along anymore)
- #120 The DKIM library has been made an optional proper Maven dependency (not packaged along anymore)
- #119 Switched optional Spring dependency version to property and now testing with 4.3.11.RELEASE
- #113 Updated the underlying JavaMail to 1.6.0
Security updates
- #111 Protocol properties for SMTPS are now applied properly
- #105 SMTP tries to upgrade to TLS while SMTP_TLS now enforces it and for both SMTP_TLS and SMTPS, mail.smtp.ssl.checkserveridentity is set
to true (https://javaee.github.io/javamail/docs/api/com/sun/mail/smtp/package-summary.html)
Bugfixes
- #110 Trusted hosts should be space-delimited
- #109 Email headers should be allowed to be empty (now conversion errors can occur as well)
- #103 Converting to MimeMessage results in an invalid Content-Disposition for attachments
v4.4.5 (2-September-2017)
- #101 API backwards compatibility update, reinstate old addRecipient API as deprecated (sorry for removing it abruptly)
v4.4.4 (21-August-2017)
API usability release. *This relase streamlined the recipient setters, breaking backwards compatibility (but straightforward to fix)*
- #95 Feature: Add support native API for setting Return-Receipt-To header
- #93 Feature: Add support native API for setting Disposition-Notification-To header
- #91 *Feature: Add support for parsing preformatted email addresses that include both name and address*
- #94 Bugfix: A single EmailBuilder would build emails that all share the same collections for recipients, attachments and embedded images
- #98 Bugfix: Subject and body content should be optional
v4.3.0 (12-August-2017)
Security and timeout release.
This version safeguards against SMTP injection attack from external values entering the library through *Email* instance. Also, this release
introduces default/configurable timeouts for connecting, reading and writing when sending an email.
- #89 Support multiple delimited recipient addresses sharing the same TO/CC/BCC name
- #88 Safeguard subject property (and others) against SMTP CRLF injection attacks
- #85 Apply configurable timeouts when sending emails
- #83 Parse INLINE attachments without ID as regular attachments when converting (mostly applicable to Apple emails)
v4.2.3 (21-May-2017)
- #79: Enhancement: define custom message ID on the Email object
- #74: v4.2.3-java-6-release: A java6 version with limited capabilities:
I've released a customised java6 release with a customised outlook-message-parser 1.1.16-java6-release. This is the last java6 release I will do,
as it is simply too much manual labor to create a limited second edition.
For this edition, I've removed the JDK7 Phaser completely which has the following consequences:
- If authenticated proxy is used, the bridging proxy server will not be shut down automatically (and might not run the second time)
- If mails are sent in async mode, the connection pool will not be shut down anymore by itself
This means your server/application might not stop properly due to lingering processes. To be completely safe, only send emails in sync mode (used by default) and don't use authenticated proxy config.
v4.2.2 (10-May-2017)
- #73: Patch: fix for sending emails in async mode, which makes sure the connection pool is always closed when the last *known* email has been sent. Without
this fix, the connection pool keeps any parent process running (main thread or Tomcat for example) until a hard kill.
v4.2.1 (12-Feb-2017)
Patch: streamlined convenience methods for adding recipients.
v4.2.0 (12-Feb-2017)
Major feature: Using the EmailConverter you can now convert between Outlook .msg, EML, MimeMessage and Email!
- #66: Feature: convert email to EML
- #65: Feature: read outlook messages from .msg file
- #64: Feature: Added support for logging-only mode that skips the actual sending of emails
- #63: Feature: Already including in previous patch update: Spring support (read properties from Spring context)
- #69: Enhancement: Expanded EmailBuilder API to inlude more options for setting (multiple) recipients
- #70: Enhancement: Most public API now have defensive null-checks for required fields (Fail Fast support)
- #68: Bugfix: Name should be required for embedded images (added safeguards)
- #67: Bugfix: Error when name was omitted for attachment
- minor: added methods on AttachmentResource that reads back the content as (encoded) String
- other: internal testing is now done using Wiser SMTP test server for testing live sending emails
Note: Starting this release, there will always be a Java6 compatible release as well versioned: "x.y.z-java6-release"
v4.1.3 (28-Jan-2017)
- #61: Feature: Add support for providing your own Properties object
- #63: Feature: Spring support (read properties from Spring context)
- #58: Bugfix: Add support for non-English attachment and embedded image names
- #62: Bugfix: Empty properties loaded from config should be considered null
NOTE: ConfigLoader moved from /internal/util to /util
v4.1.2 (07-Nov-2016)
- #52: bug fix for windows / linux disparity when checking socket status
- #56: bug fix for IOException when signing dkim with a File reference
v4.1.1 (30-Jul-2016)
- #50: bug fix for manual naming datasources
v4.1.0 (22-Jul-2016)
- #48: Added programmatic support trusting hosts for SSL connections
- #47: Honor given names, deduce extension from datasource name, and more robust support for parsing mimemessages
v4.0.0 (05-Jul-2016)
- #41: added support for fast parallel batch processing
- #42: **added support for config files**
- #43: removed logging implementation dependencies from distribution and documented various sample configs
- #39: simplified and renamed packages to reflect the domain name of the new website: simplejavamail.org
- #38: added support for anonymous proxy
- #38: **added support for authenticated proxy**
NOTE: All packages have been renamed to "org.simplejavamail.(..)"
NOTE: Switched to Java 7
v3.1.1 (11-May-2016)
Major feature: DKIM support!
- #36: Added proper toString and equals methods for the Email classes
- #33: Added support for DKIM domain key signing
NOTE: this is the last release still using Java 6. Next release will be using Java 7.
/edit: starting with 4.2.0 every release will now have a "x.y.z-java6-release" release as well
v3.0.2 (07-May-2016)
- #35: added proper .equals() and .toString() methods
- #34: Fixed bug when disposition is missing (assume it is an attachment)
- #00: added findbugs support internally
v3.0.1 (29-Feb-2016)
- #31: Fixed EmailAddressCriteria.DEFAULT and clarified Javadoc
v3.0.0 (26-Feb-2016)
- #30: Improved the demonstration class to include attachments and embedded images
- #29: The package has been restructured for future maintenance, breaking backwards compatibility
- #28: Re-added improved email validation facility
- #22: Added conversion to and from MimeMessage. You can now consume and produce MimeMessage objects with simple-java-mail
v2.5.1 (19-Jan-2016)
- #25: Added finally clausule that will always close socket properly in case of an exception
v2.5 (19-Jan-2016)
- #24: Updated dependencies SLF4J to 1.7.13 and switched to the updated javax mail package com.sun.mail:javax.mail 1.5.5
v2.4 (12-Aug-2015)
- #21: Builder API uses CC and BCC recipient types incorrectly
v2.3 (21-Jul-2015)
- #19: supporting custom Session Properties now and emergency access to internal Session object.
v2.2 (09-May-2015)
- #3: turned off email regex validation by default, with the option to turn it back on
- #7: fixed NullPointerException when using your own Session instance
- #10: properly UTF-8 encode recipient addresses
- #14: switched to SLF4J, so you can easily use your own selected logging framework
- #17: Added fluent interface for building emails
v2.1 (09-Aug-2012)
- fixed character encoding for reply-to, from, to, body text and headers (to UTF-8)
- fixed bug where Recipient was not public resulting in uncompilable code when calling email.getRecipients()
v2.0 (20-Aug-2011)
- added support for open headers (such as X-Priority)
v1.9.1 (08-Aug-2011)
- updated for Maven support (library hasn't changed, but 1.9 was released incorrectly to Maven Central)
v1.9 (6-Aug-2011)
- added support for JavaMail's reply-to address
- made port optional as to support port defaulting based on protocol
- added transport strategy default in the createSession method
- tightened up thrown exceptions (MailException instead of RuntimeException)
- added and fixed JavaDoc
v1.8
Added support for TLS (tested with gmail)
v1.7 (22-Mar-2011)
Added support for SSL! (tested with gmail)
- improved argument validation when creating a Mailer without preconfigured Session instance
know possible issue: SSL self-signed certificates might not work (yet). Please let me know by e-mail or create a new issue
v1.6
Completed migration to Java Simple Mail project.
- removed all Vesijama references
- updated TestMail demonstration class for clarification
- updated readme.txt for test run instructions
- included log4j.properties
v1.4 (15-Jan-2011)
vX.X (26-Apr-2009)
- Initial upload to Google Code.