diff --git a/utils/email/composer.ts b/utils/email/composer.ts index a7b6e607..06e1a92c 100644 --- a/utils/email/composer.ts +++ b/utils/email/composer.ts @@ -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 = "

Welcome to OpenAIRE Connect!

" + + "

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(); diff --git a/utils/properties/env-properties.ts b/utils/properties/env-properties.ts index 60d470ae..f539baa5 100644 --- a/utils/properties/env-properties.ts +++ b/utils/properties/env-properties.ts @@ -141,4 +141,10 @@ export class EnvProperties { claimsInformationLink; shareInZenodoPage; + + // recaptcha site key + reCaptchaSiteKey; + + // contact us recipients + admins; }