Merge pull request #174 from Jenselme/smptAuth

Correct auth without password or username.
pull/182/head
Martin Zimmermann 9 years ago
commit a2bda63bf0

@ -72,7 +72,7 @@ class SMTP(object):
username = self.conf.get('username')
password = self.conf.get('password')
if username is not None and password is not None:
if username and password:
if PY2K:
username = username.encode('ascii')
password = password.encode('ascii')

Loading…
Cancel
Save