mirror of
https://github.com/simple-login/app.git
synced 2024-09-28 20:51:29 +02:00
remove unnecessary code in send_email()
This commit is contained in:
parent
b24d58bdf3
commit
558200113c
@ -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))
|
||||
|
Loading…
Reference in New Issue
Block a user