4D Internet Commands v14

SMTP_New

Home

 
4D Internet Commands v14
SMTP_New

SMTP_New 


 

SMTP_New ( smtp_ID ) -> Function result 
Parameter Type   Description
smtp_ID  Longint in Reference to this new message
Function result  Integer in Error Code

The SMTP_New command should be the first command called in any sequence that is going to build a SMTP mail message except where SMTP_QuickSend is being used. SMTP_New creates a new message in memory and returns a reference to the message in the smtp_ID long integer variable. Subsequent SMTP commands will use the smtp_ID reference to populate the message with header and body information prior to calling SMTP_Send.

Every call to SMTP_New should have a corresponding call to SMTP_Clear. After sending a message, the call to SMTP_Clear will free any memory held by the contents of the message.

smtp_ID is the long integer reference to the message just created. This ID will be used for all subsequent references to this message. It is possible to open multiple new messages and the smtp_ID returned for each provides a means of identifying which open message any subsequent command should be applied to.

See the examples for the command SMTP_Body and SMTP_Send.

 
PROPERTIES 

Product: 4D Internet Commands
Theme: IC Send Mail
Number: 88991

 
HISTORY 

Created: 4D Internet Commands 6.5

 
SEE ALSO 

SMTP_Clear
SMTP_QuickSend
SMTP_Send

 
ARTICLE USAGE

4D Internet Commands ( 4D Internet Commands v11.4)
4D Internet Commands ( 4D v13.2)
4D Internet Commands ( 4D Internet Commands v12.1)
4D Internet Commands ( 4D Internet Commands v14 R2)
4D Internet Commands ( 4D Internet Commands v14)
4D Internet Commands ( 4D Internet Commands v14 R3)
4D Internet Commands ( 4D Internet Commands v14 R4)