Case study · Full Stack Development
Laravel EmailUtility & IMAP Client for Cusorcart
A robust, production-grade email client and utility service built with Laravel 12, PHP 8.2, React, and Inertia.js, designed to centralize, manage, and automate multiple business inboxes for Cusorcart’s multi-vendor e-commerce operations.

Cusorcart operates multiple functional email channels—support, vendors, info, contact—each critical to daily operations. Managing these inboxes manually was inefficient, error-prone, and difficult to scale.
To solve this, I designed and implemented a custom EmailUtility and IMAP-powered email client that brings all business emails into a single, unified system while laying the foundation for automation and AI-assisted workflows.
Core Features
- Unified Inbox System
- Centralized access to multiple IMAP email accounts
- Inbox, Sent, Drafts, and Archived views
- Threaded conversations for clarity
- Email Composition
- Rich email composer with reusable headers and footers
- Draft saving and editing
- Support for multiple sender identities
- Two-Way Email Sync
- Fetches emails directly from IMAP servers
- Stores emails locally for fast querying and analytics
- Tracks sent emails to maintain full conversation history
- System Awareness
- Differentiates real user emails from system notifications
- Enables intelligent routing for future automation (e.g., Slack escalation, AI replies)
Architecture & Technical Approach
- Backend
- Laravel 12 (PHP 8.2)
- Custom
EmailUtilityservice layer abstracting: - IMAP connections
- Email parsing
- Storage and state synchronization
- Queue-ready architecture for background email processing
- Frontend
- React with Inertia.js for a seamless SPA-like experience
- Server-driven state with real-time UI updates
- Clean separation between UI components and backend logic
- Design Decisions
- Combined direct IMAP access + database persistence to balance real-time accuracy with performance
- Built as an internal platform tool, not just a mailbox UI
- Structured for easy extension into AI agents and workflow automation
Impact
- Eliminated manual inbox switching for the Cusorcart operations team
- Improved response time and email traceability
- Created a scalable foundation for:
- AI support agents
- Automated replies
- Cross-channel communication analytics
- Significantly reduced operational friction in vendor and customer communication
Why This Project Matters
This project goes beyond “sending and receiving emails.” It demonstrates:
- Strong system design and abstraction skills
- Real-world business problem solving
- Experience building internal tools at scale
- Forward-thinking architecture ready for AI and automation integration
- Ai assist for writing email
