Skip to content

Commit 8701ba9

Browse files
committed
Slightly improve on javadoc for TransportStrategy.SMTP.setOpportunisticTLS
1 parent 2873b2c commit 8701ba9

File tree

1 file changed

+6
-1
lines changed

1 file changed

+6
-1
lines changed

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

Lines changed: 6 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -177,7 +177,12 @@ public String propertyNameCheckServerIdentity() {
177177
}
178178

179179
/**
180-
* Sets {@link #opportunisticTLS}. Setting <code>null</code> will revert to property value if available or default to {@value
180+
* Determines whether TLS should be attempted for SMTP plain protocol (optional if offered by the SMTP server). If not set and no property
181+
* was provided, this value defaults to {@value DEFAULT_OPPORTUNISTIC_TLS}.
182+
* <p>
183+
* Setting this flag to false causes the {@link TransportStrategy#SMTP} to revert back to the legacy behavior.
184+
* <p>
185+
* Setting <code>null</code> will revert to property value if available in config or default to {@value
181186
* DEFAULT_OPPORTUNISTIC_TLS}
182187
*/
183188
@Override

0 commit comments

Comments
 (0)