Re: [twsocket] TSmtpCli autenication
Mixed up request types with methods, guess you know what I mean nevertheless. That's ok. Thanks for the help. --- Rgds, Wilfried [TeamICS] http://www.overbyte.be/eng/overbyte/teamics.html http://www.mestdagh.biz -- 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
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
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