This message shows up in my error log too, but I haven't had time to
look into it.  It might have something to do with the configuration of
auth in db.py in the scaffolding code created when you create a new
app (through admin panel).


On May 11, 8:23 am, Massimo Di Pierro <[email protected]>
wrote:
> gluon/tools.py contains this code:
>
>                 if self.settings.login != None:
>                     ...
>                     server.login(*self.settings.login.split(':',1))
>
> I think you must have somewhere a statement like
>
> auth.settings.login = "..."
>
> and the "..." is missing a ":" separating username and password.
>
> On May 11, 5:13 am, Ed Greenberg <[email protected]> wrote:
>
>
>
>
>
>
>
> > When trying to send registration or lost password email, web2py
> > flashes that it cannot send email (so registration fails) and logs
>
> > [Wed May 11 10:07:31 2011] [error] 2011-05-11 10:07:31,049 - web2py -
> > WARNING - Mail.send failure:login() takes exactly 3 arguments (2
> > given)
>
> > My app's db.py says:
> > mail.settings.server = '127.0.0.1:25'  # your SMTP server
> > mail.settings.sender = '[email protected]'         # your email
> > mail.settings.login = None      # your credentials or None
> > mail.settings.tls = False
>
> > What might be wrong?

Reply via email to