diff MoinMoin/util/mail.py @ 380:f91064250ea7

cfg.mail_smarthost = 'server:port' support imported from: moin--main--1.5--patch-384
author Thomas Waldmann <tw@waldmann-edv.de>
date Mon, 16 Jan 2006 00:46:43 +0000
parents d1333236adba
children 50c7a0cc1791
line wrap: on
line diff
--- a/MoinMoin/util/mail.py	Sun Jan 15 23:06:22 2006 +0000
+++ b/MoinMoin/util/mail.py	Mon Jan 16 00:46:43 2006 +0000
@@ -96,7 +96,8 @@
     # Send the message
     if not cfg.mail_sendmail:
         try:
-            server = smtplib.SMTP(cfg.mail_smarthost)
+            host, port = (cfg.mail_smarthost + ':25').split(':')[:2]
+            server = smtplib.SMTP(host, int(port))
             try:
                 #server.set_debuglevel(1)
                 if cfg.mail_login: