Mercurial > public > mercurial-scm > hg-stable
diff mercurial/ui.py @ 2583:6e5427447f4c
adding local_hostname option to smtp configuration
author | Valentino Volonghi aka dialtone <dialtone@divmod.com> |
---|---|
date | Sun, 09 Jul 2006 14:12:19 +0200 |
parents | 18cf95ad3666 |
children | 1f4703115e28 |
line wrap: on
line diff
--- a/mercurial/ui.py Fri Jul 07 11:23:53 2006 +0200 +++ b/mercurial/ui.py Sun Jul 09 14:12:19 2006 +0200 @@ -298,7 +298,8 @@ def smtp(): '''send mail using smtp.''' - s = smtplib.SMTP() + local_hostname = self.config('smtp', 'local_hostname') + s = smtplib.SMTP(local_hostname=local_hostname) mailhost = self.config('smtp', 'host') if not mailhost: raise util.Abort(_('no [smtp]host in hgrc - cannot send mail'))