Skip to content

Commit d7a9f6a

Browse files
authored
Merge pull request #609 from ExpressionEngine/feature/6.x/email-tls-setting
Added setting for TLS version
2 parents 918c10c + c52d096 commit d7a9f6a

2 files changed

Lines changed: 24 additions & 0 deletions

File tree

docs/control-panel/settings/email.md

Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -49,6 +49,14 @@ The username used to log in to your SMTP server. Not all SMTP servers require yo
4949

5050
The password used to log in to your SMTP server. Not all SMTP servers require you to _authenticate_, but many of them do. In those cases you will need to specify the username (above) and password.
5151

52+
### Connection type
53+
54+
Cryptographic protocol for SMTP. Can be set to Unencrypted (not recommended), SSL or TLS
55+
56+
### TLS version
57+
58+
When using TLS, provide the version that you can find in the instructions from your SMTP provider. Version 1.2 is the most commonly used
59+
5260
### Mail format
5361

5462
When you send email via the Communicate section of your Control Panel, you are able to send HTML formatted emails. This preference sets whether the Communicate section has "Plain text" or "HTML" selected by default.

docs/general/system-configuration-overrides.md

Lines changed: 16 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -2965,6 +2965,22 @@ Example Usage:
29652965

29662966
**Also found in CP:** `Settings --> Access Throttling`: [Time Interval](control-panel/settings/throttling.md#time-interval)
29672967

2968+
### `tls_crypto_method`
2969+
2970+
Stream encryption method, when using TLS for sending emails over SMTP.
2971+
2972+
| Value | Behavior |
2973+
| ------------------------------------------ | -------------------------- |
2974+
| STREAM_CRYPTO_METHOD_TLSv1_0_CLIENT | TLS v1.0 |
2975+
| STREAM_CRYPTO_METHOD_TLSv1_1_CLIENT | TLS v1.1 |
2976+
| STREAM_CRYPTO_METHOD_TLSv1_2_CLIENT | TLS v1.2 (default) |
2977+
| STREAM_CRYPTO_METHOD_TLSv1_3_CLIENT | TLS v1.3 (as of PHP 7.4.0) |
2978+
2979+
2980+
Example Usage:
2981+
2982+
$config['tls_crypto_method'] = STREAM_CRYPTO_METHOD_TLSv1_3_CLIENT;
2983+
29682984
### `un_min_len`
29692985

29702986
Set the minimum number of characters allowed for member usernames.

0 commit comments

Comments
 (0)