|  | @ -197,9 +197,9 @@ class Notification { | 
			
		
	
		
		
			
				
					|  |  |             try { |  |  |             try { | 
			
		
	
		
		
			
				
					|  |  |                 let config = { |  |  |                 let config = { | 
			
		
	
		
		
			
				
					|  |  |                     headers: { |  |  |                     headers: { | 
			
		
	
		
		
			
				
					
					|  |  |                         'api-key': notification.octopushAPIKey, |  |  |                         "api-key": notification.octopushAPIKey, | 
			
				
				
			
		
	
		
		
			
				
					
					|  |  |                         'api-login': notification.octopushLogin, |  |  |                         "api-login": notification.octopushLogin, | 
			
				
				
			
		
	
		
		
			
				
					
					|  |  |                         'cache-control': 'no-cache' |  |  |                         "cache-control": "no-cache" | 
			
				
				
			
		
	
		
		
	
		
		
	
		
		
	
		
		
			
				
					|  |  |                     } |  |  |                     } | 
			
		
	
		
		
			
				
					|  |  |                 }; |  |  |                 }; | 
			
		
	
		
		
			
				
					|  |  |                 let data = { |  |  |                 let data = { | 
			
		
	
	
		
		
			
				
					|  | @ -215,7 +215,7 @@ class Notification { | 
			
		
	
		
		
			
				
					|  |  |                     "sender": notification.octopushSenderName |  |  |                     "sender": notification.octopushSenderName | 
			
		
	
		
		
			
				
					|  |  |                 }; |  |  |                 }; | 
			
		
	
		
		
			
				
					|  |  | 
 |  |  | 
 | 
			
		
	
		
		
			
				
					
					|  |  |                 await axios.post(`https://api.octopush.com/v1/public/sms-campaign/send`, data, config) |  |  |                 await axios.post("https://api.octopush.com/v1/public/sms-campaign/send", data, config) | 
			
				
				
			
		
	
		
		
	
		
		
			
				
					|  |  |                 return true; |  |  |                 return true; | 
			
		
	
		
		
			
				
					|  |  |             } catch (error) { |  |  |             } catch (error) { | 
			
		
	
		
		
			
				
					|  |  |                 console.log(error) |  |  |                 console.log(error) | 
			
		
	
	
		
		
			
				
					|  | @ -356,11 +356,11 @@ class Notification { | 
			
		
	
		
		
			
				
					|  |  | 
 |  |  | 
 | 
			
		
	
		
		
			
				
					|  |  |         } else if (notification.type === "pushbullet") { |  |  |         } else if (notification.type === "pushbullet") { | 
			
		
	
		
		
			
				
					|  |  |             try { |  |  |             try { | 
			
		
	
		
		
			
				
					
					|  |  |                 let pushbulletUrl = `https://api.pushbullet.com/v2/pushes`; |  |  |                 let pushbulletUrl = "https://api.pushbullet.com/v2/pushes"; | 
			
				
				
			
		
	
		
		
	
		
		
			
				
					|  |  |                 let config = { |  |  |                 let config = { | 
			
		
	
		
		
			
				
					|  |  |                     headers: { |  |  |                     headers: { | 
			
		
	
		
		
			
				
					
					|  |  |                         'Access-Token': notification.pushbulletAccessToken, |  |  |                         "Access-Token": notification.pushbulletAccessToken, | 
			
				
				
			
		
	
		
		
			
				
					
					|  |  |                         'Content-Type': 'application/json' |  |  |                         "Content-Type": "application/json" | 
			
				
				
			
		
	
		
		
	
		
		
	
		
		
			
				
					|  |  |                     } |  |  |                     } | 
			
		
	
		
		
			
				
					|  |  |                 }; |  |  |                 }; | 
			
		
	
		
		
			
				
					|  |  |                 if (heartbeatJSON == null) { |  |  |                 if (heartbeatJSON == null) { | 
			
		
	
	
		
		
			
				
					|  | @ -432,15 +432,21 @@ class Notification { | 
			
		
	
		
		
			
				
					|  |  | 
 |  |  | 
 | 
			
		
	
		
		
			
				
					|  |  |     static async smtp(notification, msg) { |  |  |     static async smtp(notification, msg) { | 
			
		
	
		
		
			
				
					|  |  | 
 |  |  | 
 | 
			
		
	
		
		
			
				
					
					|  |  |         let transporter = nodemailer.createTransport({ |  |  |         const config = { | 
			
				
				
			
		
	
		
		
	
		
		
			
				
					|  |  |             host: notification.smtpHost, |  |  |             host: notification.smtpHost, | 
			
		
	
		
		
			
				
					|  |  |             port: notification.smtpPort, |  |  |             port: notification.smtpPort, | 
			
		
	
		
		
			
				
					|  |  |             secure: notification.smtpSecure, |  |  |             secure: notification.smtpSecure, | 
			
		
	
		
		
			
				
					
					|  |  |             auth: { |  |  |         }; | 
			
				
				
			
		
	
		
		
	
		
		
			
				
					|  |  |  |  |  | 
 | 
			
		
	
		
		
			
				
					|  |  |  |  |  |         // Should fix the issue in https://github.com/louislam/uptime-kuma/issues/26#issuecomment-896373904
 | 
			
		
	
		
		
			
				
					|  |  |  |  |  |         if (notification.smtpUsername || notification.smtpPassword) { | 
			
		
	
		
		
			
				
					|  |  |  |  |  |             config.auth = { | 
			
		
	
		
		
			
				
					|  |  |                 user: notification.smtpUsername, |  |  |                 user: notification.smtpUsername, | 
			
		
	
		
		
			
				
					|  |  |                 pass: notification.smtpPassword, |  |  |                 pass: notification.smtpPassword, | 
			
		
	
		
		
			
				
					
					|  |  |             }, |  |  |             }; | 
			
				
				
			
		
	
		
		
			
				
					
					|  |  |         }); |  |  |         } | 
			
				
				
			
		
	
		
		
	
		
		
	
		
		
			
				
					|  |  |  |  |  | 
 | 
			
		
	
		
		
			
				
					|  |  |  |  |  |         let transporter = nodemailer.createTransport(config); | 
			
		
	
		
		
			
				
					|  |  | 
 |  |  | 
 | 
			
		
	
		
		
			
				
					|  |  |         // send mail with defined transport object
 |  |  |         // send mail with defined transport object
 | 
			
		
	
		
		
			
				
					|  |  |         await transporter.sendMail({ |  |  |         await transporter.sendMail({ | 
			
		
	
	
		
		
			
				
					|  | 
 |