summaryrefslogtreecommitdiff
path: root/source/sendemail.js
diff options
context:
space:
mode:
Diffstat (limited to 'source/sendemail.js')
-rw-r--r--source/sendemail.js4
1 files changed, 2 insertions, 2 deletions
diff --git a/source/sendemail.js b/source/sendemail.js
index 7926165..ae4e695 100644
--- a/source/sendemail.js
+++ b/source/sendemail.js
@@ -23,10 +23,10 @@ class SendEmail {
Send(x) {
const options = {
- from: 'site@' + process.env.domain,
+ from: x.from,
to: process.env.email,
subject: x.subject,
- html: ''
+ html: x.message
}
this.transporter.sendMail(options, (err, info) => {if (err) {logger.Error(err)} else {logger.Info('Sent Email')}})