4D Internet Commands v14

SMTP_Host

Home

 
4D Internet Commands v14
SMTP_Host

SMTP_Host 


 

SMTP_Host ( smtp_ID ; hostName {; deleteOption} ) -> Function result 
Parameter Type   Description
smtp_ID  Longint in Message reference
hostName  String in Host name or IP address
deleteOption  Integer in 0 = Add or Replace, 1 = Delete
Function result  Integer in Error Code

All mail created and sent from the SMTP commands must be directed to a specific SMTP server. 4D Internet Commands do not deliver mail directly to each recipient; it is delivered to the SMTP server specified by this command. The SMTP server is responsible for resolving address errors and scheduling the delivery of the message.

smtp_ID is the long integer reference to the mail message created with the SMTP_New command.

hostName is the host name or IP address of the SMTP server which will handle the distribution of the message.

deleteOption is an optional parameter which specifies whether to delete the current host setting. A value of zero will set the host to the value specified by hostName. A value of 1 will delete the Host specification for the message identified by smtp_ID. This is an optional parameter and will default to zero if not otherwise specified.

Example  

See the examples for the command SMTP_Body and SMTP_Send.

 
PROPERTIES 

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

 
HISTORY 

Created: 4D Internet Commands 6.5

 
SEE ALSO 

SMTP_New

 
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)