Re: [twsocket] vFAQ - SMTPCli - Component not ready

2009-05-12 Thread Paul Ingelbrant
Possibly you need breaks? :-) switch(RqType) { case smtpConnect: SMTP-Helo(); break; case smtpHelo: SMTP-MailFrom(); break; case smtpEhlo: SMTP-Auth(); break; case smtpAuth: SMTP-MailFrom(); break; case smtpMailFrom: SMTP-RcptTo(); break; case smtpRcptTo:

Re: [twsocket] vFAQ - SMTPCli - Component not ready

2009-05-12 Thread Arno Garrels
Paul Ingelbrant wrote: Possibly you need breaks? :-) Good point! However it's hard for the Delphi guys to ;-) -- Arno Garrels switch(RqType) { case smtpConnect: SMTP-Helo(); break; case smtpHelo: SMTP-MailFrom(); break; case smtpEhlo: SMTP-Auth(); break; case

Re: [twsocket] vFAQ - SMTPCli - Component not ready

2009-05-11 Thread Arno Garrels
Ole Braad-Sørensen wrote: When using above code I get the famous error Component not ready and the mail-server log show: You do not check for ErrCode = 0 in OnRequestDone. Put a break point before or at the switch statement and single-step thru the code. That will show you what's wrong. --