The more I think about it, I find it much simpler and more testable to just redirect the string output of a normal controller/view to the mailmessage. Something like a method RenderMailMessage(string controller, string action, IDictionary parameters), similar to RenderView. There would be context and everything working and the mail would just get the string as body.
On Thu, Sep 25, 2008 at 9:50 AM, Victor Kornov <[EMAIL PROTECTED]> wrote: > And some kind of context, different from web context. So, View engine could > operate in either environment. > > On Thu, Sep 25, 2008 at 4:48 PM, Victor Kornov <[EMAIL PROTECTED]> wrote: >> >> For that, text templating engine needs to be decoupled from the ViewEngine >> itself. That's the only thing you need here, no? >> >> On Thu, Sep 25, 2008 at 4:45 PM, Ken Egozi <[EMAIL PROTECTED]> wrote: >>> >>> I am thinking of taking it to the other extreme. >>> >>> I want to invest some time into allowing the use of the ViewEngines to >>> render emails, outside of an actual web application. >>> > > > > > -- Jan ___________________ [EMAIL PROTECTED] www.limpens.com +55 (11) 3082-1087 +55 (11) 3097-8339 --~--~---------~--~----~------------~-------~--~----~ You received this message because you are subscribed to the Google Groups "Castle Project Users" group. To post to this group, send email to [email protected] To unsubscribe from this group, send email to [EMAIL PROTECTED] For more options, visit this group at http://groups.google.com/group/castle-project-users?hl=en -~----------~----~----~----~------~----~------~--~---
