From 0e3304de39aa4a0c0859eab9847cb85990cdec28 Mon Sep 17 00:00:00 2001 From: drebs Date: Wed, 22 Jul 2015 15:26:56 -0300 Subject: [bug] use ssl smtp connection on spam script --- scripts/profiling/spam.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'scripts/profiling') diff --git a/scripts/profiling/spam.py b/scripts/profiling/spam.py index 091a8c48..afa26837 100755 --- a/scripts/profiling/spam.py +++ b/scripts/profiling/spam.py @@ -31,7 +31,7 @@ def _send_email(host, subject, to_addr, from_addr, body_text): "", body_text ), "\r\n") - server = smtplib.SMTP(host) + server = smtplib.SMTP_SSL(host) server.sendmail(from_addr, [to_addr], body) server.quit() -- cgit v1.2.3