I want to implement a simple e-mail sender application using
Java Mail.
Suppose I am going to make it a web-based application implemented in
servlet.
Suppose the web interface has a message text box, in which the user can
enter the e-mail message.
Now here is my question: Suppose the user types in a lengthy text message of size 5K bytes. I am assuming that this size is good enough for my
question. How do I grab such a lengthy text? Can I use
String? Like this:
String msg=request.getParameter("emailMessage");
I doubt this will work.
I guess I can do it using BufferedReader, like so:
BufferedReader br=new BufferedReader(new InputStreamReader(System.in));
But, the problem is how can I send the message in the buffer by e-mail?
Thanks a lot.
[ April 01, 2002: Message edited by: Gene Chao ]