
====================================================
  Bulk MX Verifier Tool — Improved Edition
====================================================

WHAT'S NEW (vs original):
--------------------------
- Fixed: "File is missing or empty" error (mx_results/ dir now auto-created)
- Fixed: delete_folder.php now returns JSON (was returning raw HTML, broke UI)
- Fixed: pollProgress now reads progress.json (richer data) instead of plain text log
- Fixed: Barracuda MX list had "Amazon.com" — removed (was wrong)
- Fixed: Worker crash leaves UI spinning forever — now has error state in progress.json
- Added: Drag & drop file upload zone
- Added: Real-time progress bar with percentage
- Added: MX lookup in-memory caching (huge speed boost for bulk files with repeated domains)
- Added: Duplicate email removal option
- Added: File size validation (50 MB max) and extension check before upload
- Added: Category stats grid shown after completion
- Added: "Verify Another File" button (no page reload needed)
- Added: Summary report (_summary.txt) inside the ZIP
- Added: 4 new email providers: Zoho, ProtonMail, iCloud, Outlook.com (separate from Hotmail)
- Added: CSV support — extracts emails from any column automatically
- Added: MX records sorted by priority before matching
- Added: Atomic progress.json writes (rename trick) to prevent partial reads
- Added: Worker processes ~200 progress updates max (adaptive interval)
- Improved: UI redesign — dark gradient, modern cards, responsive layout

HOW TO INSTALL ON cPanel:
--------------------------
1. Upload this zip to your cPanel account.
2. Extract into 'public_html' or any subdirectory.
3. Ensure PHP 7.4+ is enabled (cPanel MultiPHP Manager).
4. Make sure the directory is writable (chmod 755 or 775).
5. Access the app in your browser.

No database required. All storage is in mx_results/ (auto-created).

OPTIONAL — Auto-cleanup via Cron:
----------------------------------
Add this cron job in cPanel to delete sessions older than 6 hours:
  0 * * * * php /home/youraccount/public_html/cleanup_old_sessions.php

LOCAL DEVELOPMENT:
------------------
1. Ensure PHP 7.4+ is installed (php -v).
2. On Mac/Linux: ./start.sh
3. On Windows: double-click start.bat
4. Open http://localhost:8000 in your browser.

Results are stored in: mx_results/<session_id>/
