From 9227552b2924447e27dc170cfc17f1b79fc70c72 Mon Sep 17 00:00:00 2001 From: Max Erenberg Date: Sat, 31 Jul 2021 08:34:06 -0400 Subject: [PATCH] re-send EHLO after STARTTLS --- ceod/model/MailService.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/ceod/model/MailService.py b/ceod/model/MailService.py index ecb1e6a..eba1918 100644 --- a/ceod/model/MailService.py +++ b/ceod/model/MailService.py @@ -44,9 +44,9 @@ class MailService: client = smtplib.SMTP_SSL(self.host, self.port) else: client = smtplib.SMTP(self.host, self.port) - client.ehlo() if self.starttls: client.starttls() + client.ehlo() client.send_message(msg) client.quit()