diff --git a/utils/email/composer.ts b/utils/email/composer.ts index f17e34d8..dc104ca0 100644 --- a/utils/email/composer.ts +++ b/utils/email/composer.ts @@ -9,18 +9,18 @@ export class Composer { private static signature = "OpenAIRE team
" + "www.openaire.eu
"; private static ifYouAreNotResponsible(): string { - return "If you are not responsible for this community, please " - + "contact us. "; + return "If you are not responsible for this community, please " + + "contact us. "; } private static manageNotificationSettings(communityId: string): string { - return "Click here to manage your notification settings. "; + return "Click here to manage your notification settings. "; } private static youAreManagerOfTheCommunity(communityId: string, communityName: string): string { - return "You are receiving this e-mail as manager of the community " - + "" + communityName + ". "; + return "You are receiving this e-mail as manager of the community " + + "" + communityName + ". "; } public static composeEmailForNewManager(communityId: string, communityName: string, newCommunityManagers: any): Email { @@ -29,7 +29,7 @@ export class Composer { email.subject = "[OpenAIRE-Connect] " + communityName + ": Welcome new manager"; email.body = "

Welcome to OpenAIRE Connect!

" + "

You are receiving this e-mail as you were assigned as manager of the community " + "\"" + communityName + "\"" + " dashboard. " + + communityId + ".openaire.eu/'>" + communityName + " dashboard. " + "In order to access the administration section of your community you must first login using one of the available options. " + "
The administrative rights are associated to the e-mail address, that was used to send you this message." + " If you login with an account associated to a different email, please contact us" @@ -41,7 +41,6 @@ export class Composer { + "

"; email.recipients = newCommunityManagers; - console.log(email); return email; } @@ -60,8 +59,8 @@ export class Composer { + this.manageNotificationSettings(communityId) + "

" + ""; - email.recipients = firstVersionOfManagers; + return email; } }