WebSmtpReset Function

Action

Resets the mail servers state. The server rolls back (undoes) all previous actions performed during the SMTP session.

Include file

WebAPI.bdh

Syntax

WebSmtpReset( 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>");
    WebSmtpReset(hSmtp);
    WebSmtpQuit(hSmtp);    WebSmtpShutdown(hSmtp);
  end TWebSmtp;

Sample scripts

WebMulti01.bdf

SilkEssential sample

eMail.sep