Skip to content

Commit

Permalink
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
try ssl tls 1_2
Browse files Browse the repository at this point in the history
anish-mudaraddi committed Jul 11, 2024
1 parent 8832799 commit 403ca2e
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion lib/email_api/emailer.py
Original file line number Diff line number Diff line change
@@ -45,7 +45,9 @@ 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_TLS_CLIENT)
context.minimum_version = ssl.TLSVersion.TLSv1_3
context.maximum_version = ssl.TLSVersion.TLSv1_3
with SMTP_SSL(
self.smtp_account.server,
self.smtp_account.port,

0 comments on commit 403ca2e

Please sign in to comment.