summaryrefslogtreecommitdiffstats
path: root/examples/transmission/stored_recipients_inline_content.php
diff options
context:
space:
mode:
Diffstat (limited to 'examples/transmission/stored_recipients_inline_content.php')
-rw-r--r--examples/transmission/stored_recipients_inline_content.php10
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) {