From 36959bb848c016a40c5c3556f31853f2fe6c0d1c Mon Sep 17 00:00:00 2001 From: skendall Date: Mon, 20 Feb 2012 12:58:58 -0500 Subject: [PATCH] Added support for attachments in sendMessage --- lib/postageapp.js | 6 ++---- 1 file changed, 2 insertions(+), 4 deletions(-) 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 } };