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/rfc822.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/rfc822.php')
-rw-r--r-- | examples/transmission/rfc822.php | 24 |
1 files changed, 12 insertions, 12 deletions
diff --git a/examples/transmission/rfc822.php b/examples/transmission/rfc822.php index 1927382..b97bbb9 100644 --- a/examples/transmission/rfc822.php +++ b/examples/transmission/rfc822.php @@ -1,23 +1,23 @@ <?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([ - 'recipients'=>[ - [ - 'address'=>[ + $results = Transmission::send(array( + 'recipients'=>array( + array( + 'address'=>array( 'email'=>'john.doe@sample.com' - ] - ] - ], - 'rfc822Part'=>"Content-Type: text/plain\nFrom: From Envelope <from@example.com>\nSubject: Example Email\n\nHello World" - ]); + ) + ) + ), + 'rfc822'=>"Content-Type: text/plain\nFrom: From Envelope <from@example.com>\nSubject: Example Email\n\nHello World" + )); echo 'Congrats you can use your SDK!'; } catch (\Exception $exception) { echo $exception->getMessage(); |