Skip to content

feat: add welcome email for user registration#19

Merged
Morgana-Claw merged 1 commit intodevelopfrom
feat/welcome-email-user-registration
Apr 1, 2026
Merged

feat: add welcome email for user registration#19
Morgana-Claw merged 1 commit intodevelopfrom
feat/welcome-email-user-registration

Conversation

@Morgana-Claw
Copy link
Copy Markdown
Collaborator

Summary

Add welcome email sent to users upon successful registration in ClientManager.

Changes

  • Add method to interface
  • Implement the method in both and with branded HTML email template
  • Inject into and call it fire-and-forget after successful user registration
  • Update to include mock

Email Content

The welcome email includes:

  • Gradient header with ClientManager branding
  • Congratulations message with username
  • Next steps section (profile completion, client registration, document upload, explore features)
  • Footer with copyright
  • No PDF attachment (unlike customer welcome email)

Implementation Details

  • Fire-and-forget pattern using to avoid blocking the registration response
  • Errors are silently caught to not affect the registration flow
  • Uses existing SMTP/Resend/SendGrid configurations

- Add SendWelcomeEmailToUserAsync method to IEmailService interface
- Implement method in SmtpEmailService and SendGridEmailService with branded HTML template
- Inject IEmailService into AuthApplication and call it fire-and-forget after successful registration
- Email includes: congratulations message, next steps, ClientManager branding
- No PDF attachment (unlike customer welcome email)
- Update AuthApplicationTests to include IEmailService mock
@Morgana-Claw Morgana-Claw merged commit 7b67c1e into develop Apr 1, 2026
1 check failed
@Morgana-Claw Morgana-Claw deleted the feat/welcome-email-user-registration branch April 1, 2026 20:28
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant