Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Add event sent to Mailjet Event module #38

Open
cbou opened this issue Aug 23, 2019 · 0 comments
Open

Add event sent to Mailjet Event module #38

cbou opened this issue Aug 23, 2019 · 0 comments

Comments

@cbou
Copy link
Contributor

cbou commented Aug 23, 2019

switch ($event['event']) {
case 'open' :
rules_invoke_event('mailjet_open', $mailjet_event);
break;
case 'click' :
rules_invoke_event('mailjet_click', $mailjet_event);
break;
case 'bounce' :
rules_invoke_event('mailjet_bounce', $mailjet_event);
break;
case 'spam' :
rules_invoke_event('mailjet_spam', $mailjet_event);
break;
case 'blocked' :
rules_invoke_event('mailjet_blocked', $mailjet_event);
break;
case 'unsub' :
rules_invoke_event('mailjet_unsub', $mailjet_event);
break;
// No handler
default :
drupal_not_found();
break;
}

The event type "sent" is part of your API. It would be nice to have it also implemented in your Mailjet event module.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant