Documentation
The documentation of BYOMailer, the self-hosted email marketing app that sends through Amazon SES.
The documentation of BYOMailer, by section.
Getting started
- Introduction: What BYOMailer is, what it does, and how it sends email through the Amazon SES account of each account.
- Install with Docker: Install BYOMailer on one server with Docker Compose and create the owner account.
- Install without Docker: Install BYOMailer on a server with PHP, MySQL, Redis, and a web server, and run its background processes.
- Configuration: The environment variables of BYOMailer, grouped as in .env.example, with their default values.
- Connect AWS SES: Connect the AWS account of an account to BYOMailer, add a sender identity, and leave the SES sandbox.
- Send your first newsletter: Go from a new account to a first sent newsletter - sender identity, contacts, list, content, test email, and send.
- Upgrade BYOMailer: Update a Docker install or a manual install to a new version, and rotate the application key.
- Release notes: The changes to BYOMailer that users can see, newest first.
Using BYOMailer
- Contacts: Add and edit contacts, read their email history, and manage the subscribed, unsubscribed and sunset states.
- Lists and topics: Group contacts in lists, ask for a double opt-in, and let contacts choose topics inside a list.
- Tags and attributes: Label contacts with tags, and store custom data on contacts with attributes and their global defaults.
- Imports and exports: Import contacts from a CSV or Excel file into a list, and export contacts and sequence step emails as CSV.
- Segments and filters: Select contacts with filters, and save a filter set as a segment that newsletters and sequences can use.
- Newsletters: Write a newsletter, choose its audience, and send it now or at a scheduled time.
- A/B tests: Send two variants of a newsletter to the audience and compare their open and click rates.
- Sequences: Send a series of emails to each contact, with a delay between the steps.
- Automations: Change the tags, lists and sequences of a contact when an event happens to that contact.
- Templates and blocks: Reuse the same email layout and the same pieces of content, and personalize them with variables.
- Sender identities: Add a sending domain and a from address, publish the DNS records, and set open and click tracking.
- Custom domains: Serve the tracking links and the unsubscribe links of a sender identity from your own subdomains.
- Deliverability: How BYOMailer records the SES events, suppresses bad addresses, and watches the reputation and the quota of your SES account.
- Unsubscribe and preferences: The unsubscribe links, one-click unsubscribe, resubscribe, the preference center, and the compliance warnings before a send.
- Teams: Invite team members to an account, give them roles, archive them, and protect each login with two-factor authentication and API tokens.
- Webhooks: Send an HTTPS request to your own server when a contact subscribes or unsubscribes, a newsletter is sent, or a sequence step is sent.
Self-hosting
- Reverse proxy and TLS: Put a reverse proxy with a TLS certificate in front of port 8080 of the web service.
- SES events: Set up the SQS queue and the ses-events:poll worker that bring bounces, complaints, deliveries, opens and clicks back from SES.
- Queues and Horizon: The Redis queues, the Horizon supervisors, access to /horizon and failed jobs.
- Scheduler: The scheduled tasks of BYOMailer, with their frequency and what each task does.
- System mail: Configure the mailer for invitations, password resets and alerts, and learn which emails use it.
- Storage: Where BYOMailer keeps uploaded images and other files, the MEDIA_DISK setting, and the storage settings of each user.
- Backups: Back up APP_KEY and the .env file, the database and the storage volume of a Docker instance.
- Accounts and registration: Create the owner, choose who can sign up, and deactivate users of the instance.
- Recover access: Find a user, set a new password, turn off two-factor authentication and show the setup URL from the command line.
- Optional integrations: The environment variables, the on switch and the effect of each optional integration.
- Troubleshooting: Find and correct the common problems of a self-hosted instance from the signals that BYOMailer gives.
API
- API overview: The base URL, the request format, pagination, errors and rate limits of the BYOMailer REST API.
- Authentication: Make an API token in the dashboard and send it in the Authorization header of each request.
- Filters: The filter format that selects the audience of a newsletter, of a contact count, and of a sequence step.
- Contacts: List, read, create, update, unsubscribe and subscribe contacts, and add or remove them from lists.
- Lists: List, create, rename and delete the lists of your account.
- Topics: List, create, change and delete the topics of a list.
- Tags: List, create, rename and delete tags.
- Newsletters: List, create, change, schedule, test and delete newsletters, and count their audience.
- Sequences: Read sequences, steps and their stats, change content variables and step filters, and export the mails of a step.
- Email templates: List and read the email templates of your account.
- Blocks: List, read, create, change and delete reusable HTML blocks.
- Sender identities: List and read the sender identities of your account.
- Email logs: Read the log of the calls that BYOMailer made to Amazon SES.
- Projects: List, read, create, rename and delete projects, which group newsletters, sequences and automations.
- Webhook endpoints: Register, change, test and delete the HTTPS endpoints that receive webhook events, and read their deliveries.
- OpenAPI and Postman: Find the OpenAPI document and the Postman files of the API, import them into Postman, Insomnia or Bruno, and make them again.
MCP
- MCP server overview: Connect an AI assistant to BYOMailer through the Model Context Protocol, and learn the rules that protect live campaigns.
- Connect an MCP client: Create an API token and connect Claude Code, Cursor or another MCP client to the MCP server of your instance.
- MCP tools reference: The name, the description and the arguments of each tool of the BYOMailer MCP server.
Contributing
- Architecture: The stack, the folders and the main rules of the BYOMailer code, for contributors.
- Development setup: Install BYOMailer on your computer with PHP 8.4, Node 24 and SQLite, and fill it with demo data.
- Testing: Run the PHP tests, the JavaScript tests, the code style checks, the static analysis, the SSR smoke test and the load tests of BYOMailer.
- Release process: Write release notes and changelog lines for a change that users can see, and how versions, tags and images work.
Sdks
- SDKs: Install and use the BYOMailer SDKs for JavaScript and TypeScript, PHP, Python and Ruby.