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\SmtpCode
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__));
}