This week's book giveaway is in the Mac OS forum.
We're giving away four copies of a choice of "Take Control of Upgrading to Yosemite" or "Take Control of Automating Your Mac" and have Joe Kissell on-line!
See this thread for details.
The moose likes Other JSE/JEE APIs and the fly likes JavaMail and bundles Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login

JavaRanch » Java Forums » Java » Other JSE/JEE APIs
Bookmark "JavaMail and bundles" Watch "JavaMail and bundles" New topic

JavaMail and bundles

Timothy Sam
Ranch Hand

Joined: Sep 18, 2005
Posts: 746
Hi, I was thinking of loading a resource bundle to be put on the message body part of my mail. Is this the most ideal thing to do? Or should I be loading the message from a text file or something?

SCJP 1.5 -
Paul Clapham

Joined: Oct 14, 2005
Posts: 18570

I wouldn't put a resource bundle into an e-mail message. Doesn't make sense.

But if your question is, you want to get a message from somewhere and put it into an e-mail message, then it makes absolutely no difference (to the e-mail message) whether the message comes from a text file or a resource bundle or a database or user input.
Timothy Sam
Ranch Hand

Joined: Sep 18, 2005
Posts: 746
Thanks! So where do you think would be the best place to put it? Text file or database? Database would seem to be a very good choice for me but I just want to be confident by hearing more of your suggestions. Thanks!
jQuery in Action, 2nd edition
subject: JavaMail and bundles