Topic Path: Symbol Reference > Classes > TIdSMTP Class > TIdSMTP Properties > Username Property
TIdSMTP.Username Property

Authentication identity for the SMTP session.

property Username;

Username is a published property String property in TIdSMTP. Username contains the authentication identity provided when using the authentication mechanisms for the SMTP client in the Authenticate method. 

Sets the values for the Username and Password properties prior to calling Connect for the SMTP session. 

Username and Password are used, when the authentication type in AuthType contains atDefault, to send the encoded values for the AUTH LOGIN command. Username and Password are also provided for use in the SASLMechanisms supported for the SMTP session. 

DidAuthenticate will contain True when authentication has been successfully performed. 

Copyright 1993-2006, Chad Z. Hower (aka Kudzu) and the Indy Pit Crew. All rights reserved.
Post feedback to the Indy Docs Newsgroup.