$tls $tls : mixed TLS connection details. 'tls' = TLS needed for direct connection to server/port. 'starttls' = Switch to TLS via protocol after connection. false = No TLS connection used. Type mixed
valid() valid(array $opts = array()) : boolean Check to see if server can be connected to. Parameters array $opts Additional options: auth: (mixed) The authentication credentials used to test a successful connection. insecure: (boolean) If true, will attempt insecure authentication. users: (array) A list of usernames to attempt if trying auth. If successful, the username will be stored in $username. Returns boolean — True if server is valid.