From b41357c4b84b986277b839ff041ae215d380f90f Mon Sep 17 00:00:00 2001 From: "k.triantafyllou" Date: Tue, 30 Apr 2024 17:09:16 +0300 Subject: [PATCH] [develop]: Add compose mail for develop personal-info --- utils/email/composer.ts | 14 ++++++++++++++ 1 file changed, 14 insertions(+) diff --git a/utils/email/composer.ts b/utils/email/composer.ts index ab3c69f0..21799076 100644 --- a/utils/email/composer.ts +++ b/utils/email/composer.ts @@ -108,6 +108,20 @@ export class Composer { return email; } + public static composeEmailForDevelopPersonalInfo(user: User): Email { + let email: Email = new Email(); + email.subject = "Welcome to The OpenAIRE API mailing list"; + email.body = "
" + + "

Dear " + user.fullname + ",

" + + "

As a user of the OpenAIRE APIs, you are a member of the openaire-api mailing list. " + + " We will use this list to inform you of relevant news and updates. If you wish to unsubscribe, " + + " please send an email to the list admin at gbikas@openaire.eu " + + " and stefania.amodeo@openaire.eu.

" + + "

The OpenAIRE Graph team

"; + email.recipients = [user.email]; + return email; + } + public static composeEmailForDevelop(contactForm: any, admins: any, user: User): Email { let email: Email = new Email(); email.subject = "OpenAIRE - Develop [" + properties.environment.toUpperCase() + "]";