Sets the recipient’s address. Multiple recipients can be specified by repeated use of this command.
WebAPI.bdh
WebSmtpRecipient( in hSmtp : number, in sRecipient : 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 |
sRecipient | One or more recipients’ e-mail addresses. Sample: "john<john@mailprovider.com>" |
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;
WebMulti01.bdf
eMail.sep