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:
		
							
								
								
									
										11
									
								
								src/mail.js
									
									
									
									
									
								
							
							
						
						
									
										11
									
								
								src/mail.js
									
									
									
									
									
								
							| @@ -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 | ||||||
|       }] |       }] | ||||||
|     } |     } | ||||||
|  |  | ||||||
|   | |||||||
		Reference in New Issue
	
	Block a user