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

Breadcrumb

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

function SmtpTransport::executeCommand

Runs a command against the stream, expecting the given response codes.

Parameters

int[] $codes:

Throws

TransportException when an invalid response if received

11 calls to SmtpTransport::executeCommand()
EsmtpTransport::doEhloCommand in vendor/symfony/mailer/Transport/Smtp/EsmtpTransport.php
EsmtpTransport::doEhloCommand in vendor/symfony/mailer/Transport/Smtp/EsmtpTransport.php
EsmtpTransport::executeCommand in vendor/symfony/mailer/Transport/Smtp/EsmtpTransport.php
Runs a command against the stream, expecting the given response codes.
EsmtpTransport::executeCommand in vendor/symfony/mailer/Transport/Smtp/EsmtpTransport.php
Runs a command against the stream, expecting the given response codes.
SmtpTransport::doHeloCommand in vendor/symfony/mailer/Transport/Smtp/SmtpTransport.php

... See full list

1 method overrides SmtpTransport::executeCommand()
EsmtpTransport::executeCommand in vendor/symfony/mailer/Transport/Smtp/EsmtpTransport.php
Runs a command against the stream, expecting the given response codes.

File

vendor/symfony/mailer/Transport/Smtp/SmtpTransport.php, line 194

Class

SmtpTransport
Sends emails over SMTP.

Namespace

Symfony\Component\Mailer\Transport\Smtp

Code

public function executeCommand(string $command, array $codes) : string {
    $this->stream
        ->write($command);
    $response = $this->getFullResponse();
    $this->assertResponseCode($response, $codes);
    return $response;
}
RSS feed
Powered by Drupal