943,763 Members | Top Members by Rank

Ad:
  • JSP Discussion Thread
  • Unsolved
  • Views: 6809
  • JSP RSS
Feb 8th, 2007
0

email sending from a jsp page after submit button

Expand Post »
Hi to all Members,

I have a problem .pls solve it. My problem is i create a registration page where i put 3 text fields : Name ,Email Addres, Password.After entering the data when the user click on submit button then the information will send as a email through the email addres provided by the user in the page..........Pls send the solution ..Its urgent
Similar Threads
Reputation Points: 10
Solved Threads: 0
Newbie Poster
jeet_portal is offline Offline
18 posts
since Jan 2007
Feb 8th, 2007
0

Re: email sending from a jsp page after submit button

JavaScript to do it directly at the source or post the info in a submit to a servlet and let the servlet mail it using JavaMail. Here is something to get you started on the servlet side:

http://java.sun.com/j2ee/1.4/docs/tutorial/doc/

And, no I am not going to give you the complete code for a servlet to do what you want. Read through the tutorial and learn a litlle more about j2ee programming.

I would also suggest you learn more about html and the other technologies used in web programming (at least some of the basics) before you attempt to go much further.

If you wish to know how to do it in JavaScript, then find a JavaScript forum and ask again (or better yet, find a JavaScript Tutorial/Learning site and learn how to use it).
Moderator
Reputation Points: 1471
Solved Threads: 490
Industrious Poster
masijade is offline Offline
4,043 posts
since Feb 2006
Feb 8th, 2007
0

Re: email sending from a jsp page after submit button

and no, you won't be able to send an email using the server entered by the user of the page.
Any mailserver worth anything at all will block any attempt by anyone who's not on the same domain (and/or has proper credentials) to send anything.

And no, I'm not going to help you do that in a JSP for the simple reason you shouldn't.
Use a servlet.
Team Colleague
Reputation Points: 1658
Solved Threads: 331
duckman
jwenting is offline Offline
7,719 posts
since Nov 2004

This thread is more than three months old

No one has posted to this discussion for at least three months. Please let old threads die and do not reply to them unless you feel you have something new and valuable to contribute that absolutely must be added to make the discussion complete. Otherwise, please start a new thread in this forum instead.
Message:
Previous Thread in JSP Forum Timeline: back end of the "< jsp:setProperty" tag
Next Thread in JSP Forum Timeline: jsp with mysql connection





About Us | Contact Us | Advertise | Acceptable Use Policy
Forum Index | Build Custom RSS Feed


Follow us on Twitter


© 2011 DaniWeb® LLC