Platform Emails (Broadcasts)

Platform Emails

Navigate to Communications → Emails to create and send email campaigns to gym owners and leads.

Creating an Email

  1. Click + Compose to start a new email
  2. Fill in the subject line
  3. Select the sender address from the approved sender dropdown (restricted to @bliply.app and @help.bliply.app domains — no manual override allowed)
  4. Build the email content using the block-based editor
  5. Select the audience:
    • All active gyms
    • Filter by billing status (active, trial, inactive)
    • Filter by custom gym_tags
    • Specific lead IDs
  6. Preview the email using the Desktop/Mobile toggle to check rendering on both device sizes
  7. Choose to Send Now or Schedule for a future date/time

Email Statuses

StatusMeaning
DraftBeing composed, not yet sent
ScheduledQueued for future delivery
SendingCurrently being processed (atomic lock prevents double-sends)
SentDelivered to all recipients
FailedSend attempt failed — can be retried

Tracking & Analytics

After sending, each email shows a detailed recipient card with:

Retrying Failed Sends

If an email fails to send, use the Retry action. This uses the supabase.functions.invoke() pattern for reliable authentication. The Edge Function implements a 2-minute concurrency lock (returns 409 Conflict if a send is already in progress) to prevent double-sending.

Deleting Emails

Only non-sent emails can be deleted (draft, failed, scheduled, or stuck). Sent emails are retained for audit and analytics.