コード例 #1
0
ファイル: mailjet.php プロジェクト: ac3gam3r/Maxokraft
 public function error_handling()
 {
     $obj = new MailJetEvents(Tools::getValue('event'), Tools::getValue('time'));
     $obj->add();
     header('HTTP/1.1 200 OK');
     die;
 }
コード例 #2
0
 *	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':