my dog learned polymorphism*
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 Murach's Java Servlets and JSP this week in the Servlets 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: 19649
    
  18

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: 41060
    
  43
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
 
With a little knowledge, a cast iron skillet is non-stick and lasts a lifetime.
 
subject: How to send mail using JavaMail API?
 
Similar Threads
Getting exception in sending Email from Servlet
Suggestions - JavaMail
java mail throws
urgent help in java mail
JavaMail and Gmail