fix(SMTP): set SMTP Timelimit same as Timeout

This commit is contained in:
andrebolina 2023-08-22 23:49:07 -03:00
parent 57f994d89e
commit d18986cae7
2 changed files with 21 additions and 0 deletions

View File

@ -2114,6 +2114,7 @@ class PHPMailer
}
$this->smtp->setTimeout($this->Timeout);
$this->smtp->setTimelimit($this->Timeout);
$this->smtp->setDebugLevel($this->SMTPDebug);
$this->smtp->setDebugOutput($this->Debugoutput);
$this->smtp->setVerp($this->do_verp);

View File

@ -1399,6 +1399,26 @@ class SMTP
return $this->Timeout;
}
/**
* Set SMTP timelimit.
*
* @param int $timelimit The timelimit duration in seconds
*/
public function setTimelimit($timelimit = 0)
{
$this->Timelimit = $timelimit;
}
/**
* Get SMTP timelimit.
*
* @return int
*/
public function getTimelimit()
{
return $this->Timelimit;
}
/**
* Reports an error number and string.
*