Integrate HTML template as a mail part in XSJS
I'm currently having the following issue:
An XSJS service I build should create and send a mail which is fortunately possible with the $.net.Mail class. Everything's working fine so far, except for the content of the mail. Due to the fact that I don't want a plain text inside the mail, but an HTML template which is filled with necessary data before being added as a mail part, I somehow need to import an HTML file inside my service.
Unfortunately, it's not possible for me to just load the file with a jQuery call, access the file system of the server or any other idea I came up with so far. Maybe it's even simple, I just can't figure it out right now. Btw: The service is consumed by an UI5 application.
The question is: Is it possible to load the HTML file as a string inside my XSJS service? If yes, how do I do that?
Thanks in advance