For admin notifications you can place this code in your db.py: auth.settings.register_onaccept.append(lambda form: mail.send(to='ad...@emai.com',subject='New user registered for %s application' % (request.application), message="new user email is %s" % (form.vars.email)))
auth.settings.login_onaccept.append(lambda form: mail.send(to='ad...@email.com',subject='User logged in %s application' % (request.application), message="user email is %s" % (form.vars.email))) book reference: http://web2py.com/books/default/chapter/29/09?search=auth.settings.register_onaccept On Fri, Oct 12, 2012 at 2:58 AM, piero crisci <piero.cri...@gmail.com>wrote: > Hello > I am trying to realize a little web-app for my society. For the Access > Control List i set this policy: > > auth.settings.registration_requires_verification = True > auth.settings.registration_requires_approval = True > auth.settings.reset_password_requires_verification = True > > I was wondering if was possible also to set an e-mail notification to the > admin or to users of a specified group. > In this way, with the notification, every new registration can be checked > faster. > Is there a policy to set that can do this notification or i need to define > a new function in some library?. > > > -- > > > > --