Topic Path: Symbol Reference > Classes > TIdPOP3 Class > TIdPOP3 Properties > Username Property
ContentsIndexHome
PreviousUpNext
TIdPOP3.Username Property

Identitity for the POP3 account.

property Username;

Username is a String property that represents the account identity used for the POP3 account. 

Username and Password are used in Login to provide account authentication on the connection to the POP3 server. 

Set values in Username and Password prior to calling Connect or Login.

(Delphi) Connecting to a POP3 server. 

 

// IdPOP3: TIdPOP3;

IdPOP3.Host := 'mailhost.myisp.net';
IdPOP3.Username := 'johndoe';
IdPOP3.Password := 'topsecreteyesonly';
IdPOP3.APOP := True;
IdPOP3.AutoLogin := True;

try
IdPOP3.Connect(30000);
except
// handle timeout or authentication error
on E: EIdException do HandleConnectError(E);
end;
Copyright 1993-2006, Chad Z. Hower (aka Kudzu) and the Indy Pit Crew. All rights reserved.
Post feedback to the Indy Docs Newsgroup.