User Name Password Register
DaniWeb IT Discussion Community
All
What is DaniWeb IT Discussion Community?
You're currently browsing the JSP section within the Web Development category of DaniWeb, a massive community of 397,818 software developers, web developers, Internet marketers, and tech gurus who are all enthusiastic about making contacts, networking, and learning from each other. In fact, there are 2,622 IT professionals currently interacting right now! Registration is free, only takes a minute and lets you enjoy all of the interactive features of the site.
Please support our JSP advertiser: Lunarpages JSP Web Hosting
Views: 3531 | Replies: 2
Reply
Join Date: Jan 2007
Posts: 12
Reputation: jeet_portal is an unknown quantity at this point 
Rep Power: 0
Solved Threads: 0
jeet_portal jeet_portal is offline Offline
Newbie Poster

Help email sending from a jsp page after submit button

  #1  
Feb 8th, 2007
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
AddThis Social Bookmark Button
Reply With Quote  
Join Date: Feb 2006
Posts: 1,363
Reputation: masijade is a jewel in the rough masijade is a jewel in the rough masijade is a jewel in the rough masijade is a jewel in the rough 
Rep Power: 8
Solved Threads: 117
masijade's Avatar
masijade masijade is offline Offline
Nearly a Posting Virtuoso

Re: email sending from a jsp page after submit button

  #2  
Feb 8th, 2007
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).
Java Programmer and Sun Systems Administrator

----------------------------------------------

Debugging is twice as hard as writing the code in the first place. Therefore, if you write the code as cleverly as possible, you are, by definition, not smart enough to debug it.
--Brian Kernighan
Reply With Quote  
Join Date: Nov 2004
Location: Netherlands
Posts: 5,661
Reputation: jwenting is a jewel in the rough jwenting is a jewel in the rough jwenting is a jewel in the rough jwenting is a jewel in the rough 
Rep Power: 18
Solved Threads: 193
Colleague
jwenting's Avatar
jwenting jwenting is offline Offline
duckman

Re: email sending from a jsp page after submit button

  #3  
Feb 8th, 2007
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.
42 Private messages asking for help will be ignored
In the frozen land of Nador they were forced to eat Steve's iMinstrels, and there was much rejoicing.
Reply With Quote  
Reply

Only community members can participate in forum threads. You must register or log in to contribute.

Currently Active Users Viewing This Thread: 1 (0 members and 1 guests)

 

DaniWeb JSP Marketplace
Thread Tools Display Modes

Similar Threads
Other Threads in the JSP Forum

All times are GMT -4. The time now is 6:42 am.
Forum system based on vBulletin Copyright ©2000 - 2008, Jelsoft Enterprises Ltd.
©2003 - 2008 DaniWeb® LLC