diff --git a/README.md b/README.md index d530abc..7de1974 100644 --- a/README.md +++ b/README.md @@ -58,8 +58,8 @@ sparkpost.transmission.send(trans, function(err, res) { | campaign | no | Field for assigning a given transmission to a specific campaign, which is a logical container for similar transmissions | String | | metadata | no | Field for adding arbitrary key/value pairs which will be included in open/click tracking | Object (Simple) | | substitutionData | no | Field for adding transmission level substitution data, which can be used in a variety of fields and in content | Object (Complex) | -| trackOpens | no | Field for enabling/disabling transmission level open tracking (default: true) | Boolean | -| trackClicks | no | Field for enabling/disabling transmission level click tracking (default: true) | Boolean | +| trackOpens | no | Field for enabling/disabling transmission level open tracking, if not set will use settings from Template | Boolean | +| trackClicks | no | Field for enabling/disabling transmission level click tracking, if not set will use settings from Template | Boolean | | useSandbox | no | Field for enabling/disabling using sandbox domain to send transmission(You are limited to 50 messages ever with sandbox) | Boolean | | useDraftTemplate | no | Field for allowing the sending of a transmission using a draft of a stored template (default: false) | Boolean | | replyTo | no | Field for specifying the email address that should be used when a recipient hits the reply button | String | diff --git a/examples/transmission/mime_parts.js b/examples/transmission/mime_parts.js index 6c0d295..9ea0dff 100644 --- a/examples/transmission/mime_parts.js +++ b/examples/transmission/mime_parts.js @@ -8,7 +8,9 @@ var trans = { recipients: [{ address: { email: 'john.doe@example.com' } }], subject: 'Example Email for MIME Parts', html: '
Hello World!
', - text: 'Hello World!' + text: 'Hello World!', + trackOpens: true, + trackClicks: true }; sparkpost.transmission.send(trans, function(err, res) { diff --git a/examples/transmission/send_transmission_all_fields.js b/examples/transmission/send_transmission_all_fields.js index c418dc3..3bfc43b 100644 --- a/examples/transmission/send_transmission_all_fields.js +++ b/examples/transmission/send_transmission_all_fields.js @@ -17,8 +17,8 @@ var trans = { customHeaders: { 'X-Custom-Header': 'Sample Custom Header' }, - trackOpens: false, - trackClicks: false, + trackOpens: true, + trackClicks: true, useSandbox: true, useDraftTemplate: true, from: 'From Envelope