small fixes in email

This commit is contained in:
Matias Alejo Garcia 2014-10-31 00:01:39 -03:00
parent e2baced104
commit c959753780

View File

@ -158,7 +158,7 @@ emailPlugin.sendVerificationEmail = function (email, secret) {
var emailBody = results[0]; var emailBody = results[0];
var emailBodyHTML = results[1]; var emailBodyHTML = results[1];
var mailOptions = { var mailOptions = {
from: 'Insight Services <wallet@copay.io>', from: 'copay@copay.io',
to: email, to: email,
subject: '[Copay] Your wallet backup needs confirmation', subject: '[Copay] Your wallet backup needs confirmation',
text: emailBody, text: emailBody,
@ -172,7 +172,7 @@ emailPlugin.sendVerificationEmail = function (email, secret) {
if (err) { if (err) {
logger.error('An error occurred when trying to send email to ' + email, err); logger.error('An error occurred when trying to send email to ' + email, err);
} else { } else {
logger.error('Message sent: ', info); logger.info('Message sent: ', info ? info : '');
} }
}); });
}); });