4D Internet Commands v16

SMTP_Host

Home

 
4D Internet Commands v16
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.



See also 

SMTP_New

 
PROPERTIES 

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

 
HISTORY 

Created: 4D Internet Commands 6.5

 
ARTICLE USAGE

4D Internet Commands ( 4D Internet Commands v16)