You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
| 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' ]`
@@ -63,12 +87,12 @@ try {
63
87
## Development
64
88
65
89
### Setup
66
-
We use [Robo](http://robo.li/) for our task runner.
67
-
68
-
Run `composer install` inside the directory to install dependecies and development tools including Robo.
90
+
Run `composer install` inside the directory to install dependecies and development tools.
69
91
70
92
### Testing
71
-
Once all the dependencies are installed, you can execute the unit tests using `vendor\bin\robo test`
93
+
Once all the dependencies are installed, you can execute the unit tests using `vendor/bin/phpunit --bootstrap test/unit/bootstrap.php ./test/unit`.
94
+
95
+
If you're interested in code coverage, you can add the `--coverage` flag for phpunit like so: ```phpunit --coverage-html test/output/report --bootstrap test/unit/bootstrap.php ./test/unit```
0 commit comments