Compose new subscriber notification email

git-svn-id: https://svn.driver.research-infrastructures.eu/driver/dnet40/modules/uoa-services-library/trunk/ng-openaire-library/src/app@54350 d315682c-612b-4755-9ff5-7f18f6832af3
This commit is contained in:
sofia.baltzi 2018-12-13 11:38:29 +00:00
parent 549778c2eb
commit 4c9ebd1b69
1 changed files with 21 additions and 0 deletions

View File

@ -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 = "<div style='font-size" + this.noteBodySize + "'>"
+ "<p>There is a new subscriber for \"" + communityName + "\" community. Click "
+ "<a href='https://beta.admin.connect.openaire.eu/manage-subscribers?communityId="
+ communityId + "'>here</a> to manage the subscibers list. </p>"
+ this.signature
+ "<p style='font-size:" + this.noteFontSize + "'>"
+ this.youAreManagerOfTheCommunity(communityId, communityName)
+ "<br>"
+ this.manageNotificationSettings(communityId)
+ "</p>"
+ "</div>";
email.recipients = managers;
return email;
}
}