diff --git a/app/fax/fax_emails.php b/app/fax/fax_emails.php index f666c5349e..7c14a0b7ce 100644 --- a/app/fax/fax_emails.php +++ b/app/fax/fax_emails.php @@ -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) { } } } + ?> \ No newline at end of file