summaryrefslogtreecommitdiff
path: root/source/sendemail.js
diff options
context:
space:
mode:
Diffstat (limited to 'source/sendemail.js')
-rw-r--r--source/sendemail.js2
1 files changed, 1 insertions, 1 deletions
diff --git a/source/sendemail.js b/source/sendemail.js
index e9c91b7..bcb6b7c 100644
--- a/source/sendemail.js
+++ b/source/sendemail.js
@@ -29,7 +29,7 @@ class SendEmail {
html: x.message
}
- this.transporter.sendMail(options, (err, info) => {if (err) {logger.Error(err)} else {logger.Info('Sent Email')}})
+ this.transporter.sendMail(options, (err, info) => {err ? logger.Error(`SMTP Error: ${err.message}`) : logger.Info('SUCCESS: Email Sent')})
}
#TLS(x) {if (x === 'true') {return true} else {return false}}