This week's book giveaway is in the Other Languages forum.
We're giving away four copies of Functional Reactive Programming and have Stephen Blackheath and Anthony Jones on-line!
See this thread for details.
Win a copy of Functional Reactive Programming this week in the Other Languages forum!
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic

JavaMail help

 
Maximiliano Gonzalez
Greenhorn
Posts: 11
  • 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
Posts: 42968
73
  • 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