Skip to content

Commit

Permalink
Merge pull request #3 from stefankendall/attachments
Browse files Browse the repository at this point in the history
Added support for attachments in sendMessage
  • Loading branch information
Jon Lim committed Feb 20, 2012
2 parents 16c3eca + 36959bb commit 2fc1282
Showing 1 changed file with 2 additions and 4 deletions.
6 changes: 2 additions & 4 deletions lib/postageapp.js
Expand Up @@ -19,6 +19,7 @@ module.exports = function(apiKey) {
var subject = options.subject;
var from = options.from;

var attachments = options.attachments ? options.attachments : {};
var content = options.content;

var template = options.template;
Expand All @@ -40,16 +41,13 @@ module.exports = function(apiKey) {
uid: epochDate,
arguments: {
recipients: recipients,

headers: {
subject: subject,
from: from
},

content: content,

attachments: attachments,
template: template,

variables: variables
}
};
Expand Down

0 comments on commit 2fc1282

Please sign in to comment.