I think VP is correct. There is a confusion between mail.settings.* in db.py and settings.* in 0.py. I configured the mail.settings.* lines in db.py, not realizing that further down below in db.py, they redefine all those variables, based on the contents of settings that are created in 0.py.
It's working now. So if this happens to anybody else, look at your db.py and see if mail.settings.login is defined twice. Ed On May 11, 9: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?

