> I'm trying to make an e-mail client. Thanks to Rainer, and others on this > list, I've got a better sense of authentication. Some servers require > authentication, others do not. I guess this is something often dealt with > as > a user setting--when setting up an e-mail program, the user enters whether > or not the server requires authentication. > > Is there any way around this? Is there a way to code that says, > essentially, > 'if the server requires authentication then AuthenticationType:=atLogin > else > AuthenticationType:=atNone'?
ICS SMTP component has an auto mode. You set AuthType := smtpAuthAutoSelect and the component use the authentication method according to what the SMTP server reply to the EHLO command which is supposed to return supported server extensions. So you should send EHLO command instead of HELO command. If the server doesn't understand it (it returns an error or disconnect), it is much likely that it doesn't support authentication anyway. If it support the EHLO command then the reply _may_ contain the authentication mode supported by the server. You probably already know that ICS components are available as freeware with source code from http://www.overbyte.be (and also on you Delphi companion CD, but al older version of course). Contribute to the SSL Effort. Visit http://www.overbyte.be/eng/ssl.html -- [EMAIL PROTECTED] The author for the freeware multi-tier middleware MidWare The author of the freeware Internet Component Suite (ICS) http://www.overbyte.be _______________________________________________ Delphi mailing list -> [email protected] http://www.elists.org/mailman/listinfo/delphi

