public function error_handling() { $obj = new MailJetEvents(Tools::getValue('event'), Tools::getValue('time')); $obj->add(); header('HTTP/1.1 200 OK'); die; }
* Event handler * - please check https://www.mailjet.com/docs/event_tracking for further informations. */ switch ($t['event']) { case 'open': /* => do action */ /* If an error occurs, tell Mailjet to retry later: header('HTTP/1.1 400 Error'); */ /* If it works, tell Mailjet it's OK */ header('HTTP/1.1 200 Ok'); break; case 'click': /* => do action */ break; case 'bounce': /* => do action */ $events->add(); break; case 'spam': /* => do action */ $events->add(); break; case 'blocked': /* => do action */ $events->add(); break; case 'unsub': /* => do action */ $hooks_events = new HooksEvents(); $hooks_events->unsubscribe($t); break; case 'typofix':