WebPopResponse Function

Action

Retrieves a standard single-line response from the POP3 server.

Include file

WebAPI.bdh

Syntax

WebPopResponse( in  hPop      : number, 
                out sResponse : string, 
                in  nMaxLen   : number): boolean;

Return value

  • true if the response was successfully received and the server confirmed with "+OK"

  • false otherwise

Parameter Description
hPop Handle to a Web connection that was created by WebPopConnect
sResponse String buffer to hold the response. Can be set to NULL to use the internal buffer. The complete response is read from the server even if sResponse is too short to hold it.
nMaxLen Maximum size of the returned response. Specify STRING_COMPLETE to get all received data.

Example

WebPopResponse(hPop, sResponse, STRING_COMPLETE); 
WebPopResponse(hPop, NULL, 0);