SendTemplateEmailOptions
Properties
| Name | Type |
|---|---|
to | string |
One recipient email address. | |
distinctId | string |
The recipient's distinct ID in your product. The email's events go to this person. Without it, they go to a person whose distinct ID is the email address. | |
idempotencyKey | string |
1 to 255 visible ASCII characters. A send with a key that PostHog has already accepted
queues nothing and returns the first send's result. The same key with other options sends
nothing and returns an error with code | |
maxRetries | number |
Overrides the client's | |
templateId | string |
The UUID of an email template made transactional in PostHog. | |
templateData | Record<string, unknown> |
Values for the template's | |
templateKey | never |
Names the email, such as | |
subject | never |
from | never |
A verified sender, such as | |
replyTo | never |
captureEngagement | never |
Whether PostHog captures the email's engagement events (sent, delivered, opened, clicked,
bounced) as events of the recipient. Defaults to | |
html | never |
text | never |





