Re: [twsocket] TSmtpCli autenication
Hello Wilfried, I cannot test this at the moment, but if I set in TSmtpCli (ICS V5): AutType := smtpAuthAutoSelect; And fill in the userName and passWord (at creation time), is this enough that it find all possible autentication types (seems to be quit a few)? It's enough. It even probes for types not announced in the EHLO response. It failed if no authentication was required. -- Arno Garrels -- 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
[twsocket] ICS group on social networks LinkedIn and FaceBook
Hi ! Every ICS user is invited to be part of ICS-group on Linked-In. See http://www.linkedin.com/e/gis/136245 Why ? Just to have a little bit more visibility for everyone of us and for ICS. There is another one on FaceBook: http://www.facebook.com/pages/ICS-Internet-Component-Suite/39493622127 btw: You may also be part of Powered by Delphi group on Linked-In. http://www.linkedin.com/e/gis/48600 -- francois.pie...@overbyte.be The author of the freeware multi-tier middleware MidWare The author of the freeware Internet Component Suite (ICS) http://www.overbyte.be -- 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
Re: [twsocket] TSmtpCli autenication
thank you Arno for fast answer, Does it not matter how the code is written (OnRequestDone), eg like this: case RqType of smtpConnect: begin Cli.Helo; end; smtpHelo: begin Cli.Mail; end; Meaning, I don't use Ehlo method or so. --- Rgds, Wilfried [TeamICS] http://www.overbyte.be/eng/overbyte/teamics.html http://www.mestdagh.biz Wednesday, August 5, 2009, 17:31, Arno Garrels wrote: Hello Wilfried, I cannot test this at the moment, but if I set in TSmtpCli (ICS V5): AutType := smtpAuthAutoSelect; And fill in the userName and passWord (at creation time), is this enough that it find all possible autentication types (seems to be quit a few)? It's enough. It even probes for types not announced in the EHLO response. It failed if no authentication was required. -- Arno Garrels -- 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 -- 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
Re: [twsocket] TSmtpCli autenication
Wilfried Mestdagh wrote: Does it not matter how the code is written (OnRequestDone), eg like this: case RqType of smtpConnect: begin Cli.Helo; end; smtpHelo: begin Cli.Mail; end; Meaning, I don't use Ehlo method or so. EHLO is required for authentication, otherwise an exception was raised. As long as HELO is supported by mail servers you could call smtpHelo if no authentication is wanted and smtpEhlo otherwise. Something like this: case RqType of smtpConnect: begin if SmtpClient.AuthType = smtpAuthNone then SmtpClient.Helo else SmtpClient.Ehlo; end; smtpHelo: SmtpClient.MailFrom; smtpEhlo: SmtpClient.Auth; [..] -- Arno Garrels -- 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
Re: [twsocket] TSmtpCli autenication
Arno Garrels wrote: Wilfried Mestdagh wrote: Does it not matter how the code is written (OnRequestDone), eg like this: case RqType of smtpConnect: begin Cli.Helo; end; smtpHelo: begin Cli.Mail; end; Meaning, I don't use Ehlo method or so. EHLO is required for authentication, otherwise an exception was raised. As long as HELO is supported by mail servers you could call smtpHelo if no authentication is wanted and smtpEhlo otherwise. Something like this: Mixed up request types with methods, guess you know what I mean nevertheless. -- Arno Garrels -- 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