I think so. Give it a try. You can also write a separate function (e.g., 
send_mail), and then just do crud.create(..., onaccept=send_mail).

On Thursday, October 13, 2011 9:04:24 AM UTC-4, Web2Py Freak wrote:
>
> can i do it like this : 
>
> crud.create(...,onaccept=lambda 
> form:mail.send('haln...@gardeniatelco.com','Contact Us form by : ' 
> +form.vars.your_email,'<html><h4>Full Name :'+form.vars.your_name+'</ 
> h4><h4> Email :'+form.vars.your_email+'</h4></br><p><h3>Comment is :</ 
> h3>'+ form.vars.comment+'</p></br><p> Band is:'+form.vars.your_band+'</ 
> p></html>')) 
>
>
> this is right ??? 
>

Reply via email to