1
0
mirror of https://github.com/moparisthebest/mail synced 2024-08-13 16:43:47 -04: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 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, from: self.account,
to: to, to: to,
subject: page.find('#subjectInput').val(), subject: page.find('#subjectInput').val(),
body: page.find('#bodyTextarea').val() + signature body: page.find('#bodyTextarea').val() + signature
}); };
// post message to main window // post message to main window
app.util.postMessage('sendEmail', { app.util.postMessage('sendEmail', {
email: email.toJSON() email: email
}, function(resArgs) { }, function(resArgs) {
var err = resArgs.err; var err = resArgs.err;