spatie/laravel-mailcoach-postmark-feedback
Add-on for spatie/laravel-mailcoach to process Postmark email feedback for your campaigns. Handles Postmark event/webhook feedback so Mailcoach can track bounces, complaints, and delivery issues automatically.
POST /postmark-feedback). This is straightforward but requires:
mailcoach_feedback) without conflicts, but schema migrations must be run post-installation.feedback_token, but edge cases (e.g., race conditions) could require additional safeguards.FeedbackProcessed) that can be listened to for custom logic..env:
MAIL_MAILER=postmark
POSTMARK_API_TOKEN=your_token
composer require spatie/laravel-mailcoach-postmark-feedback
php artisan vendor:publish --provider="Spatie\MailcoachPostmarkFeedback\MailcoachPostmarkFeedbackServiceProvider"
php artisan migrate
Route::post('/postmark-feedback', [\Spatie\MailcoachPostmarkFeedback\Http\Controllers\PostmarkFeedbackController::class, '__invoke']);
laravel-mailcoach-sendgrid), check for conflicts in feedback processing.FeedbackProcessed event) for extensions, but complex workflows may need custom controllers or listeners.mailcoach_feedback).php artisan queue:failed).queue:work --daemon).feedback_token and campaign_id are recommended.| Failure Scenario | Impact | Mitigation |
|---|---|---|
| Postmark webhook failures | Lost feedback data | Retry logic (built-in), monitor queue:failed, alert on repeated failures. |
| Queue worker crashes | Delayed feedback processing | Supervisor/Horizon for process management, health checks. |
| Database connection issues | Feedback not stored | Queue job retries, dead-letter queue for persistent failures. |
| Mailcoach version incompatibility | Package breaks | Test updates in staging, rollback plan. |
| Custom feedback logic errors | Incorrect campaign actions | Unit tests for custom listeners, feature flags for new logic. |
How can I help you explore Laravel packages today?