mirror of
https://github.com/moparisthebest/mail
synced 2024-12-22 23:38:48 -05:00
send email in app works
This commit is contained in:
parent
79df873d55
commit
39c0215657
@ -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
|
||||||
});
|
});
|
||||||
|
@ -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: '',
|
||||||
|
Loading…
Reference in New Issue
Block a user