mirror of
				https://github.com/nttgin/BGPalerter.git
				synced 2024-05-19 06:50:08 +00:00 
			
		
		
		
	
		
			
	
	
		
			17 lines
		
	
	
		
			356 B
		
	
	
	
		
			JavaScript
		
	
	
	
	
	
		
		
			
		
	
	
			17 lines
		
	
	
		
			356 B
		
	
	
	
		
			JavaScript
		
	
	
	
	
	
|  | import Report from "./report"; | ||
|  | import nodemailer from "nodemailer"; | ||
|  | 
 | ||
|  | export default class ReportEmail extends Report { | ||
|  | 
 | ||
|  |     constructor(channels, env) { | ||
|  |         super(channels, env); | ||
|  |     } | ||
|  | 
 | ||
|  |     report = (message, content) => { | ||
|  | 
 | ||
|  |         this.logger.log({ | ||
|  |             level: 'verbose', | ||
|  |             message: content.message | ||
|  |         }); | ||
|  |     } | ||
|  | } |