procedure TMailAlert.CheckNewMail; begin with FPop do if not Connected then begin Fbusy := true; ClearErrorMessage; Connect; end; end;
as you see, the pop component is not connected when i do the connect cmd. that's the strange thing, the connection is closed but the component is not in a ready state. AG> [EMAIL PROTECTED] wrote: >> procedure TMailAlert.Pop3ClientRequestDone; >> begin >> if (FPop.connected) and (CheckError) then begin >> FPop.quit; >> exit; >> end; >> >> ... >> >> what could be the cause that the component is not ready after the >> error ? AG> After sending command Quit you should receive a server response. AG> When it's received you may either close or abort the connection AG> yourself or wait until the server drops the connection. AG> Anyway start next connection attempt only when you are not connected, AG> means after SessionClosed fired. AG> -- AG> Arno Garrels -- Mit freundlichen Grüßen [EMAIL PROTECTED] mailto:[EMAIL PROTECTED] -- To unsubscribe or change your settings for TWSocket mailing list please goto http://lists.elists.org/cgi-bin/mailman/listinfo/twsocket Visit our website at http://www.overbyte.be