Hi

Its also very easy to create your own. A simple hashmap and regex replaces
with curly brackets should do the trick.

Check this sample I've made:
https://gist.github.com/1069819

Create the factory methods you need and the mail template files using
variables with curly brackets

<html>
   <body>Hi {user}! Today is {day}</body>
</html>

*String mailContent = MailTemplateCreator.someTemplate("pt-br")*
*        .put("user", user)*
*        .put("day", "somevalue")*
*        .parse();*

then just send it :)

On Thu, Jul 7, 2011 at 12:32 PM, David Chandler <drfibona...@google.com>wrote:

> Perhaps you can use a template with variables for user-entered content
> which you get from a Web form of some kind. I blogged just yesterday about
> sending email using a template on App Engine. Perhaps it will help:
>
>
> http://turbomanage.wordpress.com/2011/07/06/sending-html-emails-with-app-engine-and-velocity/
>
> /dmc
>
> On Tue, Jul 5, 2011 at 11:19 PM, dm9289 <danma...@hotmail.com> wrote:
>
>> Hello,
>>
>> I am fairly new to this, so would appreciate some advice.  I would like to
>> create a web application using the Google App Engine and as part of the app,
>> I would like to formulate a partially populated email - but to give the end
>> user the ability to edit that email prior to sending using the SendMail
>> APIs.  Is that possible?
>>
>> Thanks in advance
>>
>> --
>> You received this message because you are subscribed to the Google Groups
>> "Google App Engine for Java" group.
>> To view this discussion on the web visit
>> https://groups.google.com/d/msg/google-appengine-java/-/Ddp1qbCQCSgJ.
>> To post to this group, send email to
>> google-appengine-java@googlegroups.com.
>> To unsubscribe from this group, send email to
>> google-appengine-java+unsubscr...@googlegroups.com.
>> For more options, visit this group at
>> http://groups.google.com/group/google-appengine-java?hl=en.
>>
>
>
>
> --
> David Chandler
> Developer Programs Engineer, GWT+GAE
> w: http://code.google.com/
> b: http://turbomanage.wordpress.com/
> b: http://googlewebtoolkit.blogspot.com/
> t: @googledevtools
>
>  --
> You received this message because you are subscribed to the Google Groups
> "Google App Engine for Java" group.
> To post to this group, send email to
> google-appengine-java@googlegroups.com.
> To unsubscribe from this group, send email to
> google-appengine-java+unsubscr...@googlegroups.com.
> For more options, visit this group at
> http://groups.google.com/group/google-appengine-java?hl=en.
>



-- 
Bruno Fuster

-- 
You received this message because you are subscribed to the Google Groups 
"Google App Engine for Java" group.
To post to this group, send email to google-appengine-java@googlegroups.com.
To unsubscribe from this group, send email to 
google-appengine-java+unsubscr...@googlegroups.com.
For more options, visit this group at 
http://groups.google.com/group/google-appengine-java?hl=en.

Reply via email to