I am not sure I filly understand. There is not mail.settings.to. "to" is a 
mandatory argument of mail.send(....). 

On Saturday, 19 September 2015 03:03:44 UTC-5, Laer Cius wrote:
>
> Hi, 
>
> Le 18/09/2015 23:20, 黄祥 a écrit : 
> > hm, not sure, i get it, but i guess that you can use the query for 
> > that and pass it into mai.send(to=query result, ...). 
>
> Yes it's what I thought. 
>
> > another thing is, it seems i can't find mail.settings.to in web2py 
> > book. pls read the book about setup and sending emails 
> > e.g. from book 
>
> It's why I said it doesn't work : 
>
> mail.settings.to = db.auth_user.email_address (which is my field) 
> which does not work as mail.settings has no to attribute. 
>
>
> Thank you, kind regards, 
>
> -- 
> “One original thought is worth a thousand mindless quotings.” 
> “Le vrai n'est pas plus sûr que le probable.” 
>
>                                               Diogene Laerce 
>
>
>

-- 
Resources:
- http://web2py.com
- http://web2py.com/book (Documentation)
- http://github.com/web2py/web2py (Source code)
- https://code.google.com/p/web2py/issues/list (Report Issues)
--- 
You received this message because you are subscribed to the Google Groups 
"web2py-users" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to web2py+unsubscr...@googlegroups.com.
For more options, visit https://groups.google.com/d/optout.

Reply via email to