• Post Reply Bookmark Topic Watch Topic
  • New Topic

smtp & server telnet

 
Raken Silberchatz
Greenhorn
Posts: 2
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
i tried some codes for smtp using java sockets but it does not work and throw time out exception so if some one plz send a working code using java2
and another question how can i commuincate to the server telnet
 
Mattias Arthursson
Ranch Hand
Posts: 90
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
For smtp communication you should use the JavaMail API and the Jakarta Commons NET provides a telnet API.
 
Ranganath Ranganaths
Ranch Hand
Posts: 32
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Hello,

I think you might be just getting disconnected from the respective server ie smtp or pop. coz the these servers connection is not persistant .. probably you need to code in such a way that you need to connect to the server again after a random amount of time.. check it out.!!


Ranganath.S
 
navneet shrivastava
Ranch Hand
Posts: 39
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
hi all,

I was looking for api providing FTP/Telnet services.
Fortunately I sat my horse to the right ranch.
Found "Jakarta Commons NET " very useful.
Thanks Matt.

thanks,
navneet
  • Post Reply Bookmark Topic Watch Topic
  • New Topic
Boost this thread!