Hey,
I have recently battled with not being able to send emails using the smtp
server provided by the client.
I narrowed down the problem to emails being sent using TLS doing this
if self.settings.tls and not self.settings.ssl:
server.ehlo()
server.starttls()
server.ehlo()
Turns out smtplib.ehlo() doesn't always give an acceptable hostname for
what ESMTP servers want, like the domain you're actually using and the
server will deny you if it's not accepting relays.
http://docs.python.org/2/library/smtplib.html#smtplib.SMTP.ehlo
Can we change this to something like this:
if self.settings.tls and not self.settings.ssl:
server.ehlo(self.settings.hostname)
server.starttls()
server.ehlo(self.settings.hostname)
Putting the hostname there, finally solved my problem but it wasn't a fun
night.
--
---
You received this message because you are subscribed to the Google Groups
"web2py-users" group.
To unsubscribe from this group and stop receiving emails from it, send an email
to [email protected].
For more options, visit https://groups.google.com/groups/opt_out.