Permalink
Browse files

Merge pull request #3 from stefankendall/attachments

Added support for attachments in sendMessage
  • Loading branch information...
2 parents 16c3eca + 36959bb commit 2fc1282ff6e8e646d8a73a0cdda587ba6000c1eb @JonLim JonLim committed Feb 20, 2012
Showing with 2 additions and 4 deletions.
  1. +2 −4 lib/postageapp.js
View
6 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
}
};

0 comments on commit 2fc1282

Please sign in to comment.