WebSmtpQuit Function

Action

Commits the mail transaction. All previous commands actually affect only the server’s mail database.

Include file

WebAPI.bdh

Syntax

WebSmtpQuit( in hSmtp: number ): 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

Example

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

Sample scripts

WebMulti01.bdf

SilkEssential sample

eMail.sep