Re: [web2py] get new user's email and data

2013-01-24 Thread Yebach
Thank you you saved my day :) On Thursday, January 24, 2013 2:31:16 PM UTC+1, rochacbruno wrote: > > auth.setting.register_onaccept = lambda form: > mail.send(to=['x...@xxx.net > '], > subject='web2py registration', > # If reply_to is omitted, then mail.settings.sender is us

Re: [web2py] get new user's email and data

2013-01-24 Thread Bruno Rocha
auth.setting.register_onaccept = lambda form: mail.send(to=['x...@xxx.net'], subject='web2py registration', # If reply_to is omitted, then mail.settings.sender is used reply_to='u...@example.com', message= u'A new user has been created on database %s and has

Re: [web2py] get new user's email and data

2013-01-24 Thread Yebach
Do I insert this code in my model (db.py)? my auth.setting.register_onaccept = lambda form: mail.send(to=['x...@xxx.net'], subject='web2py registration', # If reply_to is omitted, then mail.settings.sender is used reply_to='u...@example.com', message= u'A n

Re: [web2py] get new user's email and data

2013-01-24 Thread Bruno Rocha
def myfunc(form): # here you get form.vars auth.settings.register_onaccept = myfunc Em 24/01/2013 06:24, "Yebach" escreveu: > Hello > > After a new user registers, I would like to send his data to my email > (user email and database where it was created) > I have user requires confirmation set t

[web2py] get new user's email and data

2013-01-24 Thread Yebach
Hello After a new user registers, I would like to send his data to my email (user email and database where it was created) I have user requires confirmation set to true and I have a couple of databases so that is a must, also to check on user I need to get his e-mail to inform him his registrat