Summery Summery
Perform SMTP authentication.
Syntax Syntax
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