Show More
@@ -36,7 +36,7 b' def _smtp(ui):' | |||||
36 | s = smtplib.SMTP(local_hostname=local_hostname) |
|
36 | s = smtplib.SMTP(local_hostname=local_hostname) | |
37 | mailhost = ui.config('smtp', 'host') |
|
37 | mailhost = ui.config('smtp', 'host') | |
38 | if not mailhost: |
|
38 | if not mailhost: | |
39 |
raise util.Abort(_(' |
|
39 | raise util.Abort(_('smtp.host not configured - cannot send mail')) | |
40 | mailport = util.getport(ui.config('smtp', 'port', 25)) |
|
40 | mailport = util.getport(ui.config('smtp', 'port', 25)) | |
41 | ui.note(_('sending mail: smtp host %s, port %s\n') % |
|
41 | ui.note(_('sending mail: smtp host %s, port %s\n') % | |
42 | (mailhost, mailport)) |
|
42 | (mailhost, mailport)) |
General Comments 0
You need to be logged in to leave comments.
Login now