CodeEmailFields

Properties

NameType
attachmentsEmailAttachment[]

Files sent with the email: at most 10, and at most 40 MB for the whole email after Base64 encoding, about 29 MB of files. The SDK checks both before any request. It uploads each file PostHog doesn't have yet, then sends the email. When an upload fails, it sends nothing.

bccstring | string[]

Bare addresses that get a copy the other recipients never see.

captureEngagementboolean

Whether PostHog captures the email's engagement events (sent, delivered, opened, clicked, bounced) as events of the recipient. Defaults to true. A project whose admin turned engagement capture off captures nothing, whatever the send asks. A template made in PostHog follows the project's setting.

ccstring | string[]

Bare addresses, such as 'finance@example.com', that get a copy.

fromstring

A verified sender, such as 'Acme <security@example.com>'. Without it, the project's default sender.

replyTostring | string[]
subjectstring
templateKeystring

Names the email, such as 'password-reset', so its metrics, logs and status group under it in PostHog. Letters, digits, hyphens and underscores, at most 400.