Thanks for the suggestion, Anthony. When you said '*an argument* of the verify_email_onaccept callback', you meant an argument of the callback function supplied to auth.settings.verify_email_onaccept
, right? My understanding is that you provide a callback function to Web2py, which is going to be called upon the acceptance of verify_email action. More importantly, how did you figure out which type of argument (form vs. user here) the callback function would take? This sort of stuff is not covered anywhere in the manual, yet it is important to know! Thanks a lot. On Thursday, April 19, 2012 5:47:25 PM UTC-4, Anthony wrote: > > I intend to do this in the model, via >> auth.settings.verify_email_onaccept.append(lambda form: mail.send(to=' >> user.em...@example.com',subject='Welcome!', >> message="new >> user email is %s'%form.vars.email")) >> >> >> > I think the verify_email_onaccept callback actually takes the user record > as an argument, not a form (there is no form in this case). So, try: > > lambda user: mail.send(to=user.email, ...) > > Anthony >