diff options
author | nornholdj <nornholdj@gmail.com> | 2014-11-14 16:25:36 -0500 |
---|---|---|
committer | nornholdj <nornholdj@gmail.com> | 2014-11-14 16:25:36 -0500 |
commit | 2ca3b8764d9e7ad8c7436e53b6676e9eb6591f28 (patch) | |
tree | 6934c8cf3d9c91852a76e57314246e17c81b4f80 /examples/transmission/stored_recipients_inline_content.php | |
parent | 39f2699a7e7850397882a6d2ee3a8438a105b72d (diff) | |
parent | 3095de0dca14565911a2bdcc1ee5960e63b9b1f4 (diff) | |
download | php-sparkpost-2ca3b8764d9e7ad8c7436e53b6676e9eb6591f28.zip php-sparkpost-2ca3b8764d9e7ad8c7436e53b6676e9eb6591f28.tar.gz php-sparkpost-2ca3b8764d9e7ad8c7436e53b6676e9eb6591f28.tar.bz2 |
Merge branch 'feature/MA-1084' into develop
Diffstat (limited to 'examples/transmission/stored_recipients_inline_content.php')
-rw-r--r-- | examples/transmission/stored_recipients_inline_content.php | 10 |
1 files changed, 5 insertions, 5 deletions
diff --git a/examples/transmission/stored_recipients_inline_content.php b/examples/transmission/stored_recipients_inline_content.php index f09ca63..dbb7c1d 100644 --- a/examples/transmission/stored_recipients_inline_content.php +++ b/examples/transmission/stored_recipients_inline_content.php @@ -1,22 +1,22 @@ <?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( "campaign"=>"my-campaign", "from"=>"From Envelope <from@example.com>", "html"=>"<p>Hello World! Your name is: {{name}}</p>", "text"=>"Hello World!", "subject"=>"Example Email: {{name}}", "recipientList"=>'Example List' - ]); + )); echo 'Congrats you can use your SDK!'; } catch (\Exception $exception) { |