PHP 8.3.31
Preview: PlainAuthenticator.php Size: 881 B
/home/getspomw/royalsquad.us/vendor/symfony/mailer/Transport/Smtp/Auth/PlainAuthenticator.php

<?php

/*
 * This file is part of the Symfony package.
 *
 * (c) Fabien Potencier <fabien@symfony.com>
 *
 * For the full copyright and license information, please view the LICENSE
 * file that was distributed with this source code.
 */

namespace Symfony\Component\Mailer\Transport\Smtp\Auth;

use Symfony\Component\Mailer\Transport\Smtp\EsmtpTransport;

/**
 * Handles PLAIN authentication.
 *
 * @author Chris Corbyn
 */
class PlainAuthenticator implements AuthenticatorInterface
{
    public function getAuthKeyword(): string
    {
        return 'PLAIN';
    }

    /**
     * @see https://www.ietf.org/rfc/rfc4954.txt
     */
    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]);
    }
}

Directory Contents

Dirs: 0 × Files: 6

Name Size Perms Modified Actions
831 B lrw-rw-rw- 2025-09-17 06:53:22
Edit Download
1.80 KB lrw-rw-rw- 2025-09-17 06:53:22
Edit Download
6.14 KB lrw-r--r-- 2026-04-26 08:42:54
Edit Download
965 B lrw-rw-rw- 2025-09-17 06:53:22
Edit Download
881 B lrw-rw-rw- 2025-09-17 06:53:22
Edit Download
1.00 KB lrw-rw-rw- 2025-09-17 06:53:22
Edit Download

If ZipArchive is unavailable, a .tar will be created (no compression).