@@ -19,7 +19,7 @@ Next, run the Composer command to install the SparkPost PHP SDK:
1919composer require sparkpost/php-sparkpost
2020```
2121After installing, you need to require Composer's autoloader:
22- ```
22+ ``` php
2323require 'vendor/autoload.php';
2424use SparkPost\SparkPost;
2525```
@@ -33,7 +33,7 @@ need to require one and create an adapter from it and pass it along. The exampl
3333GuzzleHttp Client Library.
3434
3535An Adapter can be setup like so:
36- ```
36+ ``` php
3737use SparkPost\SparkPost;
3838use GuzzleHttp\Client;
3939use Ivory\HttpAdapter\Guzzle6HttpAdapter;
@@ -43,7 +43,7 @@ $sparky = new SparkPost($httpAdapter, ['key'=>'YOUR API KEY']);
4343```
4444
4545## Getting Started: Your First Mailing
46- ```
46+ ``` php
4747require 'vendor/autoload.php';
4848
4949use SparkPost\SparkPost;
@@ -55,7 +55,7 @@ $sparky = new SparkPost($httpAdapter, ['key'=>'YOUR API KEY']);
5555
5656try {
5757 // Build your email and send it!
58- $results = $sparky->transmission->send([
58+ $results = $sparky->transmission->send([
5959 'from'=>'From Envelope <from @sparkpostbox.com >',
6060 'html'=>'<html ><body ><h1 >Congratulations, {{name}}!</h1 ><p >You just sent your very first mailing!</p ></body ></html >',
6161 'text'=>'Congratulations, {{name}}!! You just sent your very first mailing!',
0 commit comments