Internet Direct (Indy)
Home
PreviousUpNext
TIdPOP3.Username Property

Identitity for the POP3 account.

Pascal
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;
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.