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, lifecycletemplate_idor template name, so you can compare versionsdelivery_status: queued, sent, delivered, failedfailure_reasonwhere the status check reports onesend_to_delivery_seconds: time between send and a confirmed delivery statustriggering_screen: the app screen or action that requested the emailplatformandapp_versionof the requesting clientattempt_number, so resends are separate from first sendscompleted_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
- Choose the server SDK that matches your backend and update it to a version that includes email sending.
- Send the email through the SDK from the same code path that handles the app request, using the user’s distinct ID.
- Record a “send requested” event as soon as your server accepts the app request.
- Check delivery status after the send and record the result as a second event with the properties above.
- Link the two events with a shared message identifier so you can measure time to delivery.
- In the app, record when the user opens the link or enters the code, and pass the same identifier back.
- Build a funnel: request, delivered, completed. Break it down by
email_typeandplatform. - 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.