tags:

views:

23

answers:

1

I have GUI window for users to write their feedback, comments, etc. in JTextArea component. What I want to do is for user send this text they typed via email when they press the button Submit.

What classes should I use to achieve this? I googled it but found nothing useful.

+2  A: 

The base API to use for email in Java is JavaMail. It's not the nicest of APIs, though, and you may want to consider another API on top of it, such as Apache Commons Email or Spring Mail.

skaffman
thank you, I downloaded JavaMail from java.sun.com but I can't install it properly :(I have the newest JDK and I'm using NetBeans 6.7.1
AmateurProgrammer
It doesn't need installing, it's just a JAR file.
skaffman