Skip to content

Commit fa101b1

Browse files
committed
Merge remote-tracking branch 'refs/remotes/origin/master' into develop
2 parents ead29fc + a4d4089 commit fa101b1

File tree

19 files changed

+48
-29
lines changed

19 files changed

+48
-29
lines changed

README.md

Lines changed: 17 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -1,31 +1,38 @@
11
[![APACHE v2 License](https://img.shields.io/badge/license-apachev2-blue.svg?style=flat)](modules/simple-java-mail/LICENSE-2.0.txt)
2-
[![Latest Release](https://img.shields.io/maven-central/v/org.simplejavamail/simple-java-mail.svg?style=flat)](https://search.maven.org/#search%7Cgav%7C1%7Cg%3A%22org.simplejavamail%22%20AND%20v%3A%228.8.1%22)
3-
[![Javadocs](https://img.shields.io/badge/javadoc-8.8.1-brightgreen.svg?color=brightgreen)](https://www.javadoc.io/doc/org.simplejavamail/maven-master-project)
2+
[![Latest Release](https://img.shields.io/maven-central/v/org.simplejavamail/simple-java-mail.svg?style=flat)](https://search.maven.org/#search%7Cgav%7C1%7Cg%3A%22org.simplejavamail%22%20AND%20v%3A%228.8.2%22)
3+
[![Javadocs](https://img.shields.io/badge/javadoc-8.8.2-brightgreen.svg?color=brightgreen)](https://www.javadoc.io/doc/org.simplejavamail/maven-master-project)
44
[![Codacy](https://img.shields.io/codacy/grade/c7506663a4ab41e49b9675d87cd900b7.svg?style=flat)](https://app.codacy.com/gh/bbottema/simple-java-mail)
55
![Java 8+](https://img.shields.io/badge/java-8+-lightgray.svg)
66

77
# Simple Java Mail #
88

9-
Simple Java Mail is the simplest to use lightweight mailing library for Java, while being able to send complex emails including **[CLI support](https://www.simplejavamail.org/cli.html#navigation)**, **[authenticated socks proxy](https://www.simplejavamail.org/features.html#section-proxy)**(!), **[attachments](https://www.simplejavamail.org/features.html#section-attachments)**, **[embedded images](https://www.simplejavamail.org/features.html#section-embedding)**, **[custom headers and properties](https://www.simplejavamail.org/features.html#section-custom-headers)**, **[robust address validation](https://www.simplejavamail.org/features.html#section-email-validation)**, **[build pattern](https://www.simplejavamail.org/features.html#section-builder-api)** and even **[DKIM signing](https://www.simplejavamail.org/features.html#section-dkim)**, **[S/MIME support](https://www.simplejavamail.org/features.html#section-sending-smime)** and **[external configuration files](https://www.simplejavamail.org/configuration.html#section-config-properties)** with **property overriding**, **[Spring support](https://www.simplejavamail.org/configuration.html#section-spring-support)** and **[Email conversion](https://www.simplejavamail.org/features.html#section-converting)** tools. Just send your emails without dealing with [RFCs](https://www.simplejavamail.org/rfc-compliant.html#navigation).
9+
Simple Java Mail is the simplest to use lightweight mailing library for Java, while being able to send complex emails including **[Batch processing and server clusters](https://www.simplejavamail.org/configuration.html#section-batch-and-clustering)**, **[CLI support](https://www.simplejavamail.org/cli.html#navigation)**, **[authenticated socks proxy](https://www.simplejavamail.org/features.html#section-proxy)**(!), **[attachments](https://www.simplejavamail.org/features.html#section-attachments)**, **[embedded images](https://www.simplejavamail.org/features.html#section-embedding)**, **[custom headers and properties](https://www.simplejavamail.org/features.html#section-custom-headers)**, **[robust address validation](https://www.simplejavamail.org/features.html#section-email-validation)**, **[build pattern](https://www.simplejavamail.org/features.html#section-builder-api)** and even **[DKIM signing](https://www.simplejavamail.org/features.html#section-dkim)**, **[S/MIME support](https://www.simplejavamail.org/features.html#section-sending-smime)** and **[external configuration files](https://www.simplejavamail.org/configuration.html#section-config-properties)**, **[Spring support](https://www.simplejavamail.org/configuration.html#section-spring-support)** and **[Email conversion](https://www.simplejavamail.org/features.html#section-converting)** tools (including support for Outlook).
1010

11-
The Simple Java Mail library is a thin layer on top of [Jakarta Mail](https://eclipse-ee4j.github.io/mail/) that allows users to define emails on a high abstraction level without having to deal with mumbo jumbo such as 'multipart' and 'mimemessage'.
11+
Just send your emails without dealing with [RFCs](https://www.simplejavamail.org/rfc-compliant.html#navigation).
12+
13+
The Simple Java Mail library is a thin layer on top of [Angus Mail](https://eclipse-ee4j.github.io/angus-mail/) (previously [Jakarta Mail](https://jakartaee.github.io/mail-api/README-JakartaMail)) that allows users to define emails on a high abstraction level without having to deal with mumbo jumbo such as 'multipart' and 'mimemessage'.
1214

1315
### [simplejavamail.org](https://www.simplejavamail.org) ###
1416

15-
Simple Java Mail is also available in [Maven Central](https://search.maven.org/#search%7Cgav%7C1%7Cg%3A%22org.simplejavamail%22%20AND%20a%3A%22simple-java-mail%22):
17+
Simple Java Mail is available in [Maven Central](https://search.maven.org/search?q=g:org.simplejavamail):
1618

1719
```xml
1820
<dependency>
1921
<groupId>org.simplejavamail</groupId>
2022
<artifactId>simple-java-mail</artifactId>
21-
<version>8.8.1</version>
23+
<version>8.8.2</version>
2224
</dependency>
2325
```
2426

27+
Read about additional modules you can add here: [simplejavamail.org/modules](https://www.simplejavamail.org/modules.html).
28+
2529
### Latest Progress ###
2630

27-
v8.8.0 - [v8.8.1](https://repo1.maven.org/maven2/org/simplejavamail/simple-java-mail/8.8.1/)
31+
v8.8.0 - [v8.8.2](https://repo1.maven.org/maven2/org/simplejavamail/simple-java-mail/8.8.2/)
2832

33+
- v8.8.2 (05-April-2024): [#495](https://github.com/bbottema/simple-java-mail/issues/495): Add config support for 'verifyingServerIdentity' with SMTP, also: since Angus 1.1.0 (8.6.0) server identity checks are on by default and can be countered by mailerBuilder.verifyingServerIdentity(false)
34+
- v8.8.2 (05-April-2024): [#501](https://github.com/bbottema/simple-java-mail/issues/501): [dependency] Update outlook-message-parser dependency, which has improved support for X500 addresses
35+
- v8.8.2 (05-April-2024): [#499 (fix)](https://github.com/bbottema/simple-java-mail/issues/499): [maintenance] Added missing finer-grained DKIM Spring Boot properties
2936
- v8.8.1 (04-April-2024): [#500](https://github.com/bbottema/simple-java-mail/issues/500): [bug] Fix parsing addresses from headers in EML files, like a Disposition-Notification-To with umlaut
3037
- v8.8.0 (22-March-2024): [#499](https://github.com/bbottema/simple-java-mail/issues/499): [Enhancement] Expose finer-grained DKIM configuration through the builder api and disable 'l-param' by default)
3138

@@ -49,6 +56,9 @@ v8.6.0 - [v8.6.3](https://repo1.maven.org/maven2/org/simplejavamail/simple-java-
4956
- v8.6.1 (18-January-2024): [#489](https://github.com/bbottema/simple-java-mail/issues/489): Finished update to Angus Mail by updating activation dependency
5057
- v8.6.0 (17-January-2024): [#489](https://github.com/bbottema/simple-java-mail/issues/489): Update to Angus Mail
5158

59+
NOTE: this release switches to Angus Mail which should be a transparent change, but if you encounter any issues, please report them.
60+
One known issue is that Angus, since 1.1.0, performs server identity checks by default, which was previously disabled for SMTP. If you encounter issues with this, you can disable it with `mailerBuilder.verifyingServerIdentity(false)` and starting from 8.8.2, this also works with SMTP transport strategy (see [#495](https://github.com/bbottema/simple-java-mail/issues/495)).
61+
5262

5363
v8.5.0 - [v8.5.1](https://repo1.maven.org/maven2/org/simplejavamail/simple-java-mail/8.5.1/)
5464

RELEASE.txt

Lines changed: 9 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -3,13 +3,15 @@ https://www.simplejavamail.org
33
<dependency>
44
<groupId>org.simplejavamail</groupId>
55
<artifactId>simple-java-mail</artifactId>
6-
<version>8.8.1</version>
6+
<version>8.8.2</version>
77
</dependency>
88

9-
v8.8.0 - v8.8.1
9+
v8.8.0 - v8.8.2
1010

11-
- v8.8.1 (04-April-2024): [#500](https://github.com/bbottema/simple-java-mail/issues/500): [bug] Fix parsing addresses from headers in EML files, like a Disposition-Notification-To with umlaut
12-
- v8.8.0 (22-March-2024): [#499](https://github.com/bbottema/simple-java-mail/issues/499): [Enhancement] Expose finer-grained DKIM configuration through the builder api and disable 'l-param' by default)
11+
- v8.8.2 (05-April-2024): #495: Add config support for 'verifyingServerIdentity' with SMTP, also: since Angus 1.1.0 server identity checks are on by default and can be countered by mailerBuilder.verifyingServerIdentity(false)
12+
- v8.8.2 (05-April-2024): #501: [dependency] Update outlook-message-parser dependency, which has improved support for X500 addresses
13+
- v8.8.1 (04-April-2024): #500: [bug] Fix parsing addresses from headers in EML files, like a Disposition-Notification-To with umlaut
14+
- v8.8.0 (22-March-2024): #499: [Enhancement] Expose finer-grained DKIM configuration through the builder api and disable 'l-param' by default)
1315

1416
NOTE: this release changes the default for DKIM signing from 'l-param' true to false. If you rely on this feature, you need to enable it explicitly (see the updated https://www.simplejavamail.org/security.html#section-sending-dkim).
1517

@@ -31,6 +33,9 @@ v8.6.0 - v8.6.3
3133
- v8.6.1 (18-January-2024): #489: Finished update to Angus Mail by updating activation dependency
3234
- v8.6.0 (17-January-2024): #489: Update to Angus Mail
3335

36+
NOTE: this release switches to Angus Mail which should be a transparent change, but if you encounter any issues, please report them.
37+
One known issue is that Angus, since 1.1.0, performs server identity checks by default, which was previously disabled for SMTP. If you encounter issues with this, you can disable it with `mailerBuilder.verifyingServerIdentity(false)` and starting from 8.8.2, this also works with SMTP transport strategy (see #495).
38+
3439

3540
v8.5.0 - v8.5.1
3641

modules/authenticated-socks-module/pom.xml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -8,7 +8,7 @@
88
<groupId>org.simplejavamail</groupId>
99
<artifactId>maven-master-project</artifactId>
1010
<!--suppress MavenPropertyInParent -->
11-
<version>8.8.1</version>
11+
<version>8.8.2</version>
1212
<relativePath>../../</relativePath>
1313
</parent>
1414

modules/batch-module/pom.xml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -8,7 +8,7 @@
88
<groupId>org.simplejavamail</groupId>
99
<artifactId>maven-master-project</artifactId>
1010
<!--suppress MavenPropertyInParent -->
11-
<version>8.8.1</version>
11+
<version>8.8.2</version>
1212
<relativePath>../../</relativePath>
1313
</parent>
1414

modules/cli-module/pom.xml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -8,7 +8,7 @@
88
<groupId>org.simplejavamail</groupId>
99
<artifactId>maven-master-project</artifactId>
1010
<!--suppress MavenPropertyInParent -->
11-
<version>8.8.1</version>
11+
<version>8.8.2</version>
1212
<relativePath>../../</relativePath>
1313
</parent>
1414

modules/cli-module/src/main/java/org/simplejavamail/internal/clisupport/CliCommandLineProducer.java

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -38,7 +38,7 @@ static CommandLine configurePicoCli(List<CliDeclaredOptionSpec> declaredOptions,
3838
"%n" +
3939
"Note: All the regular functionality regarding properties and config files work with the CLI so you can provide defaults in a " +
4040
"property file as long as it is visible (on class path) or as system environment variables.")
41-
.version("Simple Java Mail 8.8.1");
41+
.version("Simple Java Mail 8.8.2");
4242

4343
rootCommandsHolder.usageMessage()
4444
.customSynopsis("",

modules/core-module/pom.xml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -8,7 +8,7 @@
88
<groupId>org.simplejavamail</groupId>
99
<artifactId>maven-master-project</artifactId>
1010
<!--suppress MavenPropertyInParent -->
11-
<version>8.8.1</version>
11+
<version>8.8.2</version>
1212
<relativePath>../../</relativePath>
1313
</parent>
1414

modules/core-module/src/main/java/org/simplejavamail/api/mailer/MailerGenericBuilder.java

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -427,7 +427,7 @@ public interface MailerGenericBuilder<T extends MailerGenericBuilder<?>> {
427427
T trustingSSLHosts(String... sslHostsToTrust);
428428

429429
/**
430-
* Configures the current session to trust all hosts. Defaults to true, but this allows you to white list <em>only</em> certain hosts.
430+
* Configures the current session to trust all hosts. Defaults to true, but this allows you to whitelist <em>only</em> certain hosts.
431431
* <p>
432432
* Note that this is <em>not</em> the same as server identity verification, which is enabled through {@link #verifyingServerIdentity(boolean)}.
433433
* It would be prudent to have at least one of these features turned on, lest you be vulnerable to man-in-the-middle attacks.
@@ -441,7 +441,8 @@ public interface MailerGenericBuilder<T extends MailerGenericBuilder<?>> {
441441
T trustingAllHosts(boolean trustAllHosts);
442442

443443
/**
444-
* Configures the current session to not verify the server's identity on an SSL connection. Defaults to true.
444+
* Configures the current session to not verify the server's identity on an SSL connection. Defaults to true, even for SMTP which makes sense since
445+
* opportunistic TLS is also enabled by default (also see {@link TransportStrategy#setOpportunisticTLS(Boolean)}).
445446
* <p>
446447
* Note that this is <em>not</em> the same as {@link #trustingAllHosts(boolean)} or {@link #trustingSSLHosts(String...)}.<br>
447448
* It would be prudent to have at least one of these features turned on, lest you be vulnerable to man-in-the-middle attacks.

modules/core-test-module/pom.xml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -8,7 +8,7 @@
88
<groupId>org.simplejavamail</groupId>
99
<artifactId>maven-master-project</artifactId>
1010
<!--suppress MavenPropertyInParent -->
11-
<version>8.8.1</version>
11+
<version>8.8.2</version>
1212
<relativePath>../../</relativePath>
1313
</parent>
1414

modules/dkim-module/pom.xml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -8,7 +8,7 @@
88
<groupId>org.simplejavamail</groupId>
99
<artifactId>maven-master-project</artifactId>
1010
<!--suppress MavenPropertyInParent -->
11-
<version>8.8.1</version>
11+
<version>8.8.2</version>
1212
<relativePath>../../</relativePath>
1313
</parent>
1414

0 commit comments

Comments
 (0)