If you want to use the overload method with this signature:
RenderMailMessage(string templateName, string layoutName, IDictionary
parameters),

you could do something like this as far as I know , ( note you will
need to create your own template ):

 Hashtable emailDictionary = new Hashtable();
            emailDictionary.Add("username", "david");
            emailDictionary.Add("to", "[email protected]");
            emailDictionary.Add("from", "[email protected]");
            emailDictionary.Add("subject", "Test Email");
            emailDictionary.Add("message", "This is a test email");
            Castle.Components.Common.EmailSender.Message message =
RenderMailMessage("/mail/email.vm", null, emailDictionary);

            DeliverEmail(message);

On Feb 5, 4:27 pm, rjlopes <[email protected]> wrote:
> Hi,
>
> I recently switched to the trunk version and i noticed that the
> RenderMailMessage changed and was marked as obsolete, so I tried to
> change to some of the overaloaded versions but i didn't know what to
> pass as the "parameters" param?
>
> I tried an empty IDictionary or null but got errors. I'm using
> nvelocity view engine.
>
> Thanks.
--~--~---------~--~----~------------~-------~--~----~
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
-~----------~----~----~----~------~----~------~--~---

Reply via email to