Internet Direct (Indy) Version 9.0.1 Beta
TIdSMTP.Authenticate
Performs account authentication on the SMTP server.

function Authenticate: Boolean; virtual;
Returns
Boolean - True on success.

Description
Authenticate is a Boolean function that performs account authentication on the SMTP server. Authenticate returns True when successful, or False if authentication failed.

You must specify the AuthenticationType before calling the Authenticate method. Authenticate should be called only once for a SMTP session.

Send will also call Authenticate before transmission of an E-Mail message, if the SMTP session has not been authenticated.

When AuthenticationType is atLogin, Authenticate sends the SMTP AUTH LOGIN command followed by the Base64-encoded values for Username and Password to the server.