Skip to content

feat(mail): send goodbye notification email upon admin account deletion - #397

Merged
trtajim merged 3 commits into
mainfrom
feat/account-deletion-goodbye-email
Oct 9, 2026
Merged

trtajim merged 3 commits into
mainfrom
feat/account-deletion-goodbye-email

Conversation

@trtajim

@trtajim trtajim commented Oct 9, 2026 •

Copy link
Copy Markdown
Member

Summary

Sends a confirmation and goodbye email in Bengali reusing the existing emails.default layout when an administrator deletes a user account from the admin panel.

Details & Verification

  • Template Reuse: Reuses emails.default without creating extra blade views, allowing HTML anchor links and adding link styling.
  • Mailable: Created App\Mail\AccountDeletedMail taking primitive string data to prevent queued model deserialization failures upon record deletion.
  • Content & Anchors:
    • Confirms account and personal data deletion per policy.
    • Anchored links for Privacy Policy (/privacy-policy) and Terms & Conditions (/terms-service).
    • Feature highlights with anchored links for Resource Archive (/), Forum (/forum), Global Chat (/chat), and Study Tracker (/tracker).
  • Controller: Dispatches email to user's email before record deletion in AdminUserController::destroy.
  • Tests: Added tests in tests/Feature/AdminUserDeletionMailTest.php.

Summary by CodeRabbit

  • New Features
    • Users with an email address now receive a Bengali account-deletion email when an administrator deletes their account. The email includes relevant links and service information.
  • Style
    • Links in email messages now appear underlined, semibold, and indigo.

@coderabbitai

coderabbitai Bot commented Oct 9, 2026 •

Copy link
Copy Markdown

Review in Change Stack →

Note

Currently processing new changes in this PR. This may take a few minutes, please wait...

⚙️ Run configuration
  • Configuration used: Repository: hscstack/platform/.coderabbit.yaml
  • Review profile: CHILL
  • Plan: Advanced
  • Run ID: b4a545d8-31f3-4889-8784-52ee607ff732

📥 Commits

Reviewing files that changed from the base of the PR and between 96d9bc0 and f99245b.


📒 Files selected for processing (4)
  • app/Http/Controllers/Admin/UserController.php
  • app/Mail/AccountDeletedMail.php
  • resources/views/emails/default.blade.php
  • tests/Feature/AdminUserDeletionMailTest.php

✨ Finishing Touches
📝 Generate docstrings
  • Commit to this branch
  • Create a new PR

🧪 Generate unit tests (beta)
  • Commit to this branch
  • Create a new PR


  • Autofix · Keep fixing CodeRabbit findings and required CI, and resolving merge conflicts

Thanks for using CodeRabbit! It's free for OSS, and your support helps us grow. If you like it, consider giving us a shout-out.

❤️ Share

Comment @coderabbitai help to get the list of available commands.

@trtajim
trtajim merged commit ace89ed into main Oct 9, 2026
5 checks passed
@trtajim
trtajim deleted the feat/account-deletion-goodbye-email branch October 9, 2026 11:23
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