From fb18e25e90e440b04d3d697907a3bdab9c556545 Mon Sep 17 00:00:00 2001 From: Pierre-Olivier Mercier Date: Fri, 20 Oct 2017 13:38:51 +0200 Subject: [PATCH] Use STARTTLS to send mail --- check.py | 1 + 1 file changed, 1 insertion(+) diff --git a/check.py b/check.py index eee92b1..a485ed3 100755 --- a/check.py +++ b/check.py @@ -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"])