feat(core): Send email notification when a user invited to a project (#16687)

This commit is contained in:
Guillaume Jacquart
2025-06-26 11:43:59 +02:00
committed by GitHub
parent 719a17427e
commit 7e376e087e
10 changed files with 274 additions and 87 deletions

View File

@@ -64,6 +64,10 @@ export class TemplateConfig {
/** Overrides default HTML template for notifying that credentials were shared (use full path) */
@Env('N8N_UM_EMAIL_TEMPLATES_CREDENTIALS_SHARED')
'credentials-shared': string = '';
/** Overrides default HTML template for notifying that credentials were shared (use full path) */
@Env('N8N_UM_EMAIL_TEMPLATES_PROJECT_SHARED')
'project-shared': string = '';
}
const emailModeSchema = z.enum(['', 'smtp']);

View File

@@ -121,6 +121,7 @@ describe('GlobalConfig', () => {
'user-invited': '',
'password-reset-requested': '',
'workflow-shared': '',
'project-shared': '',
},
},
},