@@ -19,10 +19,10 @@ discard block |
||
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 |
||
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 |