How darrassi1/smtp_send_ui works
Project type and purpose
• This is a single-page web application (SPA) built with Angular CLI (v15) that provides a user interface for composing, sending, previewing, and managing emails via SMTP.
• Key features: admin login, compose email (with HTML editor and preview), draft management, SMTP configuration, toast notifications, file attachments.
File structure
• Top level:
• angular.json, tsconfig*.json, package.json: Angular build & config
• src/ : all application code
• src/app/ modules and components:
• app-routing.module.ts: client-side routes
• components/: UI building blocks (admin-login, compose, drafts, html-editor, html-preview-modal, navbar, settings, toast)
• services/: singleton services handling HTTP and business logic (auth, email, drafts & SMTP config CRUD, attachments, toast notifications)
• models/: TypeScript interfaces/models (Draft, SmtpConfig)
• config files: proxy.conf.json/-prod.json for API proxying, postcss.config.js & tailwind.config.js for styling, vercel.json for deployment.
Extract insights from the README
• Standard Angular dev/build/test commands; no backend code here, so the UI expects a separate API server to handle authentication, SMTP delivery, and data storage.