SMTP::authenticate

Advertisement

Summery Summery

Perform SMTP authentication.

Syntax Syntax

SMTP::authenticate( string $username, string $password, string $authtype = null, string $realm = '', string $workstation = '', null|OAuth $OAuth = null )

Description Description

Must be run after hello().

Parameters Parameters

$username

(Required) The user name

$password

(Required) The password

$authtype

(Optional) The auth type (PLAIN, LOGIN, CRAM-MD5)

Default value: null

$realm

(Optional) The auth realm for NTLM

Default value: ''

$workstation

(Optional) The auth workstation for NTLM

Default value: ''

$OAuth

(Optional) An optional OAuth instance (@see PHPMailerOAuth)

Default value: null

Return Return

(bool) True if successfully authenticated.* @access public

Source Source

File: wp-includes/class-smtp.php


			

Advertisement

See also See also

Advertisement

Leave a Reply