mirror of
https://github.com/moparisthebest/mail
synced 2025-02-17 23:40:22 -05:00
removed email model code from send email
This commit is contained in:
parent
c9522fcb5e
commit
9842a060ad
@ -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;
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user