I think you are looking for the wrong solution to the problem.

You should just use

from gluon.template import render
mail.sent(to=...,message=render(content=...,context={..}))

On Jul 18, 4:47 am, Manuele Pesenti <manuele.pese...@gmail.com> wrote:
> hi *,
>
> I woulld like to reuse a controller function with a different view to
> get an html message to send via email... how is it possible?
>
> Is there a way from python code to get the html text that is returned
> when a browser call an url that correspond to my controller "dressed" by
> my view with the same name of my controller and, for example, with
> .email extension?
>
> many thanks
>
>         Manuele

Reply via email to