Skip to content

Commit

Permalink
Merge pull request #108 from SparkPost/transmission-doc-fix
Browse files Browse the repository at this point in the history
removes from and subject from transmission stored template send example
  • Loading branch information
aydrian committed Mar 14, 2016
2 parents d6eaa2a + d8e834f commit 84fc010
Showing 1 changed file with 6 additions and 6 deletions.
12 changes: 6 additions & 6 deletions examples/transmissions/stored_template_send.js
Original file line number Diff line number Diff line change
Expand Up @@ -6,12 +6,12 @@ var key = 'YOURAPIKEY'

var reqOpts = {
transmissionBody: {
recipients: [{ address: { email: '[email protected]' } }],
campaignId: 'ricks-campaign',
content: {
template_id: 'my-template',
from: 'From Envelope <[email protected]>',
subject: 'Example Email for Stored Template'
}
template_id: 'ricks-template'
},
'num_rcpt_errors': 3,
recipients: [{ address: { email: '[email protected]', name: 'Rick Sanchez' } }]
}
};

Expand All @@ -20,6 +20,6 @@ client.transmissions.send(reqOpts, function(err, res) {
console.log(err);
} else {
console.log(res.body);
console.log('Congrats you can use our SDK!');
console.log('What up my glib globs! SparkPost!');
}
});

0 comments on commit 84fc010

Please sign in to comment.