Summery Summery
Connect to an SMTP server.
Syntax Syntax
Parameters Parameters
- $host
-
(Required) SMTP server IP or host name
- $port
-
(Optional) The port number to connect to
Default value: null
- $timeout
-
(Optional) How long to wait for the connection to open
Default value: 30
- $options
-
(Optional) An array of options for stream_context_create()
Default value: array()
Return Return
(boolean)
Source Source
File: wp-includes/class-smtp.php