Win a copy of Kotlin in Action this week in the Kotlin forum!
  • Post Reply Bookmark Topic Watch Topic
  • New Topic

Java Mail : what is the host? where it will be?  RSS feed

 
Jayavardhan geepi
Ranch Hand
Posts: 66
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Hi,
I'm learning JavaMail and its APIs are pretty clear. But, what I didn't get is what should be the value for
"mail.smtp.host" property while getting the Session.

If it is SMTP mail server , where it will be? We should write our own?

And what should be the "host" while connecting to Store? Another POP3 server?

Please clarify ...
 
Ulf Dittmer
Rancher
Posts: 42972
73
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Yes, you need a mail server where you can set up accounts. If you don't have one, Apache James is pretty easy to use for experiments. It handles both incoming (pop3, imap) and outgoing (smtp) mail.
 
  • Post Reply Bookmark Topic Watch Topic
  • New Topic
Boost this thread!