Skip to content

Commit f013a7f

Browse files
committed
Merge remote-tracking branch 'robcarver17/develop' into missing-data-6
2 parents b029f7b + 5ca3c7b commit f013a7f

File tree

1 file changed

+5
-6
lines changed

1 file changed

+5
-6
lines changed

syslogdiag/emailing.py

+5-6
Original file line numberDiff line numberDiff line change
@@ -87,12 +87,11 @@ def _send_msg(msg: MIMEMultipart):
8787
# Send the message via our own SMTP server, but don't include the
8888
# envelope header.
8989
s = smtplib.SMTP(email_server, email_port)
90-
context = ssl.create_default_context()
91-
# add tls for those using yahoo or gmail.
92-
# try:
93-
# s.starttls(context=context)
94-
# except:
95-
# pass
90+
91+
try:
92+
s.starttls()
93+
except:
94+
pass
9695
s.login(email_address, email_pwd)
9796
s.sendmail(me, [you], msg.as_string())
9897
s.quit()

0 commit comments

Comments
 (0)