diff --git a/utils/email/composer.ts b/utils/email/composer.ts index dc104ca0..39bb6d96 100644 --- a/utils/email/composer.ts +++ b/utils/email/composer.ts @@ -63,4 +63,25 @@ export class Composer { return email; } + + public static composeEmailToInformManagers(communityName: string, communityId: string, managers: any): Email { + let email: Email = new Email(); + + email.subject = "[OpenAIRE-Connect] " + communityName + ": New subscriber notification"; + email.body = "
There is a new subscriber for \"" + communityName + "\" community. Click " + + "here to manage the subscibers list.
" + + this.signature + + ""
+ + this.youAreManagerOfTheCommunity(communityId, communityName)
+ + "
"
+ + this.manageNotificationSettings(communityId)
+ + "