Win a copy of Soft Skills: The software developer's life manual this week in the Jobs Discussion forum!
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic

JavaMail help

 
Maximiliano Gonzalez
Greenhorn
Posts: 11
  • 0
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Hello, I've never used JavaMail before.

I found this code in a blog and I think it helps but I need to know where should I place the user and password if I was to use Gmail's smtp. Here's the code:



Thanks!
 
Ulf Dittmer
Rancher
Pie
Posts: 42966
73
  • 0
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
You might want to read through this excellent tutorial (which has many code examples): http://java.sun.com/developer/onlineTraining/JavaMail/contents.html

Look for "authentication" in particular.
 
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic