Show More
@@ -309,6 +309,9 b' smtp::' | |||||
309 | Optional. Password to authenticate to SMTP server with. |
|
309 | Optional. Password to authenticate to SMTP server with. | |
310 | If username is specified, password must also be specified. |
|
310 | If username is specified, password must also be specified. | |
311 | Default: none. |
|
311 | Default: none. | |
|
312 | local_hostname;; | |||
|
313 | Optional. It's the hostname that the sender can use to identify itself | |||
|
314 | to the MTA. | |||
312 |
|
315 | |||
313 | paths:: |
|
316 | paths:: | |
314 | Assigns symbolic names to repositories. The left side is the |
|
317 | Assigns symbolic names to repositories. The left side is the |
@@ -298,7 +298,8 b' class ui(object):' | |||||
298 | def smtp(): |
|
298 | def smtp(): | |
299 | '''send mail using smtp.''' |
|
299 | '''send mail using smtp.''' | |
300 |
|
300 | |||
301 | s = smtplib.SMTP() |
|
301 | local_hostname = self.config('smtp', 'local_hostname') | |
|
302 | s = smtplib.SMTP(local_hostname=local_hostname) | |||
302 | mailhost = self.config('smtp', 'host') |
|
303 | mailhost = self.config('smtp', 'host') | |
303 | if not mailhost: |
|
304 | if not mailhost: | |
304 | raise util.Abort(_('no [smtp]host in hgrc - cannot send mail')) |
|
305 | raise util.Abort(_('no [smtp]host in hgrc - cannot send mail')) |
General Comments 0
You need to be logged in to leave comments.
Login now