send email in app works

This commit is contained in:
Tankred Hase 2013-08-20 13:45:56 +02:00
parent 79df873d55
commit 39c0215657
2 changed files with 5 additions and 6 deletions

View File

@ -73,7 +73,7 @@ define(['jquery', 'ImapClient', 'SmtpClient', 'js/dao/email-dao', 'js/dao/keycha
} else if (cmd === 'sendEmail') {
// list emails from folder
emailDao.sendEmail(args.email, function(err) {
emailDao.smtpSend(args.email, function(err) {
callback({
err: err
});

View File

@ -102,7 +102,7 @@ define(['jquery', 'underscore', 'backbone', 'js/app-config'], function($, _, Bac
return;
}
var signature = '\n\nSent with whiteout mail - get your free mailbox for end-2-end encrypted messaging!\nhttps://www.whiteout.io';
var signature = '\n\nSent with whiteout mail - install the app today for easy end-2-end encrypted messaging!\nhttp://whiteout.io';
var email = {
to: [],
@ -110,10 +110,9 @@ define(['jquery', 'underscore', 'backbone', 'js/app-config'], function($, _, Bac
body: page.find('#bodyTextarea').val() + signature
};
email.from = [{
name: '',
address: self.account
}
];
name: '',
address: self.account
}];
to.forEach(function(address) {
email.to.push({
name: '',