Add imap_errors() the fax/fax_emails.php to make it possible to see IMAP connection problems.

This commit is contained in:
Mark Crane 2015-06-01 22:44:28 +00:00
parent da114c1a64
commit 91a12aa8ed
1 changed files with 2 additions and 4 deletions

View File

@ -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) {
}
}
}
?>