re-send EHLO after STARTTLS
This commit is contained in:
parent
7b749701f0
commit
9227552b29
|
@ -44,9 +44,9 @@ class MailService:
|
||||||
client = smtplib.SMTP_SSL(self.host, self.port)
|
client = smtplib.SMTP_SSL(self.host, self.port)
|
||||||
else:
|
else:
|
||||||
client = smtplib.SMTP(self.host, self.port)
|
client = smtplib.SMTP(self.host, self.port)
|
||||||
client.ehlo()
|
|
||||||
if self.starttls:
|
if self.starttls:
|
||||||
client.starttls()
|
client.starttls()
|
||||||
|
client.ehlo()
|
||||||
client.send_message(msg)
|
client.send_message(msg)
|
||||||
client.quit()
|
client.quit()
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue