Refined email html content & text.

This commit is contained in:
2020-06-08 22:24:05 +02:00
committed by KevinMidboe
parent 7cca05cbe7
commit 33d45c8e22

View File

@@ -21,15 +21,14 @@ class Mail {
sendMail = message => this.transporter.sendMail(message);
sendAttachment = fileRef => {
sendAttachment = (fileRef, bodyText) => {
const message = {
from: `"Fred Foo 👻" <${this.sender}>`,
from: `"ISPDowntimeMonitor" <${this.sender}>`,
to: this.recipient,
subject: 'Telenor nedetid',
text: "hello wordl",
html: "<p>hello wordl</p>",
subject: 'Nedetid på ditt nett!',
html: `<b>Melding fra telenor:</b><br/><span>${bodyText}</span>`,
attachments: [{
path: fileRef
path: fileRef
}]
}