• Post Reply Bookmark Topic Watch Topic
  • New Topic
programming forums Java Mobile Certification Databases Caching Books Engineering Micro Controllers OS Languages Paradigms IDEs Build Tools Frameworks Application Servers Open Source This Site Careers Other Pie Elite all forums
this forum made possible by our volunteer staff, including ...
Marshals:
  • Campbell Ritchie
  • Jeanne Boyarsky
  • Ron McLeod
  • Paul Clapham
  • Liutauras Vilda
Sheriffs:
  • paul wheaton
  • Rob Spoor
  • Devaka Cooray
Saloon Keepers:
  • Stephan van Hulst
  • Tim Holloway
  • Carey Brown
  • Frits Walraven
  • Tim Moores
Bartenders:
  • Mikalai Zaikin

Passwords problem

 
Greenhorn
Posts: 21
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
hi!
im making a chat application :-) it has a log in page (asks for username and password). it also has a "forgot password" button that can send the username and password of the user to his email address(user inputs his email address with respect to the email address in his user profile). any suggestions on how i can do this?
my usernamne, password, and email address is stored in a database :-) many thanks!
 
Ranch Hand
Posts: 15304
6
Mac OS X IntelliJ IDE Chrome
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
Christleene,

Welcome to Javaranch!

As you know this is a great community in which to learn Java and we don't have too many rules around here, but we do have a Naming Policy. Please read this policy and adjust your display name accordingly.

You can change your display name here.

Thanks.
 
Gregg Bolinger
Ranch Hand
Posts: 15304
6
Mac OS X IntelliJ IDE Chrome
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
So what part of your problem do you not know how to do? If it is mearly sending the user thier password, typically this would be done via Email. You can use the JavaMail API for this.

If you need to know how to access a database from Java you should look at the JDBC Tutorial from Sun.

If you don't understand something else, you might be a little more specific with your question. By that I mean, is this a Desktop App or a Web App? Are you getting specific errors when compiling or running your code? If so, show us the code in question.
[ May 16, 2004: Message edited by: Gregg Bolinger ]
 
Ranch Hand
Posts: 572
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
Try to explain your question and also post any code if there is any problem in your code.
 
Cathleen Meneses
Greenhorn
Posts: 21
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
hi gregg!
thanks for telling me about the naming policy, i didn't know about that ^_^ thanks for telling me! :-) thanks also for the java mail API! it was a big help! im really new to java and this is my first project and i am really lost ^_^ and this is one of the missing piece to my project ^_^
many thanks!
 
Cathleen Meneses
Greenhorn
Posts: 21
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
actually, my problem is how do i send the password and username thru email. thanks gregg for helping me out on this ^_^
 
Sheriff
Posts: 4313
Android IntelliJ IDE Java
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
"Cathleen"-
Thanks for trying to adjust your name to match the naming policy. You *almost* got it right. Your display name should be a first and last name that's not obviously fictitious.

[i]Also, I'm moving this to the Other Java API's forum where they talk about JavaMail a lot.

Try looking at the tutorials provided by Sun's site -- it should show you how to use the API correctly.

Thanks!
- Jess
 
Would you like to try a free sample? Today we are featuring tiny ads:
a bit of art, as a gift, that will fit in a stocking
https://gardener-gift.com
reply
    Bookmark Topic Watch Topic
  • New Topic