Win a copy of Head First Agile this week in the Agile forum!
  • Post Reply Bookmark Topic Watch Topic
  • New Topic

Sending E-Mail in Java  RSS feed

 
Giorgos Christoulas
Greenhorn
Posts: 13
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Hi,
I wish to develop a web application where the user will have access using a login name and a password.
I would also like my application to send confirmation E-Mails to every new user.
Can anyone give me any reference for these topics?

Thanks in advance
Giorgos
 
Balaji Loganathan
author and deputy
Bartender
Posts: 3150
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Don't know any instant internet links but most of the wrox books have some case studies like this, checks the books with servlets/jsp as titles.
Basically you have to learn
  • Servlets or JSP: which will help you to see how you capture data posted from an html form
  • JavaMail API to send emails using SMTP Servers
  • JDBC - Servlets/JSP to know how to access data from a database to validate the given username and password.

  •  
    Dirk Schreckmann
    Sheriff
    Posts: 7023
    • Mark post as helpful
    • send pies
    • Quote
    • Report post to moderator
    For creating a web application, you'll want to start learning Java Servlets and JSPs, if you haven't already done so. The Servlets section of the JavaRanch Cattle Drive is designed to help push a Java greenhorn into learning Servlet development. Also, a very good book, Core Servlets and JavaServer Pages by Marty Hall, is available on-line for free at http://pdf.coreservlets.com . You'll want to pay special attention to chapter 9 on session tracking for ideas on securing parts of the web application and tracking a user's session.
    Sending an email from a Java app is pretty easy. Try a quick search on the Other Java APIs forum for JavaMail. You should turn up a few examples.
    Now, this is the Beginner's forum, and it's not really the best place to be chewing the fat over JavaMail and Servlets. Let me suggest you mosey on to other parts of the Saloon to be discussing these topics further.
     
    • Post Reply Bookmark Topic Watch Topic
    • New Topic
    Boost this thread!