Hi,
I want to thanks to all who have helped me with this project. I have
finally been able to send e-mails from my Turbine/Velocity application.
Something you may want to know is the reason why I was getting a
NullPointerException. In my screen component, I set the context as:
context.put("VelocityEmail",new VelocityEmail());
instead of:
context.put("VelocityEmail, new VelocityEmail());
I was missing a blank space after the comma. If the blank space is
omitted, the class will compile successfully but it will throw a
NullPointerException at runtime. I think a compile error should be shown
in this case.
Additionally, I am completing the functionality of the project, entering
the To, From, and Subject in the .vm and reading them through the setTo,
setFrom and setSubject methods. This has worked fine. But I am having
problems with the body of the e-mail. I defined a Textarea in the .vm in
order to allow the user to enter the message he wants and I am trying to
read the information through the setTemplate() method. What happens is
that Turbine expects to receive there the path of the template to use.
Anyone knows how can I read the Textarea and use the information that
was entered there as the body of the e-mail (instead of the template?)
Thank you.
---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]
Email functionality using Turbine/Velocity
Bernardo Juan Marcellin Leautaud Mon, 17 Sep 2001 13:35:39 -0700
- Re: Email functionality using Turbine/Vel... Matthew Forder
- RE: Email functionality using Turbine/Vel... Bernardo Juan Marcellin Leautaud
- Re: Email functionality using Turbin... Colin Chalmers
- Re: Email functionality using Turbine/Vel... Matthew Forder
- RE: Email functionality using Turbine/Vel... Bernardo Juan Marcellin Leautaud
- RE: Email functionality using Turbine/Vel... Bernardo Juan Marcellin Leautaud
- Re: Email functionality using Turbine/Vel... Daniel Rall
- Email functionality using Turbine/Velocit... Bernardo Juan Marcellin Leautaud
- Re: Email functionality using Turbine/Vel... Jeffrey B. Woodward
- Re: Email functionality using Turbine/Vel... Colin Chalmers
- Re: Email functionality using Turbine/Vel... Bernardo Juan Marcellin Leautaud
- Re: Email functionality using Turbine/Vel... Dan Bachelder
- RE: Email functionality using Turbine/Vel... fanyun
