=== CRM EMAIL ENDPOINT ERROR CHECKER === Time: 2026-08-14 23:09:38 1. PHP VERSION: Version: 8.1.34 Status: ✅ OK (7.4+) 2. REQUIRED PHP EXTENSIONS: - imap: ✅ Installed - mbstring: ✅ Installed - pdo: ✅ Installed - json: ✅ Installed - curl: ✅ Installed 3. EMAIL.PHP FILE CHECK: ✅ File exists Location: /home2/institu3/public_html/api.ahsankm.com/backend/api/endpoints/email.php Size: 30808 bytes Modified: 2025-10-14 02:12:29 4. CONFIGURATION FILES: config.php: ✅ Exists .env: ✅ Exists 5. EMAIL.PHP SYNTAX CHECK: ✅ No syntax errors 6. IMAP CONNECTION TEST: Host: mail.ahsankm.com:993 User: info@ahsankm.com ❌ IMAP connection FAILED Error: Can not authenticate to IMAP server: [AUTHENTICATIONFAILED] Authentication failed. 7. FILE PERMISSIONS: email.php: 0644 ✅ Readable config.php: 0644 8. TEST API ENDPOINT: Attempting to call email API... ✅ Config loaded successfully === SUMMARY === ✅ All basic checks passed If still getting 500 error, check: 1. Server error logs 2. Database connection in .env file 3. JWT_SECRET in .env file === END OF REPORT ===