[Trunk|Library]: 1. Add new method for send and email for new community. 2. Add two properties reCaptchaSiteKey and admins list(for contact)

git-svn-id: https://svn.driver.research-infrastructures.eu/driver/dnet40/modules/uoa-services-library/trunk/ng-openaire-library/src/app@55268 d315682c-612b-4755-9ff5-7f18f6832af3
This commit is contained in:
k.triantafyllou 2019-04-10 18:55:17 +00:00
parent 36f169572d
commit 0668d1dcc3
2 changed files with 19 additions and 0 deletions

View File

@ -1,5 +1,6 @@
import {Email} from "./email";
import {Body} from "./body";
import {ContactForm} from "../../../contact/contact-form";
export class Composer {
private static noteBodySize = "14px";
@ -48,6 +49,18 @@ export class Composer {
return email;
}
public static composeEmailForNewCommunity(contactForm: ContactForm, admins: any): Email {
let email: Email = new Email();
email.subject = this.subjectPrefix + contactForm.community + ": Welcome new community";
email.body = "<div style='font-size:" + this.noteBodySize + "'><p>Welcome to OpenAIRE Connect!</p>"
+ "<p>You are receiving this e-mail as test"
email.recipients = admins;
console.log(email)
return email;
}
public static composeEmailToInformOldManagersForTheNewOnes(communityName: string, communityId: string, firstVersionOfManagers: any, managers: any) : Email {
let email: Email = new Email();

View File

@ -141,4 +141,10 @@ export class EnvProperties {
claimsInformationLink;
shareInZenodoPage;
// recaptcha site key
reCaptchaSiteKey;
// contact us recipients
admins;
}