You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
MimeContent
ItemId
Subject
Sensitivity
Body
Attachments
Size
DateTimeSent
DateTimeCreated
ResponseObjects
HasAttachments
IsReadReceiptRequested
From
IsRead
I suppouse my Exchange Server not send some propertyes like ToRecipients, fot this reason I suggest check is ToRecipients is set before process it like this:
if (isset($messageobj->ToRecipients)) {
if(!is_array($messageobj->ToRecipients->Mailbox)) {
$messageobj->ToRecipients->Mailbox = array($messageobj->ToRecipients->Mailbox);
}
foreach($messageobj->ToRecipients->Mailbox as $mailbox) {
$newmessage->to_recipients[] = $mailbox;
}
}
Thanks for this repo, it's great !!
Today I started to use this lib and have the following error:
PHP Notice: Undefined property: stdClass::$ToRecipients in Exchange-Web-Services-for-PHP/lib/ExchangeClient.php on line 257
Reviewing I found this code block:
I see this object is referred in $messageobj in the line 241
Exchange-Web-Services-for-PHP/lib/ExchangeClient.php
Line 241 in 697cc2d
When I get all keys, I get this:
I suppouse my Exchange Server not send some propertyes like ToRecipients, fot this reason I suggest check is ToRecipients is set before process it like this:
Instead
The text was updated successfully, but these errors were encountered: