mix phoenix_kit.email.test_webhook (phoenix_kit v1.5.2)
View SourceMix task to test email webhook functionality with sample events.
Usage
# Test bounce event
mix phoenix_kit.email.test_webhook --event bounce
# Test open event with specific message ID
mix phoenix_kit.email.test_webhook --event open --message-id abc123
# Test delivery event
mix phoenix_kit.email.test_webhook --event delivery
# Test all event types
mix phoenix_kit.email.test_webhook --allOptions
--event TYPE Event type to test: bounce, delivery, send, open, click, complaint
--message-id ID Use specific message ID (uses random if not provided)
--all Test all event types
--endpoint URL Custom webhook endpoint URL
--no-verify Skip signature verification (for testing)Event Types
send - Email send confirmation
delivery - Successful delivery
bounce - Hard/soft bounce
complaint - Spam complaint
open - Email opened (AWS SES)
click - Link clickedExamples
# Test bounce handling
mix phoenix_kit.email.test_webhook --event bounce --message-id test-123
# Test all events with custom endpoint
mix phoenix_kit.email.test_webhook --all --endpoint {prefix}/webhooks/email
# Where {prefix} is your configured PhoenixKit URL prefix
# Quick delivery test
mix phoenix_kit.email.test_webhook --event delivery