diff --git a/src/Listeners/Webhooks/HandleSesWebhook.php b/src/Listeners/Webhooks/HandleSesWebhook.php index 8bb4acd2..b5e2d6cf 100644 --- a/src/Listeners/Webhooks/HandleSesWebhook.php +++ b/src/Listeners/Webhooks/HandleSesWebhook.php @@ -61,7 +61,9 @@ private function processEmailEvent(array $event): void if (!$eventType || !$messageId) { return; } - + + $eventType = strtolower($eventType); + // https://docs.aws.amazon.com/ses/latest/DeveloperGuide/event-publishing-retrieving-sns-examples.html#event-publishing-retrieving-sns-open // Bounce, Complaint, Message, Send Email, Reject Event, Open Event, Click Event switch ($eventType) {