function XOAuth2Authenticator::authenticate
Overrides AuthenticatorInterface::authenticate
See also
https://developers.google.com/google-apps/gmail/xoauth2_protocol#the_sa…
File
-
vendor/
symfony/ mailer/ Transport/ Smtp/ Auth/ XOAuth2Authenticator.php, line 33
Class
- XOAuth2Authenticator
- Handles XOAUTH2 authentication.
Namespace
Symfony\Component\Mailer\Transport\Smtp\AuthCode
public function authenticate(EsmtpTransport $client) : void {
$client->executeCommand('AUTH XOAUTH2 ' . base64_encode('user=' . $client->getUsername() . "\x01auth=Bearer " . $client->getPassword() . "\x01\x01") . "\r\n", [
235,
]);
}