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

(string) (Required) SMTP server IP or host name

$port

(integer) (Optional) The port number to connect to

Default value: null

$timeout

(integer) (Optional) How long to wait for the connection to open

Default value: 30

$options

(array) (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

This site uses Akismet to reduce spam. Learn how your comment data is processed.