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') {
|
||||
// list emails from folder
|
||||
emailDao.sendEmail(args.email, function(err) {
|
||||
emailDao.smtpSend(args.email, function(err) {
|
||||
callback({
|
||||
err: err
|
||||
});
|
||||
|
@ -102,7 +102,7 @@ define(['jquery', 'underscore', 'backbone', 'js/app-config'], function($, _, Bac
|
||||
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 = {
|
||||
to: [],
|
||||
@ -110,10 +110,9 @@ define(['jquery', 'underscore', 'backbone', 'js/app-config'], function($, _, Bac
|
||||
body: page.find('#bodyTextarea').val() + signature
|
||||
};
|
||||
email.from = [{
|
||||
name: '',
|
||||
address: self.account
|
||||
}
|
||||
];
|
||||
name: '',
|
||||
address: self.account
|
||||
}];
|
||||
to.forEach(function(address) {
|
||||
email.to.push({
|
||||
name: '',
|
||||
|
Loading…
Reference in New Issue
Block a user