##// END OF EJS Templates
adding local_hostname option to smtp configuration
Valentino Volonghi aka dialtone -
r2583:6e542744 default
parent child Browse files
Show More
@@ -309,6 +309,9 b' smtp::'
309 309 Optional. Password to authenticate to SMTP server with.
310 310 If username is specified, password must also be specified.
311 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 316 paths::
314 317 Assigns symbolic names to repositories. The left side is the
@@ -298,7 +298,8 b' class ui(object):'
298 298 def smtp():
299 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 303 mailhost = self.config('smtp', 'host')
303 304 if not mailhost:
304 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