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\SmtpCode
public function setRestartThreshold(int $threshold, int $sleep = 0) : static {
$this->restartThreshold = $threshold;
$this->restartThresholdSleep = $sleep;
return $this;
}