Customizing Email Templates in Strapi v4 with Additional User Fields

I’m looking to customize the default email templates provided by Strapi for password reset and email address confirmation. I’ve added two extra fields to the user table, firstName and lastName, and I want these fields to be included in the email templates.

Here’s what I’m aiming for:

For the email template, I want it to address the user context in the message, such as:

I want to ensure that these customizations don’t affect the default password reset and confirmation flow. I am using Strapi version 4.24.3.

Could someone guide me on how to achieve this? Specifically:

  1. How can I modify the default email templates to include custom fields like firstName and lastName?

  2. Ensuring these changes don’t mess with the default functionality?