Add SMTP Timeout and SMTPKeepAlive

This commit is contained in:
FusionPBX 2022-10-21 11:43:14 -06:00 committed by GitHub
parent 88b43cfa14
commit 4afc040efa
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 2 additions and 0 deletions

View File

@ -484,6 +484,8 @@ if (!class_exists('email')) {
if (is_numeric($this->debug_level) && $this->debug_level > 0) {
$mail->SMTPDebug = $this->debug_level;
}
$mail->Timeout = 60; //set the timeout (seconds)
$mail->SMTPKeepAlive = true; //don't close the connection between messages
//add the email recipients
$address_found = false;