Sends an EHLO command to the server.
WebAPI.bdh
WebSmtpHelloEx( in hSmtp : number, in sDomain : string ): boolean;
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> |
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;
eMail.sep