Fixed issue where blank username/password would initiate ehlo but would not send headers or mail

This commit is contained in:
bandrel 2016-02-19 17:46:19 -05:00
parent d2c69511a4
commit c2dc8b977f

View file

@ -304,7 +304,8 @@ def mail(to, subject, prioflag1, prioflag2, text):
if provideruser != "" or pwd != "":
mailServer.login(provideruser, pwd)
mailServer.sendmail(from_address, to, io.getvalue())
else:
mailServer.sendmail(from_address, to, io.getvalue())
except:
# try logging in with base64 encoding here
import base64