mirror of
https://github.com/KevinMidboe/ISPDowntimeMonitor.git
synced 2025-10-29 09:40:12 +00:00
Refined email html content & text.
This commit is contained in:
11
src/mail.js
11
src/mail.js
@@ -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
|
||||
}]
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user