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

(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

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

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