Skip to content

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

Closed
trtajim wants to merge 3 commits into
mainfrom
feat/send-account-deletion-email
Closed

trtajim wants to merge 3 commits into
mainfrom
feat/send-account-deletion-email

Conversation

@trtajim

@trtajim trtajim commented Oct 9, 2026

Copy link
Copy Markdown
Member

Summary

Sends a formal confirmation and goodbye email in Bengali when an administrator deletes a user's account from the admin panel.

Details & Verification

  • Mailable: Created App\Mail\AccountDeletedMail implementing ShouldQueue with title/subject আপনার অ্যাকাউন্ট ডিলিট করা হয়েছে.
  • Template: Created resources/views/emails/account_deleted.blade.php styled with HSCStack's email layout.
  • Content:
    • Notification of permanent deletion following legal policies.
    • Links to Privacy Policy (/privacy-policy) and Terms & Conditions (/terms-conditions).
    • Welcome note encouraging them to rejoin anytime in the future.
    • Feature highlights overview (Resource Archive, Forum, Global Chat, Study Tracker, Community Interaction).
  • Controller: Dispatches the email to the user before deleting the user record in AdminUserController::destroy.
  • Routing: Added permanent redirect from /terms-conditions to /terms-service.
  • Tests: Added tests in tests/Feature/AccountDeletionMailTest.php.

@coderabbitai

coderabbitai Bot commented Oct 9, 2026 •

Copy link
Copy Markdown

Warning

Review limit reached

You've used all free OSS reviews for now. Wait for the free limit to reset to keep reviewing this public repository.

Next included review available in 46 minutes.

Check out review usage here.

View limit details

Limit details: You’ve used the included review currently available.

Learn how review limits work.

Review configuration:

⚙️ Run configuration
  • Configuration used: Repository: hscstack/platform/.coderabbit.yaml
  • Review profile: CHILL
  • Plan: Advanced
  • Run ID: c4cb8775-8fb9-4201-ac93-0a4e780723ad

📥 Commits

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


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


  • 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 closed this Oct 9, 2026
@trtajim
trtajim deleted the feat/send-account-deletion-email branch October 9, 2026 10:33
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