name: EsmtpTransport class_comment: '# * Sends Emails over SMTP with ESMTP support. # * # * @author Fabien Potencier # * @author Chris Corbyn' dependencies: - name: EventDispatcherInterface type: class source: Psr\EventDispatcher\EventDispatcherInterface - name: LoggerInterface type: class source: Psr\Log\LoggerInterface - name: TransportException type: class source: Symfony\Component\Mailer\Exception\TransportException - name: TransportExceptionInterface type: class source: Symfony\Component\Mailer\Exception\TransportExceptionInterface - name: UnexpectedResponseException type: class source: Symfony\Component\Mailer\Exception\UnexpectedResponseException - name: AuthenticatorInterface type: class source: Symfony\Component\Mailer\Transport\Smtp\Auth\AuthenticatorInterface - name: AbstractStream type: class source: Symfony\Component\Mailer\Transport\Smtp\Stream\AbstractStream - name: SocketStream type: class source: Symfony\Component\Mailer\Transport\Smtp\Stream\SocketStream properties: [] methods: - name: setUsername visibility: public parameters: - name: username comment: "# * Sends Emails over SMTP with ESMTP support.\n# *\n# * @author Fabien\ \ Potencier \n# * @author Chris Corbyn\n# */\n# class EsmtpTransport\ \ extends SmtpTransport\n# {\n# private array $authenticators = [];\n# private\ \ string $username = '';\n# private string $password = '';\n# private array $capabilities;\n\ # private bool $autoTls = true;\n# \n# public function __construct(string $host\ \ = 'localhost', int $port = 0, ?bool $tls = null, ?EventDispatcherInterface $dispatcher\ \ = null, ?LoggerInterface $logger = null, ?AbstractStream $stream = null, ?array\ \ $authenticators = null)\n# {\n# parent::__construct($stream, $dispatcher, $logger);\n\ # \n# if (null === $authenticators) {\n# // fallback to default authenticators\n\ # // order is important here (roughly most secure and popular first)\n# $authenticators\ \ = [\n# new Auth\\CramMd5Authenticator(),\n# new Auth\\LoginAuthenticator(),\n\ # new Auth\\PlainAuthenticator(),\n# new Auth\\XOAuth2Authenticator(),\n# ];\n\ # }\n# $this->setAuthenticators($authenticators);\n# \n# /** @var SocketStream\ \ $stream */\n# $stream = $this->getStream();\n# \n# if (null === $tls) {\n# if\ \ (465 === $port) {\n# $tls = true;\n# } else {\n# $tls = \\defined('OPENSSL_VERSION_NUMBER')\ \ && 0 === $port && 'localhost' !== $host;\n# }\n# }\n# if (!$tls) {\n# $stream->disableTls();\n\ # }\n# if (0 === $port) {\n# $port = $tls ? 465 : 25;\n# }\n# \n# $stream->setHost($host);\n\ # $stream->setPort($port);\n# }\n# \n# /**\n# * @return $this" - name: getUsername visibility: public parameters: [] comment: null - name: setPassword visibility: public parameters: - name: password comment: '# * @return $this' - name: getPassword visibility: public parameters: [] comment: null - name: setAutoTls visibility: public parameters: - name: autoTls comment: '# * @return $this' - name: isAutoTls visibility: public parameters: [] comment: null - name: setAuthenticators visibility: public parameters: - name: authenticators comment: null - name: addAuthenticator visibility: public parameters: - name: authenticator comment: null - name: executeCommand visibility: public parameters: - name: command - name: codes comment: null - name: getCapabilities visibility: protected parameters: [] comment: null - name: doEhloCommand visibility: private parameters: [] comment: null - name: parseCapabilities visibility: private parameters: - name: ehloResponse comment: null - name: handleAuth visibility: private parameters: - name: modes comment: null traits: - Psr\EventDispatcher\EventDispatcherInterface - Psr\Log\LoggerInterface - Symfony\Component\Mailer\Exception\TransportException - Symfony\Component\Mailer\Exception\TransportExceptionInterface - Symfony\Component\Mailer\Exception\UnexpectedResponseException - Symfony\Component\Mailer\Transport\Smtp\Auth\AuthenticatorInterface - Symfony\Component\Mailer\Transport\Smtp\Stream\AbstractStream - Symfony\Component\Mailer\Transport\Smtp\Stream\SocketStream interfaces: []