Command SMTP_Clear

4D Internet Commands

SMTP_Clear

version 6.5


SMTP_Clear (smtp_ID) Integer

ParameterTypeDescription
smtp_IDLongintMessage reference
0 if successful

Function result Integer Error Code

Description

The SMTP_Clear command disposes of a message, freeing any memory using during its creation. Every call to SMTP_New should have a corresponding call to SMTP_Clear.

smtp_ID is the long integer reference to the mail message created with the SMTP_New command. Upon the successful close of a SMTP message, the SMTP_Clear command will return a zero value back into the smtp_ID variable.

Example

See the example for the command SMTP_Body.

See Also

SMTP_New.