Win a copy of Cross-Platform Desktop Applications: Using Node, Electron, and NW.js this week in the JavaScript forum!
  • Post Reply Bookmark Topic Watch Topic
  • New Topic

Sending values to the Email using a JSP  RSS feed

 
Rams kuwait
Greenhorn
Posts: 11
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Hi!
I want to send some values to the email.

My tasks are
1.Create a html file with some fields.
2.Get the values from the above html file and then send to "PR@XYZ.Com" Url of a JSP page
3.When the user click on submit button of above html file ,it sholud display Thanq.html file contents but the values should reach to the above URL.

How we can send the values to above URL.

Thanks
Rams
 
Steve James
Ranch Hand
Posts: 44
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Rams kuwait wrote:Hi!
I want to send some values to the email.


send it

How we can send the values to above URL.



use javamail API.
 
Bauke Scholtz
Ranch Hand
Posts: 2458
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Use the JavaMail API: http://java.sun.com/products/javamail/
There's an excellent FAQ there: http://java.sun.com/products/javamail/FAQ.html
Create a plain Java class with methods to send a mail.
Test it as a Java application using main().
Once done that, create a Servlet which takes form input, validates it and invokes the Java class you created.
Let the form submit to that Servlet.
 
Amit Ghorpade
Bartender
Posts: 2856
10
Fedora Firefox Browser Java
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
"Rams kuwait " please check your private messages for an important administrative matter. You can check them by clicking the My Private Messages link above.
 
  • Post Reply Bookmark Topic Watch Topic
  • New Topic
Boost this thread!