diff --git a/utils/email/composer.ts b/utils/email/composer.ts index cc0e7d5e..ee20fb2a 100644 --- a/utils/email/composer.ts +++ b/utils/email/composer.ts @@ -330,6 +330,27 @@ export class Composer { return message; } + public static composeMessageForIrishDashboard(name: string, recipient: string, role: "manager" | "member") { + let email: Email = new Email(); + email.subject = 'National Open Access Monitor Ireland| ' + name; + email.recipient = recipient; + let pdppLink = 'http://catalogue.openaire.eu/files/Personal%20Data%20Protection%20Policy%20for%20OpenAIRE%20Services%20April%202022.pdf'; + email.body = '

Dear user,

' + + '

You have been invited to be a ' + role +' of the for the National Open Access Monitor, Ireland dashboard for the ' + name + '.

' + + '

Click this URL and use the verification code below to accept the invitation.

' + + '

The verification code is ((__code__)).

' + + '

By logging in and using the service you accept and agree to the OpenAIRE personal data protection policy.

' + + (role === "manager"? + '

As a manager of the National Open Access Monitor, Ireland, you will have access to the administration part of the dashboard, where you will be able to also invite other users to become managers.

': + '

As a member of the OpenAIRE Monitor Dashboard, you will have access to the restricted access areas of the profile for the ' + name + '.') + + '

Please contact us at ' + properties.helpdeskEmail + + ' if you have any questions or concerns.

' + + '

Kind Regards
The OpenAIRE Team

' + + '

National Open Access Monitor, Ireland

'; + return email; + } + + public static composeEmailForCommunityDashboard(name: string, role: "manager" | "member", recipient: string) { let email: Email = new Email(); email.subject = 'OpenAIRE Connect | ' + name;