Skip to content
This repository

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP
Browse code

Merge pull request #3 from stefankendall/attachments

Added support for attachments in sendMessage
  • Loading branch information...
commit 2fc1282ff6e8e646d8a73a0cdda587ba6000c1eb 2 parents 16c3eca + 36959bb
Jon Lim authored February 20, 2012

Showing 1 changed file with 2 additions and 4 deletions. Show diff stats Hide diff stats

  1. 6  lib/postageapp.js
6  lib/postageapp.js
@@ -19,6 +19,7 @@ module.exports = function(apiKey) {
19 19
             var subject = options.subject;
20 20
             var from = options.from;
21 21
 
  22
+            var attachments = options.attachments ? options.attachments : {};
22 23
             var content = options.content;
23 24
 
24 25
             var template = options.template;
@@ -40,16 +41,13 @@ module.exports = function(apiKey) {
40 41
                 uid: epochDate,
41 42
                 arguments: {
42 43
                     recipients: recipients,
43  
-
44 44
                     headers: {
45 45
                         subject: subject,
46 46
                         from: from
47 47
                     },
48  
-
49 48
                     content: content,
50  
-
  49
+                    attachments: attachments,
51 50
                     template: template,
52  
-
53 51
                     variables: variables
54 52
                 }
55 53
             };

0 notes on commit 2fc1282

Please sign in to comment.
Something went wrong with that request. Please try again.