*
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 Spring in Action this week in the Spring 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: 19720
    
  20

Contact your ISP.


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

Joined: Mar 22, 2005
Posts: 42280
    
  64
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.


Ping & DNS - my free Android networking tools app
Jyothsna Panchagnula
Ranch Hand

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

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

-Jyothsna
 
It is sorta covered in the JavaRanch Style Guide.
 
subject: How to send mail using JavaMail API?