Removed WebKlex PHP-IMAP Dependency in post as it was spewing errors for people running older version of php below 8.2 - note this is still required for Mail Parser to work

This commit is contained in:
johnnyq
2024-06-27 01:10:00 -04:00
parent 5b3c6f4272
commit 1c618892cc
2 changed files with 11 additions and 21 deletions

View File

@@ -196,13 +196,13 @@ if (isset($_POST['test_email_smtp'])) {
// Test IMAP
// Autoload Composer dependencies
require_once __DIR__ . '/../plugins/php-imap/vendor/autoload.php';
// require_once __DIR__ . '/../plugins/php-imap/vendor/autoload.php';
// Webklex PHP-IMAP
use Webklex\PHPIMAP\ClientManager;
//use Webklex\PHPIMAP\ClientManager;
if (isset($_POST['test_email_imap'])) {
/*
validateCSRFToken($_POST['csrf_token']);
validateAdminRole();
@@ -227,11 +227,14 @@ if (isset($_POST['test_email_imap'])) {
$_SESSION['alert_type'] = "error";
$_SESSION['alert_message'] = "Test IMAP connection failed: " . $e->getMessage();
}
*/
$_SESSION['alert_message'] = "Test is Work In Progress";
header("Location: " . $_SERVER["HTTP_REFERER"]);
}
if (isset($_POST['edit_invoice_settings'])) {
validateCSRFToken($_POST['csrf_token']);