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() + "]";