WebSmtpHelloEx Function

Action

Sends an EHLO command to the server.

Note: WebSmtpHelloEx can be used to determine the server’s capabilities. If the function fails, use WebSmtpHello
.

Include file

WebAPI.bdh

Syntax

WebSmtpHelloEx( in hSmtp   : number,
                in sDomain : string ): 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
sDomain Host name of the SMTP sender, for example, <myhostname.mailprovider.com>

Example

dcltrans
  transaction TWebSmtp
  var
    hSmtp: number;
  begin
    WebSmtpConnect(hSmtp, "standardhost", WEB_PORT_SMTP);
     if not WebSmtpHelloEx(hSmtp, "MyDomain") then
      WebSmtpHello(hSmtp, "MyDomain");
    end;
    WebSmtpQuit(hSmtp);
    WebSmtpShutdown(hSmtp);
  end TWebSmtp;

SilkEssential sample

eMail.sep