Awesome! I was afraid I would have to maintain a different web2py codebase for this client.
On Wed, Apr 24, 2013 at 5:20 AM, Massimo Di Pierro < [email protected]> wrote: > aha! Thanks This solves my problem too. It is in trunk. > > > On Tuesday, 23 April 2013 22:15:11 UTC-5, Leonel Câmara wrote: >> >> 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<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 a topic in the > Google Groups "web2py-users" group. > To unsubscribe from this topic, visit > https://groups.google.com/d/topic/web2py/eY82X5I9XG8/unsubscribe?hl=en. > To unsubscribe from this group and all its topics, send an email to > [email protected]. > For more options, visit https://groups.google.com/groups/opt_out. > > > -- --- 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.

