From 249be53a8261023a94b4acd2a31357eecc8f319b Mon Sep 17 00:00:00 2001 From: Finn Christiansen Date: Sat, 21 Sep 2024 12:51:17 +0200 Subject: [PATCH] =?UTF-8?q?=F0=9F=9A=A7=20add=20ehlo=20command?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- matrix_bot_invitation_mailer/__main__.py | 1 + 1 file changed, 1 insertion(+) diff --git a/matrix_bot_invitation_mailer/__main__.py b/matrix_bot_invitation_mailer/__main__.py index 43b6023..3ad815c 100644 --- a/matrix_bot_invitation_mailer/__main__.py +++ b/matrix_bot_invitation_mailer/__main__.py @@ -99,6 +99,7 @@ The link will be valid for 7 days.""".format(os.getenv("REGISTRATION_URL") + res try: # Connect to the SMTP server server = smtplib.SMTP(os.getenv("SMTP_HOSTNAME"), os.getenv("SMTP_PORT")) + server.ehlo() server.starttls() # Secure the connection server.login(os.getenv("SMTP_USERNAME"), os.getenv("SMTP_PASSWORD")) # Login to the server