Repository navigation
app/: transactional emails: outbox, Postmark, member notices (sc-8900) - #60
Merged
Merged
Conversation
Member
Author
|
Added, per AGENTS.md:
|
ndbroadbent
force-pushed
the
laravel-memberships
branch
from
December 2, 2026 13:20
70047c9 to
77b727c
Compare
ndbroadbent
force-pushed
the
laravel-emails
branch
from
December 2, 2026 13:20
02dd7f2 to
1f0a59c
Compare
VisualCIdocspring/visualci · build #321 · 331 unchanged · no changes This PR vs base: nothing since #213, across 6 builds Updated as builds change. Agents can review with VisualCI's MCP tools. |
ndbroadbent
force-pushed
the
laravel-memberships
branch
from
December 2, 2026 13:57
77b727c to
a2de221
Compare
ndbroadbent
force-pushed
the
laravel-emails
branch
2 times, most recently
from
December 2, 2026 14:00
8314f0c to
157198b
Compare
ndbroadbent
force-pushed
the
laravel-emails
branch
2 times, most recently
from
December 2, 2026 15:28
1fd39a2 to
1bfecb7
Compare
ndbroadbent
force-pushed
the
laravel-memberships
branch
from
December 2, 2026 15:54
5135975 to
492cb50
Compare
ndbroadbent
force-pushed
the
laravel-emails
branch
from
December 2, 2026 16:01
1bfecb7 to
ed0bd6c
Compare
…orted as is, the emails outbox (once per dedupe key and recipient; billing email or admins with their choices), DeliverEmails through Postmark (queued on each email, scheduled every five minutes; five attempts, then failed), a member's notice on MembershipChanged; emails table and users' email choices
…UALCI_EMAILS_HEARTBEAT_URL/TOKEN; fails when the oldest unsent email has waited over 30 minutes or delivery errored), and failed_unresolved_count for /status (emails_failed_unresolved, as today)
…claim lapses after 30 minutes, far longer than a 10-second send), so a slow run's batch is never sent twice; a crashed run's fifth attempt ends failed, never a sixth; a failed send waits five minutes for the next run; the membership notice's dedupe key is the change's time, fixed at dispatch, so a retried listener doesn't send it again
… and dependencies merged
ndbroadbent
force-pushed
the
laravel-emails
branch
from
December 2, 2026 16:06
ed0bd6c to
efc2724
Compare
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Stacked on #56. Today's transactional emails, ported to the Laravel Rust app.
Kindandrender(subject, text and HTML) carried across from server/src/notify.rs unchanged, with today's samples.emails, the same table as today, includingdismissed_at.notify::queue(kind, To::{User, Billing, Admins}, org, dedupe_key)records an email once per dedupe key and recipient.users.email_low_creditsandemail_receipts, added here withsignup_notified_at).DeliverEmailsclaims up to 50 pending emails (FOR UPDATE SKIP LOCKED) and sends each through Postmark (POSTMARK_SERVER_TOKEN,MAIL_FROM,MAIL_REPLY_TO) with Laravel's HTTP client.oldest_unsent_seconds()is there for/status, which is the job's health check, as today.MembershipChangedlistener sends the added-to or removed-from-organization email.billing::CREDIT_PACKmoves over with the emails that quote it. The rest of billing follows.Tests (
app/tests/emails.rs, Postmark faked):All app tests pass, and clippy is clean.