observe-to-email

git clone git://git.codymlewis.com/observe-to-email.git
Log | Files | Refs | README

commit be238e145f135ab53a58dcb358d259d74d15c242
parent a4d8fdead37428b221446441b4a8051faf5be9a6
Author: Cody Lewis <luxdotsugi@gmail.com>
Date:   Sat,  8 Sep 2018 21:49:31 +1000

Added verbosity

Diffstat:
Mroutes/index.js | 3++-
1 file changed, 2 insertions(+), 1 deletion(-)

diff --git a/routes/index.js b/routes/index.js @@ -14,8 +14,8 @@ router.post('/observe', function(req, res, next) { var nodemailer = require('nodemailer'); var form = new formidable.IncomingForm(); form.parse(req, function (err, fields, files) { - console.log("Parsing form"); var today = new Date(); + console.log("Started creating message"); msg = '\\subsubsection{Test from ' + today.toDateString() + '}\n' + '\\begin{center}\n\\begin{tabular}{| c | c |}\n\\hline\n' + '\ninterface type & ' + fields.interface + @@ -38,6 +38,7 @@ router.post('/observe', function(req, res, next) { subject: 'HLA9000 - Observations: ' + today.toDateString(), text: msg }; + console.log("Sending mail"); transporter.sendMail(mailOptions, function(error, info){ if (error) { console.log(error);