Product Logo

SMTPit Pro

Next Generation Email plug-in

Functions

SMTPit_SetHost

NameSMTPit_SetHost
Description

The Host is the domain name or IP address of the SMTP Pro mail server you are connecting to. You can assign the host in your scripts, or set up a Default Host in the Configuration Dialog. SMTPit_Send and SMTPit_Connect will return an error if no host has been set. If you assign a host with this function, SMTPit Pro will ignore the Default Host in the Configuration Dialog.

Return TypeText
FormatSMTPit_SetHost ( Host ; Port )
Required Parameters
Host

The Domain Name or IP Address of the SMTP Server to send the email through.

Optional Parameters
Port

The TCP/IP Port number for the SMTP Server. (Default is 25.)

Examples
Example 1

Sets the email host to "mail.yourdomain.com".

SMTPit_SetHost( "mail.yourdomain.com" )
Example 2

Sets the email host to "mail.yourdomain.com", and sets the port to 465.

SMTPit_SetHost( "mail.yourdomain.com" ; "465")