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

Breadcrumb

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

function SmtpTransport::start

2 calls to SmtpTransport::start()
SmtpTransport::checkRestartThreshold in vendor/symfony/mailer/Transport/Smtp/SmtpTransport.php
SmtpTransport::doSend in vendor/symfony/mailer/Transport/Smtp/SmtpTransport.php

File

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

Class

SmtpTransport
Sends emails over SMTP.

Namespace

Symfony\Component\Mailer\Transport\Smtp

Code

public function start() : void {
    if ($this->started) {
        return;
    }
    $this->getLogger()
        ->debug(\sprintf('Email transport "%s" starting', __CLASS__));
    $this->stream
        ->initialize();
    $this->assertResponseCode($this->getFullResponse(), [
        220,
    ]);
    $this->doHeloCommand();
    $this->started = true;
    $this->lastMessageTime = 0;
    $this->getLogger()
        ->debug(\sprintf('Email transport "%s" started', __CLASS__));
}
RSS feed
Powered by Drupal