PHPMailer\PHPMailer\SMTP::connect
Connect to an SMTP server.
Signature
public function connect(string
$host,
[int
$port = NULL,
[integer
$timeout = 30,
[array
$options = ]]] )
Parameters
$host
— string- SMTP server IP or host name
$port
— int- 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
- bool