• Post Reply Bookmark Topic Watch Topic
  • New Topic

Java email Merger  RSS feed

 
Ryan Phelan
Greenhorn
Posts: 5
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Would anyone happen to know of a useful Java based mail merge tool? I would like the tool to be declaritive, in that I could compose the email message in an outside persistent store (file or DB) and then later merge that text together with dynamic values. I'm guessing that this would not be to hard to implement, but would like to make use of widely used apis (if any)
 
Nathaniel Stoddard
Ranch Hand
Posts: 1258
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
You may want to check out Velocity.
 
Stan James
(instanceof Sidekick)
Ranch Hand
Posts: 8791
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
This sounds like a little Delphi program I use to read a mail template and a CSV list of people to send to, merge & mail. It smells like SPAM so I haven't run it for a couple years.

If you just have to plug in a few values like a mail merge, look at JDK 5's PrintStream.printf(). Older JDKs have MessageFormat for simple subsitution.
 
  • Post Reply Bookmark Topic Watch Topic
  • New Topic
Boost this thread!