This week's giveaway is in the Android forum.
We're giving away four copies of Android Security Essentials Live Lessons and have Godfrey Nolan on-line!
See this thread for details.
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 Android Security Essentials Live Lessons this week in the Android 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: 19654
    
  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: 41123
    
  45
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
 
 
subject: How to send mail using JavaMail API?
 
Similar Threads
Suggestions - JavaMail
Getting exception in sending Email from Servlet
java mail throws
urgent help in java mail
JavaMail and Gmail