Я пытаюсь прочитать встречи календаря из общего почтового ящика в Office365, в частности даты встреч .
Я могу открыть почтовый ящик и вывести его содержимое с помощьюследующий код
<code>$con = "{outlook.office365.com:993/imap/ssl/readonly}";
$mbox = imap_open($con."Calendar", "{emailaddress}\{sharedmailbox}", "{password}");
$search = '';
$emails = imap_search($mbox,$search);
foreach($emails as $email){
$body = imap_fetchbody($mbox,$email,1);
echo"<pre>";print_r($body);echo"
";}
Это выводит следующее:
The server couldn't retrieve the following message:
Subject: "{subject}"
From: "{User name}")
Sent date: {Date the appointment invite was sent}
The message hasn't been deleted. You might be able to view it using either =
Outlook or Outlook Web App. You can also contact the sender to find out wha=
t the message says.=
Мне нужно получить дату самой встречи, а не только датуприглашение на встречу было отправлено.
Любая помощь будет признательна, спасибо.