WebSmtpHelp Function

Action

Asks the server to respond with a help message.

Include file

WebAPI.bdh

Syntax

WebSmtpHelp( in hSmtp : number,
             in sHelp : string optional ): boolean;

Return value

  • true if the server responded with a positive return code

  • false otherwise

Parameter Description
hSmtp Handle to a Web connection that was created by WebSmtpConnect
sHelp Optional command to ask for help. Sample: "HELLO"

Example

dcltrans
  transaction TWebSmtp
  var
    hSmtp: number;
  begin
    WebSmtpConnect(hSmtp, "standardhost", WEB_PORT_SMTP);
    WebSmtpHello(hSmtp, "<MyDomain>");
    WebSmtpHelp(hSmtp, "");
    WebSmtpQuit(hSmtp);
    WebSmtpShutdown(hSmtp);
  end TWebSmtp;

Sample scripts

WebMulti01.bdf

SilkEssential sample

eMail.sep