SMTPit Pro

Next Generation Email plug-in

<- Back to SMTPit Pro function list

SMTPit_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 Type
Text
Format
SMTPit_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

Code:

SMTPit_SetHost("mail.yourdomain.com")

Result:

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

Example 2

Code:

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

Result:

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