From 1ae6b4d59c4461dbd177b01a2b9fb45c5376fd59 Mon Sep 17 00:00:00 2001 From: anish-mudaraddi Date: Thu, 11 Jul 2024 13:28:46 +0100 Subject: [PATCH] try ssl tls 1_2 --- lib/email_api/emailer.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/lib/email_api/emailer.py b/lib/email_api/emailer.py index a3d5f410d..009c9d625 100644 --- a/lib/email_api/emailer.py +++ b/lib/email_api/emailer.py @@ -45,7 +45,7 @@ def send_emails(self, emails: List[EmailParams]): """ logger.debug("connecting to SMTP server") - context = ssl.SSLContext(ssl.PROTOCOL_TLSv1_1) + context = ssl.SSLContext(ssl.PROTOCOL_TLSv1_2) with SMTP_SSL( self.smtp_account.server, self.smtp_account.port,