SMTP_Host

4D - Documentation   Français   English   German   Japanese   4D Internet Commands, Theme List   4D Internet Commands, Alphabetical List   Back   Previous   Next

version 6.5


SMTP_Host (smtp_ID; hostName{; deleteOption}) Integer

ParameterTypeDescription
smtp_IDLongintMessage reference
hostNameStringHost name or IP address
deleteOptionInteger0 = Add or Replace, 1 = Delete
Function resultIntegerError Code

Description

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.

Examples

See the examples for the command SMTP_Body and SMTP_Send.

See Also

SMTP_New.


4D - Documentation   Français   English   German   Japanese   4D Internet Commands, Theme List   4D Internet Commands, Alphabetical List   Back   Previous   Next