diff options
Diffstat (limited to 'examples/transmission/stored_template_send.php')
-rw-r--r-- | examples/transmission/stored_template_send.php | 22 |
1 files changed, 11 insertions, 11 deletions
diff --git a/examples/transmission/stored_template_send.php b/examples/transmission/stored_template_send.php index 298ba69..cda6de6 100644 --- a/examples/transmission/stored_template_send.php +++ b/examples/transmission/stored_template_send.php @@ -1,24 +1,24 @@ <?php namespace Examples\Transmisson; require_once (dirname(__FILE__).'/../bootstrap.php'); -use MessageSystems\SparkPost; -use MessageSystems\Transmission; +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(); |