Skip to content

Open-source event management and ticket selling platform — perfect for concerts, conferences, and everything in between 🎟️ If you find this project helpful, please consider giving us a star ⭐️

1.6 KB
Raw Blame

paths: - "backend/app/Mail/" - "backend/app//Email/" - "backend/app//EmailDelivery/" - "backend/app//EmailTemplate/" - "backend/app//Mail.php" - "backend/app//Email.php" - "backend/resources/views/emails/"

Mail & email delivery

  • Mail queued before a deploy must still unserialize after it: a property added to a mailable is non-readonly with a null default.
  • A new rich-text email token that carries HTML must be purified at store time and added to PURIFIED_HTML_PATHS in EmailContextHtmlEscaper; every other token is escaped.
  • Email delivery recording (RecordEmailDeliveryListener) must never throw: a failed queued mail job is retried and re-sends the email. email_deliveries rows hold no recipient or account data.
  • Link email_deliveries, outgoing_messages and account_lifecycle_nudges through provider_message_id, never with foreign keys.
  • Don't add Symfony TagHeaders for tracking: Postmark rejects more than one tag per email.
  • Pick a delivery webhook receiver by the {provider} route segment (EmailDeliveryWebhookReceiverResolver), never by sniffing the payload. The webhook route is unthrottled on purpose: unauthenticated calls never touch the DB, and throttling Postmark's few IPs during a broadcast would drop events.
  • Event-scoped mails (ContainsEventContent) for Hi.Events Pro accounts go out under the organizer's name and event accent colour (MailBrandingService); only the display name changes, the address stays MAIL_FROM_ADDRESS. A new event mail sent to the organizer or team, not buyers, must override isSentToBuyers() to return false (see OrderSummaryForOrganizer).