VPS backup, email system, AI/ML integration, 1-year roadmap, partner badges, onboarding tutorials
GHAR SE — PHASE 5 COMPLETE BUILD PROMPT Infrastructure Optimization + Email System + VPS Backup + AI/ML + 1-Year Roadmap | v7.2 | June 2026 Complete Phase 4 first (launch readiness 95+/100). Then execute Phase 5 tasks in order. CONTEXT Phase 1-4 = Website + Portals + Service pages + Polish complete. Phase 5 = Infrastructure optimization, email failover system, VPS backup automation, storage cleanup, Cloudflare + Firebase + R2 maximum utilization, and AI/ML feature additions. After Phase 5: system is production-grade, self-healing, and optimized for Pakistan-scale traffic. Repo: github.com/bitcoinurdu/gharse.git | API: https://api.gharseapp.com/api | VPS: 157.173.119.193 CRITICAL: NO Google Maps | NO SMS | NO payment gateway | Background #0D0D0D | Primary #FF6B35 TASK 1 — PRODUCTION EMAIL FAILOVER SYSTEM Create backend/src/services/email/ with these files: (cid:127) email.service.ts — main orchestrator (cid:127) providers/brevo.provider.ts (cid:127) providers/sendpulse.provider.ts (cid:127) providers/mailtrap.provider.ts (cid:127) email.queue.ts — Redis-based queue Provider Priority & Limits: LEVEL 1 — Brevo (Primary): (cid:127) Daily limit: 300 emails/day (cid:127) Reset: daily at UTC midnight (check Brevo dashboard for exact UTC reset time) (cid:127) Hourly cap: 60 emails/hour (cid:127) When 300 daily limit hit fi auto-switch to SendPulse LEVEL 2 — SendPulse (Secondary): SMTP: smtp-pulse.com | Port: 465 SSL or 587 TLS | Login: sendpulsegharse | Pass: JWpRjQgnktpC2tW | API Key: sp_apikey_fdb2a4aa68bec85124c3ccd3e1de41cac554d6060b10acf72a139fbc1b62123d (cid:127) Monthly limit: ~12,000 emails/month (cid:127) Hourly cap: 60 emails/hour (cid:127) When 60/hour hit fi auto-switch to Mailtrap (cid:127) When monthly limit hit fi queue remaining emails LEVEL 3 — Mailtrap (Emergency only): (cid:127) Monthly limit: ~3,500-4,500 emails/month (verify in Mailtrap dashboard) (cid:127) Hourly cap: 30 emails/hour (cid:127) Use ONLY when Brevo daily + SendPulse hourly both exhausted