Skip to content

Commit b36ce41

Browse files
committed
#495: minot javadoc tweak to clarify default for SMTP strategy [skip ci]
1 parent 4e64660 commit b36ce41

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

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

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -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.

0 commit comments

Comments
 (0)