SMTP::Connect
Connect to the server specified on the port specified.
If the port is not specified use the default SMTP_PORT. If tval is specified then a connection will try and be established with the server for that number of seconds. If tval is not specified the default is 30 seconds to try on the connection. SMTP CODE SUCCESS: 220 SMTP CODE FAILURE: 421
Signature
public function Connect(
$host,
[integer
$port = 0,
[integer
$tval = 30]] )
Parameters
$host
—$port
— integer$tval
— integer
Returns
- bool