SMTP::authenticate

SummerySummery

Perform SMTP authentication.

Syntax

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

DescriptionDescription

Must be run after hello().

ParametersParameters

$username

(string) (Required) The user name

$password

(string) (Required) The password

$authtype

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

Default value: null

$realm

(string) (Optional) The auth realm for NTLM

Default value: ''

$workstation

(string) (Optional) The auth workstation for NTLM

Default value: ''

$OAuth

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

Default value: null

ReturnReturn

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

SourceSource

File: wp-includes/class-smtp.php


			

See alsoSee also

Scroll to Top