in web2py book, i think we can put template using response.render in any place in views. *ref:* http://web2py.com/books/default/chapter/29/08/emails-and-sms?search=response.render#Using-the-template-system-to-generate-messages
*the evidence fact i got :* - mail() with response.render() that executed in models (after_insert and after_update callback) can work with python module (e.g. locale) but not in scheduler (must redefine it) - same template work fine (without redefine import locale) in another controller (reports.py just to generate report in web browser not sending email like the one in my scheduler) - in my mail template there is another python module datetime, but work fine without not redefine it *my conclusion :* - python locale module when used by scheduler must redefine it again in views please correct me if i'm wrong about my conclusion. thanks and best regards, stifan -- 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 [email protected]. For more options, visit https://groups.google.com/d/optout.

