File tree Expand file tree Collapse file tree 1 file changed +5
-3
lines changed
Expand file tree Collapse file tree 1 file changed +5
-3
lines changed Original file line number Diff line number Diff line change @@ -44,6 +44,8 @@ $sparky = new SparkPost($httpAdapter, ['key'=>'YOUR API KEY']);
4444
4545## Getting Started: Your First Mailing
4646```
47+ require 'vendor/autoload.php';
48+
4749use SparkPost\SparkPost;
4850use GuzzleHttp\Client;
4951use Ivory\HttpAdapter\Guzzle6HttpAdapter;
@@ -57,11 +59,11 @@ try {
5759 'from'=>'From Envelope <from@sparkpostbox.com>',
5860 'html'=>'<html><body><h1>Congratulations, {{name}}!</h1><p>You just sent your very first mailing!</p></body></html>',
5961 'text'=>'Congratulations, {{name}}!! You just sent your very first mailing!',
60- 'substitutionData'=>array( 'name'=>'YOUR FIRST NAME')
62+ 'substitutionData'=>[ 'name'=>'YOUR FIRST NAME']
6163 'subject'=>'First Mailing From PHP',
6264 'recipients'=>[
6365 [
64- " address" =>[
66+ ' address' =>[
6567 'name'=>'YOUR FULL NAME',
6668 'email'=>'YOUR EMAIL ADDRESS'
6769 ]
7779
7880## Learn More
7981* For more detailed examples, check our examples:
80- * [ Transmissions] ( https://github.com/SparkPost/php-sparkpost/tree/master/examples/transmission )
82+ * [ Transmissions] ( https://github.com/SparkPost/php-sparkpost/tree/master/examples/transmission )
8183* Read our REST API documentation - < http://www.sparkpost.com/docs/introduction >
8284
8385## Field Descriptions
You can’t perform that action at this time.
0 commit comments