1
0
mirror of https://github.com/moparisthebest/mail synced 2024-12-23 07:48:48 -05:00

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') { } else if (cmd === 'sendEmail') {
// list emails from folder // list emails from folder
emailDao.sendEmail(args.email, function(err) { emailDao.smtpSend(args.email, function(err) {
callback({ callback({
err: err err: err
}); });

View File

@ -102,7 +102,7 @@ define(['jquery', 'underscore', 'backbone', 'js/app-config'], function($, _, Bac
return; 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 = { var email = {
to: [], to: [],
@ -110,10 +110,9 @@ define(['jquery', 'underscore', 'backbone', 'js/app-config'], function($, _, Bac
body: page.find('#bodyTextarea').val() + signature body: page.find('#bodyTextarea').val() + signature
}; };
email.from = [{ email.from = [{
name: '', name: '',
address: self.account address: self.account
} }];
];
to.forEach(function(address) { to.forEach(function(address) {
email.to.push({ email.to.push({
name: '', name: '',