mix phoenix_kit.sync_email_status (phoenix_kit v1.6.4)
View SourceMix task to manually sync email status by AWS SES message ID.
This task searches for a specific email by message ID and synchronizes its delivery status by fetching events from AWS SQS queues.
Usage
# Sync status for specific message ID
mix phoenix_kit.sync_email_status MESSAGE_ID
# With verbose output
mix phoenix_kit.sync_email_status MESSAGE_ID --verboseExamples
# Sync email with AWS SES message ID
mix phoenix_kit.sync_email_status "01000189971abc123-fed456-4e89-b012-defg345678hi"
# With detailed logging
mix phoenix_kit.sync_email_status "01000189971abc123-fed456-4e89-b012-defg345678hi" --verboseWhat this task does:
- Find Email Log: Searches for email log by message_id
- Check SQS Queue: Looks for events in main SQS queue
- Check DLQ: Looks for events in Dead Letter Queue
- Process Events: Updates email status based on found events
- Report Results: Shows summary of synchronization
Output
The task will show:
- Email log found/not found status
- Number of events found in SQS
- Number of events found in DLQ
- Processing results
- Final email status
Requirements
- Email system must be enabled
- AWS SES integration must be configured
- SQS queue configuration must be set up