diff --git a/public/views/preferencesLogs.html b/public/views/preferencesLogs.html
index 293082cbf..f5bcd7f0f 100644
--- a/public/views/preferencesLogs.html
+++ b/public/views/preferencesLogs.html
@@ -1,4 +1,10 @@
+
+
+
-
diff --git a/src/js/controllers/preferencesLogs.js b/src/js/controllers/preferencesLogs.js
index 43a38b7b4..15ff13159 100644
--- a/src/js/controllers/preferencesLogs.js
+++ b/src/js/controllers/preferencesLogs.js
@@ -1,7 +1,22 @@
'use strict';
angular.module('copayApp.controllers').controller('preferencesLogs',
- function(historicLog) {
- this.logs = historicLog.get();
-console.log('[preferencesLogs.js.5:historicLog:]',this.logs); //TODO
- });
+function(historicLog, isCordova) {
+ this.logs = historicLog.get();
+ this.isCordova = isCordova;
+
+ this.sendLogs = function() {
+ var body = 'Copay Session Logs\n Be careful, this could contain sensitive private data\n\n Copay v' + window.version + ' #' + window.commitHash;
+ body += '\n\n'
+ body += this.logs.map(function(v) {
+ return v.msg;
+ }).join('\n');
+
+ var properties = {
+ subject: 'Copay Logs',
+ body: body,
+ isHtml: false
+ };
+ window.plugin.email.open(properties);
+ };
+});