PHPMailer\PHPMailer\SMTP::authenticate
Perform SMTP authentication.
Must be run after hello().
Signature
public function authenticate(string
$username,
string
$password,
[string
$authtype = NULL,
[OAuth
$OAuth = NULL]] )
Parameters
$username
— string- The user name
$password
— string- The password
$authtype
— string- The auth type (CRAM-MD5, PLAIN, LOGIN, XOAUTH2)
$OAuth
— object- An optional OAuth instance for XOAUTH2 authentication
Returns
- bool
- True if successfully authenticated