CreateSMTPConnection (open)
This function will try to create a connection to an SMTP server
Syntax
LOADLIB "wh::internet/smtp.whlib";
INTEGER FUNCTION CreateSMTPConnection(STRING server, INTEGER serverport, INTEGER timeout)
Parameters
STRING server
String containing the host of the SMTP server
INTEGER serverport
Integer of the port of the smtp server
INTEGER timeout
Optional. If >0, sets a timeout (in ms) on the connection and uses it while connecting
Return value
INTEGER
ID of the connection (an error has occured when ID < 0)