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_validate == 'false') ? "no" : null)."validate-cert";
|
||||||
$fax_email_connection .= "}".$fax_email_connection_mailbox;
|
$fax_email_connection .= "}".$fax_email_connection_mailbox;
|
||||||
if (!$connection = imap_open($fax_email_connection, $fax_email_connection_username, $fax_email_connection_password)) {
|
if (!$connection = imap_open($fax_email_connection, $fax_email_connection_username, $fax_email_connection_password)) {
|
||||||
|
print_r(imap_errors());
|
||||||
continue; // try next account
|
continue; // try next account
|
||||||
}
|
}
|
||||||
|
|
||||||
@@ -203,7 +204,6 @@ if (sizeof($result) != 0) {
|
|||||||
|
|
||||||
//reset variables
|
//reset variables
|
||||||
unset($fax_numbers);
|
unset($fax_numbers);
|
||||||
|
|
||||||
}
|
}
|
||||||
|
|
||||||
//delete email
|
//delete email
|
||||||
@@ -212,16 +212,13 @@ if (sizeof($result) != 0) {
|
|||||||
}
|
}
|
||||||
}
|
}
|
||||||
unset($authorized_senders);
|
unset($authorized_senders);
|
||||||
|
|
||||||
}
|
}
|
||||||
|
|
||||||
//close account connection
|
//close account connection
|
||||||
imap_close($connection);
|
imap_close($connection);
|
||||||
}
|
}
|
||||||
|
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
||||||
//functions used above
|
//functions used above
|
||||||
function load_default_settings() {
|
function load_default_settings() {
|
||||||
global $db;
|
global $db;
|
||||||
@@ -312,4 +309,5 @@ function load_domain_settings($domain_uuid) {
|
|||||||
}
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
?>
|
?>
|
||||||
Reference in New Issue
Block a user