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

Breadcrumb

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

function SmtpTransport::ping

1 call to SmtpTransport::ping()
SmtpTransport::doSend in vendor/symfony/mailer/Transport/Smtp/SmtpTransport.php

File

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

Class

SmtpTransport
Sends emails over SMTP.

Namespace

Symfony\Component\Mailer\Transport\Smtp

Code

private function ping() : void {
    if (!$this->started) {
        return;
    }
    try {
        $this->executeCommand("NOOP\r\n", [
            250,
        ]);
    } catch (TransportExceptionInterface) {
        $this->stop();
    }
}
RSS feed
Powered by Drupal