Fix test_email command to use new SSL setting (#3988)

This was missed in pull request #3732 and/or the command didn't exist yet then ...
This commit is contained in:
Wiebe Verweij 2024-03-20 08:16:40 +01:00 committed by GitHub
parent 6a245e121a
commit 0f79c6d7d8
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194

View File

@ -23,6 +23,7 @@ class Command(BaseCommand):
EMAIL_HOST_PASSWORD,
EMAIL_PORT,
EMAIL_USE_TLS,
EMAIL_USE_SSL,
EMAIL_FROM,
) = get_email_configuration()
@ -32,6 +33,7 @@ class Command(BaseCommand):
username=EMAIL_HOST_USER,
password=EMAIL_HOST_PASSWORD,
use_tls=EMAIL_USE_TLS == "1",
use_ssl=EMAIL_USE_SSL == "1",
timeout=30,
)
# Prepare email details