diff --git a/contact-us/contact-us.component.html b/contact-us/contact-us.component.html index d0d1ec0c..6ee00c98 100644 --- a/contact-us/contact-us.component.html +++ b/contact-us/contact-us.component.html @@ -44,9 +44,16 @@
Stakeholder Name*
- +
+
+
Subject*
+
+ +
Message * diff --git a/utils/email/composer.ts b/utils/email/composer.ts index 28e4aa04..8ae0ed73 100644 --- a/utils/email/composer.ts +++ b/utils/email/composer.ts @@ -51,8 +51,8 @@ export class Composer { public static composeEmailForNewCommunity(contactForm: any, admins: any): Email { let email: Email = new Email(); - - email.subject = "RCD: Request for new community"; + + email.subject = "OpenAIRE Connect | " + contactForm.subject; email.body = "
" + "Name: " + contactForm.name + "
" + "Surname: " + contactForm.surname + "
" @@ -65,6 +65,22 @@ export class Composer { return email; } + public static composeEmailForNewStakeholder(contactForm: any, admins: any): Email { + let email: Email = new Email(); + + email.subject = "OpenAIRE Monitor | " + contactForm.subject; + email.body = "
" + + "Name: " + contactForm.name + "
" + + "Surname: " + contactForm.surname + "
" + + "Email: " + contactForm.email + "
" + + "Affiliation: " + contactForm.affiliation + "
" + + "Stakeholder Name: " + contactForm.stakeholder + "" + + "

" + contactForm.message + "

" + + "
"; + email.recipients = admins; + return email; + } + public static composeEmailForFeedback(info: {name: string, url: string, email: string, issues: any[]}, recipients: string[]): Email { let email: Email = new Email(); email.subject = 'Feedback report for ' + info.name;