Win a copy of Cross-Platform Desktop Applications: Using Node, Electron, and NW.js this week in the JavaScript forum!
  • Post Reply Bookmark Topic Watch Topic
  • New Topic

First Problem with JavaMail, help please  RSS feed

Hussein Baghdadi
clojure forum advocate
Posts: 3479
Clojure Mac Objective C
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
I have the following java class :

I want to send an email to
and I have connected to the internet.
but when running the program the follwoing exception is thrown :
MessagingException : could not connect to SMTP host
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 ....
Consider Paul's rocket mass heater.
  • Post Reply Bookmark Topic Watch Topic
  • New Topic
Boost this thread!