Skip to content

Wire Email Notification Mailer Service #55

Description

@aji70

Task: Wire Email Notification Mailer Service

Overview

Password reset logs tokens to console; notification preferences exist but nothing sends email. Wire a pluggable mailer without breaking existing auth contracts.


Goals

  • MailerModule with ConsoleMailerAdapter (dev) and SmtpMailerAdapter stub
  • Password reset sends email when user exists (still no enumeration)
  • New subscriber notifies creator if preferences allow newSubscriber
  • Env: MAILER_DRIVER, SMTP settings in .env.example

Deliverables

  • Templates for reset + new subscriber
  • Unit tests with mocked adapter
  • Docs for configuring mailer in local/prod

Acceptance Criteria

  • forgotPassword does not log raw token in production mode
  • Nonexistent email still returns 200
  • Creator with newSubscriber: false receives no email
  • Mail failures are logged but do not fail subscribe/reset
  • At least 6 tests

Metadata

Metadata

Assignees

No one assigned

    Labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions