Browse Source

update config

activeAddress
Ivan Socolsky 10 years ago
parent
commit
910a1c8ddc
  1. 16
      config.js
  2. 8
      lib/server.js

16
config.js

@ -40,14 +40,12 @@ var config = {
},
},
// To use email notifications uncomment this:
// email: {
// auth: {
// host: 'localhost',
// port: 25,
// ignoreTLS: true,
// },
// subjectPrefix: '[Wallet Service]',
// from: 'wallet-service@bitcore.io',
// },
email: {
host: 'localhost',
port: 25,
ignoreTLS: true,
subjectPrefix: '[Wallet Service]',
from: 'wallet-service@bitcore.io',
},
};
module.exports = config;

8
lib/server.js

@ -357,9 +357,11 @@ WalletService.prototype._notify = function(type, data, opts, cb) {
this.storage.storeNotification(walletId, notification, function() {
self.messageBroker.send(notification);
self.emailService.sendEmail(notification, function() {
if (cb) return cb();
});
if (self.emailService) {
self.emailService.sendEmail(notification, function() {
if (cb) return cb();
});
}
});
};

Loading…
Cancel
Save