[Ang16 | WIP] add new email composer for Develop project

This commit is contained in:
Alex Martzios 2023-10-23 12:40:55 +03:00
parent f6e927f4c2
commit b69e19fa17
1 changed files with 12 additions and 0 deletions

View File

@ -93,6 +93,18 @@ export class Composer {
return email;
}
public static composeEmailForDevelop(contactForm: any, admins: any): Email {
let email: Email = new Email();
email.subject = "OpenAIRE - Develop [" + properties.environment.toUpperCase() + "]";
email.body = "<div style='font-size:" + this.noteBodySize + "'>"
+ "<span><b>Subject</b>: " + (contactForm.subject ? contactForm.subject : '-') + "</span><br>"
+ "<p>" + contactForm.message + "</p>"
+ "</div>";
email.recipients = admins;
return email;
}
public static composeEmailForUsageCounts(contactForm: any, admins: any): Email {
let email: Email = new Email();