Transactional emails
A transactional email goes to one person when your code sends it, such as a password reset, a sign-in code, or a receipt. Your code sends them, and the Transactional app in PostHog shows every send and what each person did next.
New here? Send your first one from code.
Send from your code
Your server sends the subject and HTML with one call from the PostHog SDK, named by a key such as password-reset. The email lives in your codebase, as HTML that your code builds. Each key shows in the list after its first send, with its sends and metrics. Link each one to the file in your repo that sends it, and Copy prompt for your agent gives your coding agent that file, so it knows what to edit. See send emails from code.
Or build it in PostHog
To let your team change an email without a deploy, build it in PostHog instead. Click New transactional email. Give it a name, pick a sender, and write it in the email editor. Under Variables your code sends, add the values your code passes with each send, such as first_name. Your code then sends the email by its template ID. See templates in PostHog.


Transactional emails ignore marketing opt-outs, so don't use them for marketing. After you publish an email, later edits save as a draft until you publish again.
For sign-in codes and reset links, turn on Protect sensitive data on the email's API tab. PostHog keeps no copy of what each email contained, and turns off link click tracking by default. See sensitive data and tracking.
See each send
The Log tab lists every send from the last 30 days. Filter it by email, status, or bounce reason. Open a send to see:
- Its timeline: sent, delivered, opened, and clicked.
- The email the person got, unless the email protects sensitive data.
- What the person did in the 7 days before and after, with a link to the Session Replay.


Your code can also read a send's status. See check an email's status.
Metrics and conversions
The Metrics tab counts sends, deliveries, bounces, spam complaints, opens, and clicks, for each email or each sending domain. What happened after shows how many people did an event, such as paid_bill, after an email. Each email's Impact tab shows the funnel from send to click to that event.
See transactional email metrics. PostHog counts opens and clicks only for emails sent with tracking on.
For every sending endpoint and field, see the transactional email API reference.





