diff --git a/lib/postageapp.js b/lib/postageapp.js index 81bb0e7..2ab14d1 100755 --- a/lib/postageapp.js +++ b/lib/postageapp.js @@ -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; @@ -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 } };