File APIs for Java Developers
Manipulate DOC, XLS, PPT, PDF and many others from your application.
The moose likes Other JSE/JEE APIs and the fly likes Java Mail 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 "Java Mail" Watch "Java Mail" New topic

Java Mail

Owen Martin

Joined: Mar 05, 2010
Posts: 14
Hi, I am sending mails via Java Mail. I want to relay information to people but depending on the circumstance the text and the amount of paragraphs will change.

How do I dynamically add plain text to a Java Mail?

Paul Clapham

Joined: Oct 14, 2005
Posts: 19973

Your question sounds like you're starting off in several wrong directions all at once. However if you have downloaded JavaMail, you should be able to find some basic sample code in with your download. Have a look at that code and hopefully things should become clearer.
I agree. Here's the link:
subject: Java Mail
It's not a secret anymore!