on 1/30/01 12:33 AM, "Youngho Cho" <[EMAIL PROTECTED]> wrote:
> Hi,
>
> I would like to send a webpage using WebMacroHtmlEmail.
>
> if I set
>
> email.setHtmlTemplate("/screens/myscreen.wm");
>
> then the only screen information sent ( not including navigation, layout part
> ),
>
> if I set
>
> email.setHtmlTemplate("layouts/mylayout.wm")
>
> then the screen information is missed.
>
> How can I send whole page including navigation , layout , screen part ?
>
> Any hint would be appreciated.
>
> Thanks
>
> youngho
You can't with WebMacroEmail. It simply sends a single template and does not
work through the Turbine Module system directly.
You have two options:
#1. Write a context object that makes a HttpRequest back to the localhost to
generate the page and "embed" that within the template.
#2. Write another version of WebMacroEmail that "emulates" the internals of
Turbine to actually make a request to a page internally.
Good luck.
-jon
--
Honk if you love peace and quiet.
------------------------------------------------------------
To subscribe: [EMAIL PROTECTED]
To unsubscribe: [EMAIL PROTECTED]
Search: <http://www.mail-archive.com/turbine%40list.working-dogs.com/>
Problems?: [EMAIL PROTECTED]