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 serverString containing the host of the SMTP server
INTEGER serverportInteger of the port of the smtp server
INTEGER timeoutOptional. If >0, sets a timeout (in ms) on the connection and uses it while connecting
Return value
INTEGERID of the connection (an error has occured when ID < 0)