mirror of
https://github.com/fusionpbx/fusionpbx.git
synced 2025-12-30 09:03:49 +00:00
Add imap_errors() the fax/fax_emails.php to make it possible to see IMAP connection problems.
This commit is contained in:
@@ -107,6 +107,7 @@ if (sizeof($result) != 0) {
|
||||
$fax_email_connection .= "/".(($fax_email_connection_validate == 'false') ? "no" : null)."validate-cert";
|
||||
$fax_email_connection .= "}".$fax_email_connection_mailbox;
|
||||
if (!$connection = imap_open($fax_email_connection, $fax_email_connection_username, $fax_email_connection_password)) {
|
||||
print_r(imap_errors());
|
||||
continue; // try next account
|
||||
}
|
||||
|
||||
@@ -203,7 +204,6 @@ if (sizeof($result) != 0) {
|
||||
|
||||
//reset variables
|
||||
unset($fax_numbers);
|
||||
|
||||
}
|
||||
|
||||
//delete email
|
||||
@@ -212,16 +212,13 @@ if (sizeof($result) != 0) {
|
||||
}
|
||||
}
|
||||
unset($authorized_senders);
|
||||
|
||||
}
|
||||
|
||||
//close account connection
|
||||
imap_close($connection);
|
||||
}
|
||||
|
||||
}
|
||||
|
||||
|
||||
//functions used above
|
||||
function load_default_settings() {
|
||||
global $db;
|
||||
@@ -312,4 +309,5 @@ function load_domain_settings($domain_uuid) {
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
?>
|
||||
Reference in New Issue
Block a user