Replies: 1 comment 2 replies
-
@imnotberg sorry, I'm having a little trouble understanding your question. If you're asking about how to interpret the from anymail.signals import tracking
from django.dispatch import receiver
@receiver(tracking)
def handle_tracking_event(sender, event, esp_name, **kwargs):
print(event.event_type) # 'bounced' or 'delivered' or 'opened' or ....
print(event.recipient) # e.g., '[email protected]'
print(event.message_id) # matches message.anymail_status.message_id from sending
# etc. If you already found that documentation and set up your signal handler, and your question is that the event properties don't seem to be set to useful values, it would help to know: (1) your signal handler code, (2) the actual event values you are getting, if any, in that handler, and (3) what your SendGrid Event Webhook Mail Settings are—particularly which of the "Events to be POSTed to your URL" you've enabled. Or if it's neither of those, please provide more details about what you're trying to do, how you're trying to do it (showing your code is usually helpful), what you expected to happen and what's actually happening instead. |
Beta Was this translation helpful? Give feedback.
-
I am using the sendgrid module of this program and I have set up my webhooks url with the Sendgrid settings.
However, with any sendgrid event that I use, the only post I get is that I've had a SendGrid API Event. No real metadata beyond that.
How do I understand more about the actual event rather than just that there was an event?
Beta Was this translation helpful? Give feedback.
All reactions