This week's book giveaway is in the Kotlin forum.
We're giving away four copies of Kotlin in Action and have Dmitry Jemerov & Svetlana Isakova on-line!
See this thread for details.
Win a copy of Kotlin in Action this week in the Kotlin forum!
  • Post Reply Bookmark Topic Watch Topic
  • New Topic

JavaMail help  RSS feed

 
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: 42972
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
Boost this thread!