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?
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?