I am using Postmark to send emails. But postmark allows you to set a URL to process bounced emails. I want to use this, but don't know how to get and handle the data.
My API works but I don't know how to retrieve the data postmark sends to my API.
<?php
class BackendBillingAPI
{
public static function postmarkBounceHook()
{
$log = new SpoonLog('custom', PATH_WWW . '/backend/cache/logs/billing');
// logging when we are in debugmode
if(SPOON_DEBUG) $log->write('Billing post (' . serialize($_POST) . ') triggered.');
if(SPOON_DEBUG) $log->write('Billing get (' . serialize($_GET) . ') triggered.');
if(SPOON_DEBUG) $log->write('Billing _REQUEST (' . serialize($_REQUEST) . ') triggered.');
}
}
Any thoughts/ideas?