SMTP::connect

Advertisement

Summery Summery

Connect to an SMTP server.

Syntax Syntax

SMTP::connect( string $host, integer $port = null, integer $timeout = 30, array $options = array() )

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


			

Advertisement

Advertisement

Leave a Reply