Skip to content

Commit 1b61a81

Browse files
authored
Add inline images to transmissions example
1 parent aac8412 commit 1b61a81

File tree

1 file changed

+7
-0
lines changed

1 file changed

+7
-0
lines changed

examples/transmission/send_transmission_all_fields.php

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -59,6 +59,13 @@
5959
'data' => base64_encode($data),
6060
],
6161
],
62+
'inlineImages' => [
63+
[
64+
'type' => 'image/png',
65+
'name' => 'cid-name',
66+
'data' => base64_encode($data),
67+
],
68+
],
6269
]);
6370

6471
echo 'Congrats! You sent an email using SparkPost!';

0 commit comments

Comments
 (0)