|
47 | 47 | * [Transmissions](https://github.com/MessageSystems/php-sdk/tree/master/examples/transmission/) |
48 | 48 | * Read our REST API documentation - <http://www.sparkpost.com/docs/introduction> |
49 | 49 |
|
| 50 | +## Field Descriptions |
| 51 | +### Transmissions |
| 52 | +| Field Name | Required? | Description | Data Type | |
| 53 | +| ------------ | ----------- | ------------- | ----------- | |
| 54 | +| description | no | Field for describing what this transmission is for the user | String | |
| 55 | +| campaign | no | Field for assigning a given transmission to a specific campaign, which is a logical container for similar transmissions | String | |
| 56 | +| metadata | no | Field for adding arbitrary key/value pairs which will be included in open/click tracking | Object (Simple) | |
| 57 | +| substitutionData | no | Field for adding transmission level substitution data, which can be used in a variety of fields and in content | Object (Complex) | |
| 58 | +| trackOpens | no | Field for enabling/disabling transmission level open tracking (default: true) | Boolean | |
| 59 | +| trackClicks | no | Field for enabling/disabling transmission level click tracking (default: true) | Boolean | |
| 60 | +| useDraftTemplate | no | Field for allowing the sending of a transmission using a draft of a stored template (default: false) | Boolean | |
| 61 | +| replyTo | no | Field for specifying the email address that should be used when a recipient hits the reply button | String | |
| 62 | +| subject | yes | Field for setting the subject line of a given transmission | String | |
| 63 | +| from | yes | Field for setting the from line of a given transmission | String or Object | |
| 64 | +| html | yes** | Field for setting the HTML content of a given transmission | String | |
| 65 | +| text | yes** | Field for setting the Plain Text content of a given transmission | String | |
| 66 | +| rfc822 | no** | Field for setting the RFC-822 encoded content of a given transmission | String | |
| 67 | +| template | no** | Field for specifying the Template ID of a stored template to be used when sending a given transmission | String | |
| 68 | +| customHeaders | no | Field for specifying additional headers to be applied to a given transmission (other than Subject, From, To, and Reply-To) | Object (Simple) | |
| 69 | +| recipients | yes** | Field for specifying who a given transmission should be sent to | Array of Objects | |
| 70 | +| recipientList | no** | Field for specifying a stored recipient list ID to be used for a given transmission | String | |
| 71 | + |
| 72 | +** - If using inline content then html or text are required. If using RFC-822 Inline Content, then rfc822 is required. If using a stored recipient list, then recipientList is required. If using a stored template, then template is required. |
| 73 | + |
50 | 74 | ## Tips and Tricks |
51 | 75 | ### General |
52 | 76 | * You _must_ provide at least an API key when instantiating the SparkPost Library - `[ 'key'=>'184ac5480cfdd2bb2859e4476d2e5b1d2bad079bf' ]` |
|
0 commit comments