You are viewing a plain text version of this content. The canonical link for it is here.
Posted to user@turbine.apache.org by Fabio Daprile <fa...@wuerth.it> on 2002/01/31 16:33:41 UTC

How to send a mail with template!

Hi !

I'm trying to send emails from within a turbine application.
I know that i must merge a context with a template and then send the 
result string as the body of a MailMessage.
The problem is that i don't know how to merge context and template.

A simple but clear example would help me!

Kind regards!

Fabio


-- 


Würth Phoenix Srl
Via Kravogl 4, I-39100 Bolzano
Tel: +39 0471/564111
Fax: +39 0471/564122

mailto:fabio.daprile@wuerth-phoenix.com
http://www.wuerth-phoenix.com



--
To unsubscribe, e-mail:   <ma...@jakarta.apache.org>
For additional commands, e-mail: <ma...@jakarta.apache.org>


Re: How to send a mail with template!

Posted by Brian Lawler <bl...@branuity.com>.
Check out the java doc in VelocityEmail.java for an example.  The documentation at the top of that file has some sample code in it...

-B

On Thu, 31 Jan 2002 16:33:41 +0100
Fabio Daprile <fa...@wuerth.it> wrote:

> Hi !
> 
> I'm trying to send emails from within a turbine application.
> I know that i must merge a context with a template and then send the 
> result string as the body of a MailMessage.
> The problem is that i don't know how to merge context and template.
> 
> A simple but clear example would help me!
> 
> Kind regards!
> 
> Fabio
> 
> 
> -- 
> 
> 
> Würth Phoenix Srl
> Via Kravogl 4, I-39100 Bolzano
> Tel: +39 0471/564111
> Fax: +39 0471/564122
> 
> mailto:fabio.daprile@wuerth-phoenix.com
> http://www.wuerth-phoenix.com
> 
> 
> 
> --
> To unsubscribe, e-mail:   <ma...@jakarta.apache.org>
> For additional commands, e-mail: <ma...@jakarta.apache.org>


-- 
brian lawler
branuity
617 front           | v: 415.217.5052
san francisco 94111 | m: 415.307.5277
brian@branuity.com  | f: 415.217.5060



--
To unsubscribe, e-mail:   <ma...@jakarta.apache.org>
For additional commands, e-mail: <ma...@jakarta.apache.org>