aspose file tools*
The moose likes Other JSE/JEE APIs and the fly likes First Problem with JavaMail, help please 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 "First Problem with JavaMail, help please" Watch "First Problem with JavaMail, help please" New topic
Author

First Problem with JavaMail, help please

Hussein Baghdadi
clojure forum advocate
Bartender

Joined: Nov 08, 2003
Posts: 3479

I have the following java class :

I want to send an email to johntodd@lycos.com
and I have connected to the internet.
but when running the program the follwoing exception is thrown :
MessagingException : could not connect to SMTP host mail.lycos.com
SocketException : Network is unreachable
so what is the problem (please JavaMail is a vital subject to me)???
I think there is something about proxy , right??
if so, please tell me what should I do ....
 
It is sorta covered in the JavaRanch Style Guide.
 
subject: First Problem with JavaMail, help please