WebSmtpRecipient Function

Action

Sets the recipient’s address. Multiple recipients can be specified by repeated use of this command.

Include file

WebAPI.bdh

Syntax

WebSmtpRecipient( in hSmtp      : number,
                  in sRecipient : 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
sRecipient One or more recipients’ e-mail addresses. Sample: "john<john@mailprovider.com>"

Example

dcltrans
  transaction TWebSmtp
  var
    hSmtp: number;
  begin
    WebSmtpConnect(hSmtp, "standardhost", WEB_PORT_SMTP);
    WebSmtpHello(hSmtp, "<MyDomain>");
    WebSmtpRecipient(hSmtp, "<administrator@mail.com>");
    WebSmtpQuit(hSmtp);
    WebSmtpShutdown(hSmtp);
  end TWebSmtp;

Sample scripts

WebMulti01.bdf

SilkEssential sample

eMail.sep