Newsgroups : Borland : borland.public.delphi.internet.winsock : 2007 Feb : Re: TIDPOP3SERVER
| Subject: | Re: TIDPOP3SERVER |
| Posted by: | "Remy Lebeau (TeamB)" (no.spam@no.spam.com) |
| Date: | Tue, 20 Feb 2007 11:31:16 |
"nifriz" <thesoulfly@virgilio.it> wrote in message
news:45d85eaa@newsgroups.borland.com...
> i'm trying to create a pop3server, but i'm just blocked on CHECKUSER
event...
Which version of Indy are you using?
> on this event i check the id and pwd of user.... ok... but after,
> how can i send to client the confirmation if LOGIN SUCCESSFULL?
TIdPOP3Server does that automatically for you. You do not send the
confirmation yourself.
If you are using Indy 9, you must set the TIdPOP3ServerThread.State
property to Trans in the OnCheckUser event handler to indicate a
successful login. Set the State property to anything else to indicate
a failure.
If you are using Indy 10, you must raise an exception in the
OnCheckUser event handler to indicate a failed login. If an exception
is not raised, then the login is assumed to be successful.
Gambit