Skip to content

Commit

Permalink
change example
Browse files Browse the repository at this point in the history
  • Loading branch information
helloyou2012 committed Aug 23, 2016
1 parent 774df2c commit ee1576f
Showing 1 changed file with 15 additions and 15 deletions.
30 changes: 15 additions & 15 deletions examples/example2.js
Original file line number Diff line number Diff line change
Expand Up @@ -8,21 +8,21 @@ const app = App({
debug: true,
isTOTP: false,
mail: {
from: 'admin@example.com',
name: 'minimal',
version: '0.1.0',
send: function(mail, callback) {
let input = mail.message.createReadStream();
let chunks = [];
input.on('data', function(chunk) {
chunks.push(chunk);
});
input.on('end', function() {
let data = Buffer.concat(chunks).toString();
console.log(data);
callback(null, true);
});
}
from: 'admin@example.com',
name: 'minimal',
version: '0.1.0',
send: function(mail, callback) {
let input = mail.message.createReadStream();
let chunks = [];
input.on('data', function(chunk) {
chunks.push(chunk);
});
input.on('end', function() {
let data = Buffer.concat(chunks).toString();
console.log(data);
callback(null, true);
});
}
}
});

Expand Down

0 comments on commit ee1576f

Please sign in to comment.