SMTP::connect
Connect to an SMTP server.
Signature
public function connect(string
$host,
[integer
$port = NULL,
[integer
$timeout = 30,
[array
$options = ]]] )
Parameters
$host
—
string
SMTP server IP or host name
$port
—
integer
The port number to connect to
$timeout
—
integer
How long to wait for the connection to open
$options
—
array
An array of options for stream_context_create()
Returns
- boolean
Violations
Checkstyle
Line |
Column |
Severity |
Message |
290 |
141 |
warning
|
Line exceeds 120 characters; contains 141 characters |
296 |
141 |
warning
|
Line exceeds 120 characters; contains 141 characters |
299 |
127 |
warning
|
Line exceeds 120 characters; contains 127 characters |