crud.settings.create_onvalidation = lambda form: send_email(form.vars.email, subject, message)
but I'd recommend you do not use crud and use SQLFROM instead. form = SQLFORM(....) if form.process().accepted: send_mail(form.vars.email, subject, message) On Thursday, 12 July 2012 01:14:41 UTC-5, encompass wrote: > > I am reading in the book: > crud.settings.create_onvalidation = StorageList() > But I just don't get it. > I wanted to send an email when the form submits successfully, and I have > created a method for that. > send_email(to_email, subject, message) > How would I do this? > BR, > Jason Brower > >