File APIs for Java Developers
Manipulate DOC, XLS, PPT, PDF and many others from your application.
The moose likes Other JSE/JEE APIs and the fly likes Need Answer about JavaMail Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login
JavaRanch » Java Forums » Java » Other JSE/JEE APIs
Bookmark "Need Answer about JavaMail" Watch "Need Answer about JavaMail" New topic

Need Answer about JavaMail

Syed Kazim Hussain

Joined: Dec 14, 2000
Posts: 8
How can I send and recieve e-mail to localhost:8080(No LAN involved)?
Where will it be placed after I send it?
What is the smptHost?
Do I have to download the smtpHost?
Danny Mui
Ranch Hand

Joined: Dec 14, 2000
Posts: 42
Java Mail is like a client, it doesn't do anything mail-wise. You need to install a STMP service (smtpHost) on your computer. JavaMail knows how to speak to a STMP service to receive and send mail.
For Example,
I have Linux installed with Sendmail to send/receive mail. Sendmail controls the receiving (Saved as a big text file for each user).
So, install a mail server before you can start playing with JavaMail.
Frank Carver

Joined: Jan 07, 1999
Posts: 6920
This isn't really a servlets and JSP problem, and we now have a new forum for other Java APIs including Java Mail, so I've moved this post. I hope you get more answers

Read about me at ~ Raspberry Alpha Omega ~ Frank's Punchbarrel Blog
Syed Kazim Hussain

Joined: Dec 14, 2000
Posts: 8
Thanks for the reply Danny.
Please can any one recommend me a free mail server I can find on the Web.
gautham kasinath
Ranch Hand

Joined: Dec 01, 2000
Posts: 583
Well like one of us told u Java Mail gives u a client end that U can make it talk to a SMTP, POP3 or imail server.
Well I guess qmail for Linux comes free.. try it..
Gautham Kasinath

"In the country of the blind, the one eyed man is the King"
Gautham Kasinath CV at :
I agree. Here's the link:
subject: Need Answer about JavaMail
It's not a secret anymore!