Completed
Push — master ( 373c00...644b2d )
by Gareth
05:32
created
examples/mail/sendMailWithAttachments.php 1 patch
Spacing   +5 added lines, -5 removed lines patch added patch discarded remove patch
@@ -19,10 +19,10 @@  discard block
 block discarded – undo
19 19
 $mailId = $return = $api->sendMail($message, array('MessageDisposition' => 'SaveOnly'));
20 20
 
21 21
 //Create our Attachments
22
-$api->getClient()->CreateAttachment(array (
22
+$api->getClient()->CreateAttachment(array(
23 23
     'ParentItemId' => $mailId->toArray(),
24
-    'Attachments' => array (
25
-        'FileAttachment' => array (
24
+    'Attachments' => array(
25
+        'FileAttachment' => array(
26 26
             'Name' => 'picture.jpg',
27 27
             'Content' => file_get_contents('picture.jpg')
28 28
         )
@@ -35,9 +35,9 @@  discard block
 block discarded – undo
35 35
 $mailId = $api->getItem($mailId)->getItemId();
36 36
 
37 37
 //Send the message
38
-$api->getClient()->SendItem(array (
38
+$api->getClient()->SendItem(array(
39 39
     'SaveItemToFolder' => true,
40
-    'ItemIds' => array (
40
+    'ItemIds' => array(
41 41
         'ItemId' => $mailId->toArray()
42 42
     )
43 43
 ));
44 44
\ No newline at end of file
Please login to merge, or discard this patch.