Show More
@@ -36,7 +36,10 b' def _smtp(ui):' | |||
|
36 | 36 | if username and password: |
|
37 | 37 | ui.note(_('(authenticating to mail server as %s)\n') % |
|
38 | 38 | (username)) |
|
39 | try: | |
|
39 | 40 | s.login(username, password) |
|
41 | except smtplib.SMTPException, inst: | |
|
42 | raise util.Abort(inst) | |
|
40 | 43 | |
|
41 | 44 | def send(sender, recipients, msg): |
|
42 | 45 | try: |
General Comments 0
You need to be logged in to leave comments.
Login now