fixed a long stanging problem with helo and hostname, thanks Leonel Câmara

This commit is contained in:
mdipierro
2013-04-23 23:21:17 -05:00
parent b00463bdf4
commit 94e3271481
2 changed files with 3 additions and 3 deletions
+1 -1
View File
@@ -1 +1 @@
Version 2.4.6-stable+timestamp.2013.04.21.19.50.11
Version 2.4.6-stable+timestamp.2013.04.23.23.20.31
+2 -2
View File
@@ -686,9 +686,9 @@ class Mail(object):
else:
server = smtplib.SMTP(*smtp_args)
if self.settings.tls and not self.settings.ssl:
server.ehlo()
server.ehlo(self.settings.hostname)
server.starttls()
server.ehlo()
server.ehlo(self.settings.hostname)
if self.settings.login:
server.login(*self.settings.login.split(':', 1))
result = server.sendmail(