• Post Reply Bookmark Topic Watch Topic
  • New Topic

Sending mails thru JSP page  RSS feed

 
Megha Rajeevan
Greenhorn
Posts: 24
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Hello ranchers.,
I'm using JSP and oracle for doing a project.,
now when i create an user i want to insert all the details of the user in to the database and then after inserting the values the jsp page will automatically redirect to another page calling send_mail.jsp
here in this page it will get the username and other details from the url and the send a mail to the administrator@mydomain.com abt the new user joined..

now i don't know how to write the code in this page.

can any one please help me about doing this.. please
how to write the code for sending the mails..

please ranchers..

thanks in advance.

regareds
Megha
 
Ulf Dittmer
Rancher
Posts: 42970
73
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
A good first step would be to realize what JSP is good for, and what it is not good for. In an MVC design, JSPs are the V component. Neither sending emails nor writing to the DB should be done in JSPs. Do that in a servlet, or a backing bean, and you will have a much easier time sending the request to the JSP that displays the result.
 
  • Post Reply Bookmark Topic Watch Topic
  • New Topic
Boost this thread!