[angular-16-irish-monitor] add new composer for irish monitor
This commit is contained in:
parent
21f49bbc6c
commit
5d7e72eb3d
|
@ -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() + "]";
|
||||
|
|
Loading…
Reference in New Issue