It's not a secret anymore!
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: 751
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: 19973

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: 751
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!
I agree. Here's the link:
subject: JavaMail and bundles
jQuery in Action, 3rd edition