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)
|
||||
else:
|
||||
client = smtplib.SMTP(self.host, self.port)
|
||||
client.ehlo()
|
||||
if self.starttls:
|
||||
client.starttls()
|
||||
client.ehlo()
|
||||
client.send_message(msg)
|
||||
client.quit()
|
||||
|
||||
|
|
Loading…
Reference in New Issue