summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorRichard Leland <rich@richleland.com>2016-06-14 09:37:56 -0400
committerGitHub <noreply@github.com>2016-06-14 09:37:56 -0400
commit1b61a81471fc46cde5a515381e9642e0c884481c (patch)
tree6d61a369ba8f9386d2ce69de2690a985792f50d4
parentaac8412f0b6a12dd26b21e891a6f216e0a1c88e2 (diff)
downloadphp-sparkpost-1b61a81471fc46cde5a515381e9642e0c884481c.zip
php-sparkpost-1b61a81471fc46cde5a515381e9642e0c884481c.tar.gz
php-sparkpost-1b61a81471fc46cde5a515381e9642e0c884481c.tar.bz2
Add inline images to transmissions example
-rw-r--r--examples/transmission/send_transmission_all_fields.php7
1 files changed, 7 insertions, 0 deletions
diff --git a/examples/transmission/send_transmission_all_fields.php b/examples/transmission/send_transmission_all_fields.php
index 986fd87..84dfa9b 100644
--- a/examples/transmission/send_transmission_all_fields.php
+++ b/examples/transmission/send_transmission_all_fields.php
@@ -59,6 +59,13 @@ try {
'data' => base64_encode($data),
],
],
+ 'inlineImages' => [
+ [
+ 'type' => 'image/png',
+ 'name' => 'cid-name',
+ 'data' => base64_encode($data),
+ ],
+ ],
]);
echo 'Congrats! You sent an email using SparkPost!';