SMTP::Connect
Connect to an SMTP server
SMTP CODE SUCCESS: 220 SMTP CODE FAILURE: 421
Signature
public function Connect(string
$host,
[integer
$port = 0,
[integer
$timeout = 30,
array
$options]] )
Parameters
-
$host
- SMTP server IP or host name
-
$port
- The port number to connect to, or use the default port if not specified
-
$timeout
- How long to wait for the connection to open
-
$options
- An array of options compatible with stream_context_create()
Returns
- bool