Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations strongm on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

Java SMTP problem

Status
Not open for further replies.

pat22

Technical User
Dec 28, 2004
7
Hi, wasn't sure whether to class this as a Java or email problem...

I'm writing a small Java application that needs the ability to send an SMTP email to a particular server. In order to do this, i've found some simple Java code on the web to interact with an SMTP server. The problem is, my program connects to the server, and you see the welcome string.. however, after attempting to send any data it always hangs whilst waiting for a response that never comes from the server. I tried another piece of code to achieve similar, and exactly the same happens; so I assume the code is correct, but for some reason the server does not respond - but I know the server is up and operational as I am able to connect to it manually via telnet.
The code I am currently using is:


and the server is a QuickMail Pro Server for Mac.

... any ideas?
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top