-
Notifications
You must be signed in to change notification settings - Fork 10
Closed
Labels
Stellar WaveIssues in the Stellar wave programIssues in the Stellar wave program
Description
Description:
Use the existing Mail module to send emails to existing users:
- Welcome Message for New User
- Login Notification Email
- Create a templates folder for email templates.
Tasks:
Create src/modules/mail/templates/
- welcome.ejs
- login.ejs
- In src/modules/mail/mail.service.ts implement:
- sendWelcomeEmail(user: { email; firstName?; username? })
- sendLoginEmail(user: { email; firstName?; username? }, metadata?: { ip?: string; device?: string; time?: Date })
- Load and render templates with variables (name, app name, date/time, optional device/IP).
- Ensure mail configs (from env) are used (sender, subject prefixes).
- Add graceful error handling and logging (no PII in logs).
Acceptance Criteria:
- Sending welcome email renders the correct template and dispatches to the user’s email.
- Sending login email renders the correct template with optional IP/device/time.
- Uses env-driven sender & subjects.
- Unit tests pass for template rendering and mail dispatch.
- A screenshot of your server running
Reactions are currently unavailable
Metadata
Metadata
Assignees
Labels
Stellar WaveIssues in the Stellar wave programIssues in the Stellar wave program