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