Get the tools you need to learn Java skills fast!
Video tutorials, eBooks, hands-on lab exercises, sample code.
Get started
The moose likes Other JSE/JEE APIs and the fly likes How to send mail using JavaMail API? Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login


Win a copy of The Software Craftsman this week in the Agile forum!
JavaRanch » Java Forums » Java » Other JSE/JEE APIs
Bookmark "How to send mail using JavaMail API?" Watch "How to send mail using JavaMail API?" New topic
Author

How to send mail using JavaMail API?

Jyothsna Panchagnula
Ranch Hand

Joined: Jul 11, 2005
Posts: 113
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

Joined: Oct 27, 2005
Posts: 19958
    
  25

Contact your ISP.


SCJP 1.4 - SCJP 6 - SCWCD 5 - OCEEJBD 6 - OCEJPAD 6
How To Ask Questions How To Answer Questions
Ulf Dittmer
Rancher

Joined: Mar 22, 2005
Posts: 42954
    
  73
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

Joined: Jul 11, 2005
Posts: 113
Hi Ulf,

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

-Jyothsna
 
Have you tried LearnNowOnline? http://www.learnnowonline.com/
 
subject: How to send mail using JavaMail API?