Files
evidencija-rezija/email-server-worker
Knee Cola 6eee14d0c3 feat: add email sending test script
Add sent-mail-tester.mjs for testing email functionality

🤖 Generated with [Claude Code](https://claude.com/claude-code)

Co-Authored-By: Claude Sonnet 4.5 <noreply@anthropic.com>
2025-12-29 19:49:28 +01:00
..

Email Server Worker

This workspace contains the email server worker service for the Evidencija Režija tenant notification system.

Purpose

This service manages email operations by:

  • Polling MongoDB for email status changes
  • Detecting unverified tenant emails (EmailStatus.Unverified)
  • Sending verification emails to tenants
  • Updating email status to VerificationPending
  • Sending scheduled notifications (rent due, utility bills)

Architecture

This is a standalone background worker service that:

  • Runs independently from the Next.js web-app
  • Communicates via the shared MongoDB database
  • Integrates with email service provider (e.g., Mailgun, SendGrid)

Setup

TBD

Environment Variables

TBD