create new function for composing email for explore (contact-us page)
This commit is contained in:
parent
ac25e160fe
commit
7da81d02b5
|
@ -77,7 +77,22 @@ export class Composer {
|
||||||
email.recipients = admins;
|
email.recipients = admins;
|
||||||
return email;
|
return email;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
public static composeEmailForExplore(contactForm: any, admins: any): Email {
|
||||||
|
let email: Email = new Email();
|
||||||
|
|
||||||
|
email.subject = "OpenAIRE - Explore [" + properties.environment.toUpperCase() + "]";
|
||||||
|
email.body = "<div style='font-size:" + this.noteBodySize + "'>"
|
||||||
|
+ "<span><b>Name</b>: " + contactForm.name + "</span><br>"
|
||||||
|
+ "<span><b>Surname</b>: " + contactForm.surname + "</span><br>"
|
||||||
|
+ "<span><b>Email</b>: " + contactForm.email + "</span><br>"
|
||||||
|
+ "<span><b>Affiliation</b>: " + contactForm.affiliation ? contactForm.affiliation : '-' + "</span><br>"
|
||||||
|
+ "<p>" + contactForm.message + "</p>"
|
||||||
|
+ "</div>";
|
||||||
|
email.recipients = admins;
|
||||||
|
return email;
|
||||||
|
}
|
||||||
|
|
||||||
public static composeEmailForUsageCounts(contactForm: any, admins: any): Email {
|
public static composeEmailForUsageCounts(contactForm: any, admins: any): Email {
|
||||||
let email: Email = new Email();
|
let email: Email = new Email();
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue