Download the PHP package xenoplexus/statamic-newsletter without Composer
On this page you can find all versions of the php package xenoplexus/statamic-newsletter. It is possible to download/install these versions without Composer. Possible dependencies are resolved automatically.
Download xenoplexus/statamic-newsletter
More information about xenoplexus/statamic-newsletter
Files in xenoplexus/statamic-newsletter
Package statamic-newsletter
Short Description Newsletter management addon for Statamic — subscribe/unsubscribe, Postmark integration, queued batch sending.
License MIT
Homepage https://github.com/xenoplexus/statamic-newsletter
Informations about the package statamic-newsletter
Statamic Newsletter
A Statamic addon for managing newsletters with Postmark integration. Subscribe/unsubscribe handling, welcome emails, queued batch sending, and suppression webhook support.
Features
- Subscribe/unsubscribe with signed URL verification
- Welcome email sent automatically on subscribe
- Batch sending via Postmark with configurable batch sizes and queued jobs
- Publish-to-send workflow — publishing a newsletter entry in the CP dispatches it to all active subscribers
- Postmark suppression webhook automatically deactivates bounced/complained addresses
- Antlers
{{ newsletter_form }}tag for embedding subscribe forms in any template - CLI preview with
php artisan newsletter:preview(supports--demofor placeholder content) - Fully configurable via env variables — org info, Postmark credentials, DB connection, route prefixes
- Publishable templates for per-project email customization
Requirements
- PHP 8.3+
- Statamic 6 / Laravel 12
- Postmark account (for sending)
Installation
The install command copies the newsletter collection, blueprint, and unsubscribe page into your project.
Configuration
Add these to your .env:
Publish the full config to customize further:
Usage
Subscribe form
Use the Antlers tag in any template:
Or build your own form that POSTs to /{prefix}/subscribe with an email field.
Sending newsletters
- Create a newsletter entry in the CP using the
newsletterscollection - Add an intro heading, optional intro body, and content sections
- Publish the entry — it automatically dispatches to all active subscribers
To resend: unpublish, set newsletter_send_count to 0, clear newsletter_sent_at, then republish.
Preview
Customizing email templates
Templates are published to resources/views/vendor/statamic-newsletter/ for editing.
Webhook
Set up a Postmark suppression webhook pointing to:
Include the X-Webhook-Token header matching your POSTMARK_WEBHOOK_TOKEN env var.
License
MIT