summaryrefslogtreecommitdiffstats
path: root/examples/transmission/rfc822.php
diff options
context:
space:
mode:
Diffstat (limited to 'examples/transmission/rfc822.php')
-rw-r--r--examples/transmission/rfc822.php24
1 files changed, 12 insertions, 12 deletions
diff --git a/examples/transmission/rfc822.php b/examples/transmission/rfc822.php
index 1054c57..0949efa 100644
--- a/examples/transmission/rfc822.php
+++ b/examples/transmission/rfc822.php
@@ -14,18 +14,18 @@ $httpAdapter = new Guzzle6HttpAdapter(new Client());
$sparky = new SparkPost($httpAdapter, ['key'=>$config['api-key']]);
try {
- $results = $sparky->transmission->send([
- 'recipients'=>[
- [
- 'address'=>[
- 'email'=>'john.doe@example.com'
- ]
- ]
- ],
- 'rfc822'=>'Content-Type: text/plain\nFrom: From Envelope <from@sparkpostbox.com>\nSubject: Example Email\n\nHello World'
- ]);
- echo 'Congrats you can use your SDK!';
+ $results = $sparky->transmission->send([
+ 'recipients'=>[
+ [
+ 'address'=>[
+ 'email'=>'john.doe@example.com'
+ ]
+ ]
+ ],
+ 'rfc822'=>'Content-Type: text/plain\nFrom: From Envelope <from@sparkpostbox.com>\nSubject: Example Email\n\nHello World'
+ ]);
+ echo 'Congrats! You sent an email using SparkPost!';
} catch (\Exception $exception) {
- echo $exception->getMessage();
+ echo $exception->getMessage();
}
?>