Framework EDI Reference. Methods and Properties
ediSmtpCfg. AddTo

Adds a recipient of the message.

Syntax:

Parameters:

Returns:

Returns 1 if successful; otherwise returns 0 if operation failed.

Remarks

The email address specified in sRecipientTo and the parameter sRcptToParameter are used in the SMTP command RCPT TO for specifying the address of the recipient that is to receive the SMTP message.  The syntax of the command is as follows:

RCPT TO:<forward-path> [ <space> <rcpt-parameters> ] CRLF

Where:

When Framework EDI automatically generates and sends the message during the DATA communication phase, the message will contain a TO header showing the sRecipientTo address.

To export the message sent to the server to a file, specify the full path name of the export file in the SendFileOutput property. 

For additional information, see RFC 2821: Simple Mail Transfer Protocol.


Samples