The Artima Developer Community
Sponsored Link

Legacy Java Answers Forum
August 2001

Advertisement

Advertisement

This page contains an archived post to the Java Answers Forum made prior to February 25, 2002. If you wish to participate in discussions, please visit the new Artima Forums.

Message:

SMTP java applet

Posted by Alon Vax on August 10, 2001 at 4:29 AM

Hi,

I'm trying to progrma smtp JApplet and I have a small problem:
After sending EXPN command to server - the answer is multiline without notification about it's end, so the in.readline is waiting for an answer and stack. my code for getting the answer looks like:
SendLine("EXPN " + list + CRLF);

try {
do
{
line[i] = in.readLine();
if (line[i].equals(null))
break;
debug("S: " + line[i]);
i++;
} while (true);

} catch(IOException e) {lState.setText("Reading reply problem");


Please help me ASAP to the mail.
Thanks.



Replies:
  • samp shu January 17, 2002 at 9:13 AM (0)

Sponsored Links



Google
  Web Artima.com   
Copyright © 1996-2009 Artima, Inc. All Rights Reserved. - Privacy Policy - Terms of Use - Advertise with Us