How to Send a Custom Email When Inviting Users Through the Strapi Admin Panel?

System Information
  • Strapi Version: 4.25.10
  • Operating System: Linux
  • Database: Mysql
  • Node Version:
  • NPM Version:
  • Yarn Version:

Hello,

I’m using Strapi for my project and would like to customize the Invite User functionality in the Admin Panel. By default, Strapi sends a generic email when inviting users to join the admin panel, but I want to modify this email to include a custom subject, message, and link.

Here’s what I’m trying to achieve:

  1. When an admin invites a user via the Users & Permissions plugin in the Admin Panel, I want to send a custom email instead of the default one.
  2. The email should contain a custom message, a personalized subject line, and a link with specific parameters (like the user’s email and username).
  3. I would like to use the Strapi email plugin to send the invitation.

What I’ve Tried:

  • I’ve looked into the invite controller and tried to extend it, but I’m unsure where to properly hook into Strapi’s built-in user invite functionality.
  • I configured the email plugin to work with an email provider like SendGrid, but I am not sure how to intercept or customize the email template used when inviting users.