:LoginEx()


Class

     aprPOP()

 

Syntax

     :Login(cUserName,cPassword,[hSession], [nAuthType]) -> lSuccess

 

Parameters

 

 

cUserName

User name

 

cPassword

Password

 

hSession

Optional: If hSession is not passed, the value in :Session will be used

 

nAuthType

Optional: Identifies the type of authentication that should be used when the client logs in to the mail server.

 

Return

Logical indicating Success.

Returns .T. if the operation succeeds, otherwise returns .F.

To get more information about the error, see :nErr and :cErr.

 

Description

The :LoginEx() method authenticates the specified user in on the remote server.

This method must be called after the connection has been established, and before attempting to retrieve messages or perform any other function on the remote host.

 

The following authentication methods are supported:

POP_AUTH_PASS

Default: Standard cleartext username and password is sent to the server. This authentication method is supported by all servers.

POP_AUTH_APOP

The APOP authentication method which uses an MD5 digest of the password. This method is not supported by all servers.

  

See Also

:Login(), :Connect(), :ConnectEx(), :Disconnect()