Skip to main content
Drupal API
User account menu
  • Log in

Breadcrumb

  1. Drupal Core 11.1.x
  2. PlainAuthenticator.php

function PlainAuthenticator::authenticate

Overrides AuthenticatorInterface::authenticate

See also

https://www.ietf.org/rfc/rfc4954.txt

File

vendor/symfony/mailer/Transport/Smtp/Auth/PlainAuthenticator.php, line 31

Class

PlainAuthenticator
Handles PLAIN authentication.

Namespace

Symfony\Component\Mailer\Transport\Smtp\Auth

Code

public function authenticate(EsmtpTransport $client) : void {
    $client->executeCommand(\sprintf("AUTH PLAIN %s\r\n", base64_encode($client->getUsername() . \chr(0) . $client->getUsername() . \chr(0) . $client->getPassword())), [
        235,
    ]);
}

API Navigation

  • Drupal Core 11.1.x
  • Topics
  • Classes
  • Functions
  • Constants
  • Globals
  • Files
  • Namespaces
  • Deprecated
  • Services
RSS feed
Powered by Drupal