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
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\SmtpCode
public function executeCommand(string $command, array $codes) : string {
$this->stream
->write($command);
$response = $this->getFullResponse();
$this->assertResponseCode($response, $codes);
return $response;
}