Win a copy of Java Concurrency Live Lessons this week in the Threads forum!
  • Post Reply Bookmark Topic Watch Topic
  • New Topic

I want to know abt my PC SMTP server name.  RSS feed

 
AMIT BARANWAL
Greenhorn
Posts: 1
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Hi Guys

I am beginner in Java. Now I am using swing with socket in Java application where I want to send the Message from GUI application for that I need SMTP server name. When I execute the code that time it gives the error like:

Error: java.net.SocketException: Network is unreachable: connect

Please help me.

Thank you in advance.
 
Ulf Dittmer
Rancher
Posts: 42970
73
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
I'm not sure how Swing, sockets and SMTP are connected, but it you're trying to send email from your application, then you need an SMTP server. Most computers don't have one installed, so you may have to obtain and install one. An easy-to-use one written in Java is Apache James. You can even embed it in your Java application, so that you can be assured that it's available whenever your application is running.
 
Himanshu Gupta
Ranch Hand
Posts: 598
Android Eclipse IDE Ubuntu
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
This will give you a very basic idea about smtp server.
SMTP Basic
 
  • Post Reply Bookmark Topic Watch Topic
  • New Topic
Boost this thread!