[angular-16-irish-monitor] add new composer for irish monitor

This commit is contained in:
Alex Martzios 2024-01-04 13:19:24 +02:00
parent 21f49bbc6c
commit 5d7e72eb3d
1 changed files with 14 additions and 0 deletions

View File

@ -94,6 +94,20 @@ export class Composer {
return email;
}
public static composeEmailforIrishMonitor(contactForm: any, admins: any): Email {
let email: Email = new Email();
email.subject = "National OA Monitor Ireland | " + contactForm.subject;
email.body = "<div style='font-size:" + this.noteBodySize + "'>"
+ "<span><b>Name</b>: " + contactForm.name + "</span><br>"
+ "<span><b>Email</b>: " + contactForm.email + "</span><br>"
+ "<span><b>Subject</b>: " + contactForm.subject + "</span><br>"
+ "<p>" + contactForm.message + "</p>"
+ "</div>";
email.recipients = admins;
return email;
}
public static composeEmailForDevelop(contactForm: any, admins: any, user: User): Email {
let email: Email = new Email();
email.subject = "OpenAIRE - Develop [" + properties.environment.toUpperCase() + "]";