WebPopPass Function

Action

Sends the password as plain ASCII text to the server. Use WebPopUser first.

Include file

WebAPI.bdh

Syntax

WebPopPass( in hPop  : number, 
            in sPass : string ): 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
sPass Password

Example

dcltrans 
  transaction TWebPop3 
  const
    USERNAME := "username";
    PASSWORD := "password"; 
  var
    hPop, nMessages, nSize: number;
  begin
    WebPopConnect(hPop, "standardhost", WEB_PORT_POP3);
    WebPopUser(hPop, USERNAME); 
    WebPopPass(hPop, PASSWORD);
    WebPopStat(hPop, nMessages, nSize);
    WebPopList(hPop, IGNORE);
    WebPopRset(hPop);
    WebPopQuit(hPop);
    WebPopShutdown(hPop); 
  end TWebPop3;

Sample scripts

WebMulti01.bdf

SilkEssential sample

eMail.sep