WebPopCommand Function

Action

Sends a command string to a POP3 server.

Include file

WebAPI.bdh

Syntax

WebPopCommand( in hPop     : number, 
               in sCommand : string ): boolean;

Return value

  • true if successful

  • false otherwise

Parameter Description
hPop Handle to a Web connection that was created by WebPopConnect
sCommand Command string. Make sure to append a carriage return and a line feed command ("\r\n") to the command string.

Example

dcltrans 
  transaction TWebPopCommand 
  const
    USERNAME := "username";
    PASSWORD := "password";
    COMMAND  := "...\r\n";
  // specify command string 
  var
    hPop: number; 
  begin
    WebPopConnect(hPop, "standardhost", WEB_PORT_POP3);
    WebPopUser(hPop, USERNAME);
    WebPopPass(hPop, PASSWORD); 
    WebPopCommand(hPop, COMMAND);
    WebPopQuit(hPop);
    WebPopShutdown(hPop); 
  end TWebPopCommand;