I think the VelocityHtmlEmail class will allow me to use a message
entered by the user at runtime as well as to attach a file but I am not
completely sure. Has anyone an example of how to attach a file to a mail
and how to read a message entered by the user?

Thanks.

>  -----Mensaje original-----
> De:   Bernardo Juan Marcellin Leautaud  
> Enviado el:   Lunes, 17 de Septiembre de 2001 07:57 a.m.
> Para: '[EMAIL PROTECTED]'
> Asunto:       Email functionality using Turbine/Velocity
> 
> 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]

Reply via email to