summaryrefslogtreecommitdiff
path: root/scripts/profiling
diff options
context:
space:
mode:
authordrebs <drebs@leap.se>2015-07-22 15:26:56 -0300
committerKali Kaneko <kali@leap.se>2015-07-23 14:03:01 -0400
commit0e3304de39aa4a0c0859eab9847cb85990cdec28 (patch)
treef713848af124f04a0b554d7369f80c4ab2fcbf28 /scripts/profiling
parent82c8989ddbcc57befca806495b7040efd0cb0d4e (diff)
[bug] use ssl smtp connection on spam script
Diffstat (limited to 'scripts/profiling')
-rwxr-xr-xscripts/profiling/spam.py2
1 files changed, 1 insertions, 1 deletions
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()