I'm creating a SMTP client. I'm entering the data(to, from, subject, body) in a HTML form. How do I pass that data into the actual Java SMTP client so I can send it? I know how to hardcode the data into the client and send it that way but having trouble with letting the user enter the info. I've tried saving them as strings but had no luck.
sfrider0 6 Junior Poster
Recommended Answers
Jump to PostEasiest way to use jsp and make sure the server supports jsp. Then in form tag, <form action="mail.jsp" method= post>
Check http://www.jsptut.com/Forms.jsp for details.
Jump to PostUse JSP's only for presenting data / view purposes only; use servlets for processing. Submit the above form to a servlet which would grab the mail related details, create a SMTPSender instance with the values obtained and do the required task.
All 8 Replies
stultuske 1,116 Posting Maven Featured Poster
sfrider0 6 Junior Poster
orko 36 Junior Poster
~s.o.s~ 2,560 Failure as a human Team Colleague Featured Poster
sfrider0 6 Junior Poster
~s.o.s~ 2,560 Failure as a human Team Colleague Featured Poster
sfrider0 6 Junior Poster
~s.o.s~ 2,560 Failure as a human Team Colleague Featured Poster
Be a part of the DaniWeb community
We're a friendly, industry-focused community of developers, IT pros, digital marketers, and technology enthusiasts meeting, networking, learning, and sharing knowledge.