Internet Direct (Indy)
Home
PreviousUpNext
TIdSMTP.Authenticate Method

Performs account authentication on the SMTP server.

Pascal
function Authenticate: Boolean; virtual;

Boolean - True on success.

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 AuthType before calling the Authenticate method. Authenticate should be called only once for a SMTP session. 

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

When AuthType is atSASL, Authenticate checks to ensure that SASLMechanisms contains a valid authentication mechanism for the server.

Exceptions 
Description 
With the message RSASLRequired
Internet Direct (Indy) version 10.1.5
Copyright © 1993-2006, Chad Z. Hower (aka Kudzu) and the Indy Pit Crew. All rights reserved.
Website http://www.indyproject.org.
Post feedback to the Indy Documentation newsgroup.