Show More
@@ -7,7 +7,7 b'' | |||
|
7 | 7 | |
|
8 | 8 | from i18n import gettext as _ |
|
9 | 9 | from demandload import * |
|
10 | demandload(globals(), "os re smtplib templater util") | |
|
10 | demandload(globals(), "os re smtplib templater util socket") | |
|
11 | 11 | |
|
12 | 12 | def _smtp(ui): |
|
13 | 13 | '''send mail using smtp.''' |
@@ -22,6 +22,9 b' def _smtp(ui):' | |||
|
22 | 22 | (mailhost, mailport)) |
|
23 | 23 | s.connect(host=mailhost, port=mailport) |
|
24 | 24 | if ui.configbool('smtp', 'tls'): |
|
25 | if not hasattr(socket, 'ssl'): | |
|
26 | raise util.Abort(_("can't use TLS: Python SSL support " | |
|
27 | "not installed")) | |
|
25 | 28 | ui.note(_('(using tls)\n')) |
|
26 | 29 | s.ehlo() |
|
27 | 30 | s.starttls() |
General Comments 0
You need to be logged in to leave comments.
Login now