This commit is contained in:
Paul Wilde 2021-08-11 10:52:27 +01:00
parent 3a45e551a5
commit f5bbf49fd1

View file

@ -2,6 +2,7 @@
$conf = Core::$Config["Services"]; $conf = Core::$Config["Services"];
//get raw POST data so we can extract the email address //get raw POST data so we can extract the email address
$data = file_get_contents("php://input"); $data = file_get_contents("php://input");
file_put_contents(Core::root_dir()."/xmltest");
preg_match("/\<EMailAddress\>(.*?)\<\/EMailAddress\>/", $data, $matches); preg_match("/\<EMailAddress\>(.*?)\<\/EMailAddress\>/", $data, $matches);
echo '<?xml version="1.0" encoding="utf-8" ?>'; ?> echo '<?xml version="1.0" encoding="utf-8" ?>'; ?>
<Autodiscover xmlns="http://schemas.microsoft.com/exchange/autodiscover/responseschema/2006"> <Autodiscover xmlns="http://schemas.microsoft.com/exchange/autodiscover/responseschema/2006">