How ahm3dramad3n/emailybackend works
Emaily is an email-delivery API with account, project, service, template, submission, billing, and administration features. The principal workflow is a client submitting an email request; the submission service handles validation and attachments, sends email, and records operational results. The graph also preserves documented-by-tree capability branches, but several controllers and services were not sampled, so their connections are omitted or marked unverified rather than inferred. The sampled business services use a unit-of-work persistence layer; attachment storage uses Azure Blob Storage.
Main entry points: Controllers API controllers · IUnitOfWork.cs Unit of work · AuthService.cs Authentication · SubmissionService.cs Email submissions
Components 18
API surface
- API controllers
Emaily.API/Controllers
Business workflows
- Authentication
Emaily.BLL/Services/AuthService.cs - Project management
Emaily.BLL/Services/ProjectsService.cs - Mail services
Emaily.BLL/Services/ServiceManager.cs - Email submissions
Emaily.BLL/Services/SubmissionService.cs - Templates
Emaily.BLL/Services/TemplateService.cs - Integrations
Emaily.BLL/Services/IntegrationService.cs - Billing and plans
Emaily.BLL/Services/BillingService.cs - Analytics
Emaily.BLL/Services/AnalyticsService.cs - Administration
Emaily.BLL/Services/AdminService.cs
Shared infrastructure
- Email delivery
Emaily.BLL/Helpers/Interfaces/IEmailSenderService.cs - Attachment handling
Emaily.BLL/Helpers/Services/AttachmentManager.cs - Token service
Emaily.BLL/Helpers/Services/TokenService.cs - Result envelope
Emaily.BLL/DTOs/Result.cs
Persistence
- Unit of work
Emaily.DAL/Interfaces/IUnitOfWork.cs - Entity context
Emaily.DAL/Entities/EmailyDbContext.cs
Other components
- API client
- Azure Blob Storage
Connections 26
- API client → API controllers: sends requests
- API controllers → Authentication: calls
Emaily.API/Controllers/AuthController.cs - API controllers → Project management: calls
Emaily.API/Controllers/ProjectsController.cs - API controllers → Administration: calls
Emaily.API/Controllers/AdminController.cs - API controllers → Email submissions: routes to
- API controllers → Mail services: routes to
- API controllers → Templates: routes to
- API controllers → Integrations: routes to
- API controllers → Billing and plans: routes to
- API controllers → Analytics: routes to
- Authentication → Unit of work: reads and saves
Emaily.BLL/Services/AuthService.cs - Authentication → Token service: generates tokens
Emaily.BLL/Services/AuthService.cs - Authentication → Email delivery: sends messages
Emaily.BLL/Services/AuthService.cs - Project management → Unit of work: persists data
- Mail services → Unit of work: reads and saves
Emaily.BLL/Services/ServiceManager.cs - Email submissions → Unit of work: persists submissions
Emaily.BLL/Services/SubmissionService.cs - Email submissions → Email delivery: sends email
Emaily.BLL/Services/SubmissionService.cs - Email submissions → Attachment handling: handles files
Emaily.BLL/Services/SubmissionService.cs - Attachment handling → Azure Blob Storage: uploads and downloads
Emaily.BLL/Helpers/Services/AttachmentManager.cs - Templates → Unit of work: persists data
- Integrations → Unit of work: persists data
- Billing and plans → Unit of work: persists data
- Analytics → Unit of work: reads data
- Administration → Unit of work: manages records
- Unit of work → Entity context: uses context
Emaily.BLL/DependencyInjection.cs - API controllers → Result envelope: returns results