From 4f2b2ccecd27fed959a41fb28991f54c1c67540d Mon Sep 17 00:00:00 2001 From: Matias Alejo Garcia Date: Thu, 30 Oct 2014 23:30:46 -0300 Subject: [PATCH 1/3] fix log message --- plugins/emailstore.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/plugins/emailstore.js b/plugins/emailstore.js index d0e32821..9aaea3b4 100644 --- a/plugins/emailstore.js +++ b/plugins/emailstore.js @@ -170,7 +170,7 @@ emailPlugin.sendVerificationEmail = function (email, secret) { if (err) { logger.error('An error occurred when trying to send email to ' + email, err); } else { - logger.error('Message sent: ' + info.response); + logger.error('Message sent: ', info); } }); }); From 25a96b61fe2af070b365250cc25326fdd398ec04 Mon Sep 17 00:00:00 2001 From: Matias Alejo Garcia Date: Thu, 30 Oct 2014 23:33:21 -0300 Subject: [PATCH 2/3] chagne email --- plugins/emailstore.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/plugins/emailstore.js b/plugins/emailstore.js index 9aaea3b4..00677ff7 100644 --- a/plugins/emailstore.js +++ b/plugins/emailstore.js @@ -158,7 +158,7 @@ emailPlugin.sendVerificationEmail = function (email, secret) { var emailBody = results[0]; var emailBodyHTML = results[1]; var mailOptions = { - from: 'Insight Services ', + from: 'Insight Services ', to: email, subject: '[Copay] Your wallet backup needs confirmation', text: emailBody, From e2baced10498d472e9a196affc52ca3f2c0a26e6 Mon Sep 17 00:00:00 2001 From: Matias Alejo Garcia Date: Thu, 30 Oct 2014 23:35:23 -0300 Subject: [PATCH 3/3] add log --- plugins/emailstore.js | 2 ++ 1 file changed, 2 insertions(+) diff --git a/plugins/emailstore.js b/plugins/emailstore.js index 00677ff7..471d07c3 100644 --- a/plugins/emailstore.js +++ b/plugins/emailstore.js @@ -165,6 +165,8 @@ emailPlugin.sendVerificationEmail = function (email, secret) { html: emailBodyHTML }; + console.log('Sending email to:', email); //TODO + // send mail with defined transport object emailPlugin.email.sendMail(mailOptions, function (err, info) { if (err) {