From 006e3fb6bcedbfa59ccebf6919fdaf9193fa617e Mon Sep 17 00:00:00 2001 From: leonprou Date: Sat, 23 Dec 2017 15:25:08 +0200 Subject: [PATCH] adding ehlo in configure host --- flask_mail.py | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/flask_mail.py b/flask_mail.py index d0756e5..64090c7 100644 --- a/flask_mail.py +++ b/flask_mail.py @@ -156,7 +156,8 @@ def configure_host(self): host = smtplib.SMTP_SSL(self.mail.server, self.mail.port) else: host = smtplib.SMTP(self.mail.server, self.mail.port) - + + host.ehlo_or_helo_if_needed() host.set_debuglevel(int(self.mail.debug)) if self.mail.use_tls: