diff options
Diffstat (limited to 'examples/transmission/stored_template_send.php')
-rw-r--r-- | examples/transmission/stored_template_send.php | 18 |
1 files changed, 9 insertions, 9 deletions
diff --git a/examples/transmission/stored_template_send.php b/examples/transmission/stored_template_send.php index 4d8ce49..cda6de6 100644 --- a/examples/transmission/stored_template_send.php +++ b/examples/transmission/stored_template_send.php @@ -5,20 +5,20 @@ use SparkPost\SparkPost; use SparkPost\Transmission; $key = 'YOURAPIKEY'; -SparkPost::setConfig(['key'=>$key]); +SparkPost::setConfig(array('key'=>$key)); try { - $results = Transmission::send([ + $results = Transmission::send(array( "from"=>"From Envelope <from@example.com>", - "recipients"=>[ - [ - "address"=>[ + "recipients"=>array( + array( + "address"=>array( "email"=>"john.doe@sample.com" - ] - ] - ], + ) + ) + ), "template"=>"my-template" - ]); + )); echo 'Congrats you can use your SDK!'; } catch (\Exception $exception) { echo $exception->getMessage(); |