Show More
@@ -104,7 +104,8 b' def _smtp(ui):' | |||||
104 | if (starttls or smtps) and verifycert: |
|
104 | if (starttls or smtps) and verifycert: | |
105 | sslkwargs = sslutil.sslkwargs(ui, mailhost) |
|
105 | sslkwargs = sslutil.sslkwargs(ui, mailhost) | |
106 | else: |
|
106 | else: | |
107 | sslkwargs = {} |
|
107 | # 'ui' is required by sslutil.wrapsocket() and set by sslkwargs() | |
|
108 | sslkwargs = {'ui': ui} | |||
108 | if smtps: |
|
109 | if smtps: | |
109 | ui.note(_('(using smtps)\n')) |
|
110 | ui.note(_('(using smtps)\n')) | |
110 | s = SMTPS(sslkwargs, local_hostname=local_hostname) |
|
111 | s = SMTPS(sslkwargs, local_hostname=local_hostname) |
General Comments 0
You need to be logged in to leave comments.
Login now