TPop3Cli.Connect

From Overbyte
Jump to navigation Jump to search

Main page -> ICS component reference -> TPop3Cli -> Connect

Definition

<syntaxhighlight lang="delphi"> procedure Connect; virtual; </syntaxhighlight>

Description

Connects to a POP3 server. Before you call this method, you must set at least Host, UserName and PassWord properties. You can of course set other related properties before you connect.

Delphi Example

<syntaxhighlight lang="delphi"> Pop3Cli1.Host := 'pop3.yourserver.com'; Pop3Cli1.UserName := 'username'; Pop3Cli1.PassWord := 'password'; Pop3Cli1.Connect; </syntaxhighlight>

See List or Uidl for more comprehensive example when and how to use Quit. Also you can look for OverbyteIcsMailRcv1 demo included in ICS distribution package.

C++ Example

<syntaxhighlight lang="cpp"> Pop3Cli1->Host = "pop3.yourserver.com"; Pop3Cli1->UserName = "username"; Pop3Cli1->PassWord = "password"; Pop3Cli1->Connect; </syntaxhighlight>

See List or Uidl for more comprehensive example when and how to use Quit. Also you can look for OverbyteIcsMailRcv1 demo included in ICS distribution package.