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

Breadcrumb

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

function SmtpTransport::setRestartThreshold

Sets the maximum number of messages to send before re-starting the transport.

By default, the threshold is set to 100 (and no sleep at restart).

Parameters

int $threshold The maximum number of messages (0 to disable):

int $sleep The number of seconds to sleep between stopping and re-starting the transport:

Return value

$this

File

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

Class

SmtpTransport
Sends emails over SMTP.

Namespace

Symfony\Component\Mailer\Transport\Smtp

Code

public function setRestartThreshold(int $threshold, int $sleep = 0) : static {
    $this->restartThreshold = $threshold;
    $this->restartThresholdSleep = $sleep;
    return $this;
}
RSS feed
Powered by Drupal