When Mass Credentials are generated, the user is registered from the portal or requested for forgot password, then an email will be sent to the portal user with their credentials, for that admin require to set an email template.
Please follow the below steps to ‘Assign Email Templates’ for Salesforce Classic & Lightning modes.