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


(Required) The user name


(Required) The password


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

Default value: null


(Optional) The auth realm for NTLM

Default value: ''


(Optional) The auth workstation for NTLM

Default value: ''


(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



See also See also


Leave a Reply