Skip to content

Commit 9035180

Browse files
authored
Merge pull request #610 from ExpressionEngine/feature/7.x/email-tls-setting
Added setting for TLS version
2 parents 2ccc990 + 874f9f1 commit 9035180

File tree

2 files changed

+24
-0
lines changed

2 files changed

+24
-0
lines changed

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
@@ -3062,6 +3062,22 @@ Example Usage:
30623062

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

3065+
### `tls_crypto_method`
3066+
3067+
Stream encryption method, when using TLS for sending emails over SMTP.
3068+
3069+
| Value | Behavior |
3070+
| ------------------------------------------ | -------------------------- |
3071+
| STREAM_CRYPTO_METHOD_TLSv1_0_CLIENT | TLS v1.0 |
3072+
| STREAM_CRYPTO_METHOD_TLSv1_1_CLIENT | TLS v1.1 |
3073+
| STREAM_CRYPTO_METHOD_TLSv1_2_CLIENT | TLS v1.2 (default) |
3074+
| STREAM_CRYPTO_METHOD_TLSv1_3_CLIENT | TLS v1.3 (as of PHP 7.4.0) |
3075+
3076+
3077+
Example Usage:
3078+
3079+
$config['tls_crypto_method'] = STREAM_CRYPTO_METHOD_TLSv1_3_CLIENT;
3080+
30653081
### `un_min_len`
30663082

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

0 commit comments

Comments
 (0)