Using PHP-EWS (GarethP), I am attempting to setReplyTo
like this:
use garethp\ews\API\Type;
use garethp\ews\MailAPI;
$api = MailAPI::withUsernameAndPassword("host", "username", "password");
$message = new Type\MessageType();
$message->setSubject("Some Subject");
$message->setBody("Test Email");
$message->setToRecipients("test@test.com");
$message->setReplyTo("me@there.com"); // <-- this is the 'ReplyTo' address I want to set.
$api->sendMail($message);
But this does not have any affect, and the recipient is then replying to the sender/from address.
The Api callback shows:
'replyTo' => NULL,
Any ideas on how solve?