$message = new MessageType();
$message->Subject = 'EWS Inline Image';
$StartDate = new DateTime('tomorrow 3:00pm');
$DueDate = new DateTime('tomorrow 4:30pm');
$message->Flag->FlagStatus = 'Flagged';
$message->Flag->StartDate = $StartDate->format('c');
$message->Flag->DueDate = $DueDate->format('c');
.....
I get two flagged items, one in the Inbox, and the other in Sent Items.
Only the Sent Items message has the correct assigned dates. The Inbox message flag does not accept the dates (displays as NONE)
If I use MessageDispositionType::SEND_ONLY;, the Inbox message dates are still not set.
Is there any way to only set the FlagStatus to the Inbox item instead of both; and why, if I am able to assign the flag start/due/complete dates to the message, would they only take affect on the Sent Items message and not the Inbox message?
Version: 1.0, dev-master PHP version: 7.3.1 Microsoft Exchange version: VERSION_2013_SP1
When creating a message with the
MessageDispositionType
:And then setting the
FlagStatus
to"Flagged"
I get two flagged items, one in the
Inbox
, and the other inSent Items
.Only the
Sent Items
message has the correct assigned dates.The
Inbox
message flag does not accept the dates (displays asNONE
)If I use
MessageDispositionType::SEND_ONLY;
, theInbox
message dates are still not set.Is there any way to only set the
FlagStatus
to theInbox
item instead of both; and why, if I am able to assign the flag start/due/complete dates to the message, would they only take affect on the Sent Items message and not the Inbox message?