Permalink
Browse files

Added support for attachments in sendMessage

  • Loading branch information...
1 parent fb02d65 commit 36959bb848c016a40c5c3556f31853f2fe6c0d1c skendall committed Feb 20, 2012
Showing with 2 additions and 4 deletions.
  1. +2 −4 lib/postageapp.js
View
@@ -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
}
};

0 comments on commit 36959bb

Please sign in to comment.