1
0
mirror of https://github.com/moparisthebest/mail synced 2024-11-25 18:32:20 -05:00

removed email model code from send email

This commit is contained in:
Tankred Hase 2013-06-06 21:44:54 +02:00
parent c9522fcb5e
commit 9842a060ad

View File

@ -104,16 +104,16 @@
var signature = '\n\nSent with whiteout mail - get your free mailbox for end-2-end encrypted messaging!\nhttps://mail.whiteout.io';
var email = new app.model.Email({
var email = {
from: self.account,
to: to,
subject: page.find('#subjectInput').val(),
body: page.find('#bodyTextarea').val() + signature
});
};
// post message to main window
app.util.postMessage('sendEmail', {
email: email.toJSON()
email: email
}, function(resArgs) {
var err = resArgs.err;