Use STARTTLS to send mail

This commit is contained in:
nemunaire 2017-10-20 13:38:51 +02:00
parent b308fe4669
commit fb18e25e90
1 changed files with 1 additions and 0 deletions

View File

@ -106,6 +106,7 @@ running for nemunaire@nemunai.re""")
import smtplib
with smtplib.SMTP("localhost") as smtp:
smtp.starttls()
if SEND_TO_REALUSER:
smtp.send_message(msg)
smtp.send_message(msg, to_addrs=["virli-report@nemunai.re"])