Mailtrap

Mailtrap

Let AI connect your sources for you

Skip the manual setup — run this in your project and the wizard auto-detects your databases and APIs and connects them to PostHog.

Learn more
PostHog Wizard hedgehog

Connect Mailtrap to PostHog to sync your data into the PostHog data warehouse for analysis and modeling.

Enter your Mailtrap API token to pull your email sending data into the PostHog Data warehouse.

You can create an API token under Settings → API Tokens in Mailtrap. The token needs access to the accounts and sending domains you want to sync; email logs are restricted to the domains the token can access.

Configuration

OptionTypeRequired
API tokenpasswordYes

Linking Mailtrap to PostHog

  1. Go to the Data pipeline page in PostHog
  2. Click New source and select Mailtrap
  3. Fill in the required configuration fields
  4. Click Next, select the tables you want to sync, and then press Import

Supported tables

TableDescriptionSync methodIncremental fieldPrimary key
email_logs

A sent email's delivery log entry, covering both the transactional and bulk sending streams.

Incremental, Full refreshsent_at
suppressions

A suppressed recipient email address that will not receive emails from your account.

Incremental, Full refreshcreated_at
email_templates

A reusable email template with dynamic content.

Full refresh
contact_lists

A named list used to group marketing contacts.

Full refresh
sending_domains

A domain configured for sending emails, with its compliance and DNS verification state.

Full refresh
accounts

A Mailtrap account the API token has access to.

Full refresh