以下代码用于jamesiarmes/php-ews
在我的应用程序中发送电子邮件
$request = new \jamesiarmes\PhpEws\Request\CreateItemType();
$request->MessageDisposition = "SendOnly";
$request->SavedItemFolderId->DistinguishedFolderId->Id = "sentitems";
$request->Items->Message->ItemClass = "IPM.Note";
$request->Items->Message->Subject = "exchange new mail";
$request->Items->Message->Body->BodyType = 'HTML';
$request->Items->Message->Body->_ = "This is a test mail as a part of exchange settings set up ";
$request->Items->Message->ToRecipients->Mailbox->EmailAddress = "rejith.rj@pitsolutions.com";
$response = $this->app['ews']->CreateItem($request);
但问题是我只能添加一个电子邮件地址作为收件人,如何添加多个电子邮件地址ToRecipients
?