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