Add SMTP Timeout and SMTPKeepAlive
This commit is contained in:
parent
88b43cfa14
commit
4afc040efa
|
|
@ -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;
|
||||
|
|
|
|||
Loading…
Reference in New Issue