• Post Reply
  • Bookmark Topic Watch Topic
  • New Topic

How to send mail using JavaMail API?

 
Jyothsna Panchagnula
Ranch Hand
Posts: 113
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Hi all ,

I am a newbie to Java Mail API , and I am trying to send mail using Java mail API from home and I have an internet connection:-



I am not getting what to put for "SMTP" server host address.

any inputs on this will be highly appreciated.

thanks,
Jyothsna
 
Rob Spoor
Sheriff
Pie
Posts: 20546
57
Chrome Eclipse IDE Java Windows
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Contact your ISP.
 
Ulf Dittmer
Rancher
Posts: 42968
73
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
That's the host name or address of the mail server you intend to use. You can use the one you use for your personal mail (in which case you'll need to add authentication code for sending username and password) or run a server on your own machine. Apache James is an example of a server that's pretty easy to get up and running.
 
Jyothsna Panchagnula
Ranch Hand
Posts: 113
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Hi Ulf,

Thank you for a response . I will use Apache James Server.

-Jyothsna
 
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic