This commit is contained in:
Max Erenberg 2021-08-02 07:21:20 +00:00
commit da14764687
1 changed files with 1 additions and 1 deletions

View File

@ -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()