TSmtpCli.Auth

From Overbyte
Revision as of 18:02, 19 February 2006 by Arno (talk | contribs)
(diff) ← Older revision | Latest revision (diff) | Newer revision → (diff)
Jump to navigation Jump to search

Main page -> ICS component reference -> TSmtpCli.Auth

Definition

procedure Auth;

Inherited from TCustomSmtpCli.Auth

Description

Sends SMTP command AUTH to the mail server to start SMTP authentication as specified with property AuthType. If property AuthType has been set to smtpAuthAutoSelect the component won't silently fall back to smtpAuthNone if no matching authentication method could be detected, instead method Auth would return with an error > 0 in event [TSmtpCli.OnRequestDone | OnRequestDone]]. Any kind of SMTP authentication requires a previous call of method Ehlo instead of Helo.

Example

if SmtpCli1.Connected then
    SmtpCli1.Auth;

Best practices

How to