remove unnecessary code in send_email()

This commit is contained in:
Son 2022-01-01 11:47:45 +01:00
parent b24d58bdf3
commit 558200113c
1 changed files with 0 additions and 6 deletions

View File

@ -265,12 +265,6 @@ def send_email(
LOG.d("send email to %s, subject %s", to_email, subject)
if POSTFIX_SUBMISSION_TLS:
smtp = SMTP(POSTFIX_SERVER, 587)
smtp.starttls()
else:
smtp = SMTP(POSTFIX_SERVER, POSTFIX_PORT or 25)
if html:
msg = MIMEMultipart("alternative")
msg.attach(MIMEText(plaintext))