Product Benefits Pricing Guides Docs About Contact us Try it out
Engagement

PostHog Transactional Email Delivery Tracking

Track transactional email delivery from PostHog server SDKs. Learn which event properties to capture and how to measure email-driven activation.

· 3 min read

Every mobile app sends transactional email: verification codes, receipts, password resets and magic links. When one of those messages never arrives, the user does not blame your mail provider. They blame your app, and many never come back. Without delivery data sitting next to your product events, you cannot tell a weak onboarding flow from a message that simply never landed.

On 17 November 2026, PostHog announced that its server SDKs for Python, Go, Ruby, PHP, .NET, Rust, Elixir and Node can send email content and check delivery status. Node can also render React Email elements before sending. That puts sends, delivery results and in-app behaviour in one place, which is what product teams need to measure email-driven activation.

Why This Matters

Email steps are often the most fragile part of a funnel. A user taps “Send code”, waits, and either finds the message or gives up. If your analytics only record the tap and the later login, the gap between them is a black box. Tracking the send and its delivery status turns that gap into something you can measure and fix.

Data Points to Track

Capture these properties on your send and delivery events, using your own event names:

  • email_type: verification, receipt, password_reset, magic_link, lifecycle
  • template_id or template name, so you can compare versions
  • delivery_status: queued, sent, delivered, failed
  • failure_reason where the status check reports one
  • send_to_delivery_seconds: time between send and a confirmed delivery status
  • triggering_screen: the app screen or action that requested the email
  • platform and app_version of the requesting client
  • attempt_number, so resends are separate from first sends
  • completed_next_step: true if the user finished the action the email enabled

Never put the recipient address or message body in event properties. Use your existing user identifier instead.

Setup Steps

  1. Choose the server SDK that matches your backend and update it to a version that includes email sending.
  2. Send the email through the SDK from the same code path that handles the app request, using the user’s distinct ID.
  3. Record a “send requested” event as soon as your server accepts the app request.
  4. Check delivery status after the send and record the result as a second event with the properties above.
  5. Link the two events with a shared message identifier so you can measure time to delivery.
  6. In the app, record when the user opens the link or enters the code, and pass the same identifier back.
  7. Build a funnel: request, delivered, completed. Break it down by email_type and platform.
  8. Add an alert for a rising share of failed or slow deliveries.

Actionable Insights

Delivery rate by email type. A low rate for verification emails points at your sender setup, not your onboarding design. Fix it before you touch any screens.

Time to delivery. If codes arrive after the user has given up, extend the code expiry or offer a resend button sooner. Compare completion for fast and slow deliveries to find the point where users leave.

Completion after delivery. If emails are delivered but few users finish the next step, the problem is the message or the landing screen. Test subject lines, link placement and deep link behaviour.

Resend behaviour. A high share of second attempts means the first message is late or hard to find. Treat it as a leading indicator of churn at signup.

Platform differences. If Android users complete less often than iOS users after delivery, check whether links open in the right app.

Remember that email metrics describe individuals, so keep consent and retention rules in mind and record only what you need.